Author: rathann
Update of /cvs/free/rpms/ffmpeg/devel
In directory old02.ovh.rpmfusion.lan:/tmp/cvs-serv20149
Modified Files:
ffmpeg.spec
Log Message:
- enable OpenCL support
- BR texinfo instead of texi2html to reduce BRs by half
- drop support for building on SPARC (no longer a Fedora Secondary Arch)
- move libavdevice to a subpackage (rfbz#3075)
Index: ffmpeg.spec
===================================================================
RCS file: /cvs/free/rpms/ffmpeg/devel/ffmpeg.spec,v
retrieving revision 1.126
retrieving revision 1.127
diff -u -r1.126 -r1.127
--- ffmpeg.spec 14 Jan 2015 20:40:47 -0000 1.126
+++ ffmpeg.spec 1 Feb 2015 01:32:59 -0000 1.127
@@ -13,7 +13,7 @@
Summary: Digital VCR and streaming server
Name: ffmpeg
Version: 2.4.6
-Release: 1%{?date}%{?date:git}%{?rel}%{?dist}
+Release: 2%{?date}%{?date:git}%{?rel}%{?dist}
%if 0%{?_with_amr:1}
License: GPLv3+
%else
@@ -54,6 +54,7 @@
%endif
%{?_with_amr:BuildRequires: opencore-amr-devel vo-amrwbenc-devel}
%{!?_without_openal:BuildRequires: openal-soft-devel}
+%{!?_without_opencl:BuildRequires: opencl-headers ocl-icd-devel}
%{!?_without_opencv:BuildRequires: opencv-devel}
BuildRequires: openjpeg-devel
BuildRequires: opus-devel
@@ -64,7 +65,7 @@
BuildRequires: soxr-devel
BuildRequires: speex-devel
BuildRequires: subversion
-BuildRequires: texi2html
+BuildRequires: texinfo
%{!?_without_x264:BuildRequires: x264-devel >= 0.0.0-0.31}
%{!?_without_x265:BuildRequires: x265-devel}
BuildRequires: xvidcore-devel
@@ -89,9 +90,18 @@
and video, MPEG4, h263, ac3, asf, avi, real, mjpeg, and flash.
This package contains the libraries for %{name}
+%package -n libavdevice
+Summary: Special devices muxing/demuxing library
+
+%description -n libavdevice
+Libavdevice is a complementary library to libavf "libavformat". It provides
+various "special" platform-specific muxers and demuxers, e.g. for grabbing
+devices, audio capture and playback etc.
+
%package devel
Summary: Development package for %{name}
Requires: %{name}-libs%{_isa} = %{version}-%{release}
+Requires: libavdevice%{_isa} = %{version}-%{release}
Requires: pkgconfig
%description devel
@@ -102,7 +112,7 @@
This package contains development files for %{name}
%global ff_configure \
-../configure \\\
+./configure \\\
--prefix=%{_prefix} \\\
--bindir=%{_bindir} \\\
--datadir=%{_datadir}/%{name} \\\
@@ -127,6 +137,7 @@
--enable-libgsm \\\
--enable-libmp3lame \\\
%{!?_without_openal:--enable-openal} \\\
+ %{!?_without_opencl:--enable-opencl} \\\
%{!?_without_opencv:--enable-libopencv} \\\
--enable-libopenjpeg \\\
--enable-libopus \\\
@@ -165,8 +176,6 @@
sed -i "s/-O3 -g/$RPM_OPT_FLAGS/" configure
%build
-mkdir generic
-pushd generic
%{ff_configure}\
--shlibdir=%{_libdir} \
%if 0%{?ffmpegsuffix:1}
@@ -177,22 +186,17 @@
%ifarch %{ix86}
--cpu=%{_target_cpu} \
%endif
-%ifarch %{ix86} x86_64
+%ifarch %{ix86} x86_64 ppc ppc64
--enable-runtime-cpudetect \
%endif
%ifarch ppc
--cpu=g3 \
- --enable-runtime-cpudetect \
--enable-pic \
%endif
%ifarch ppc64
--cpu=g5 \
- --enable-runtime-cpudetect \
--enable-pic \
%endif
-%ifarch sparc sparc64
- --disable-vis \
-%endif
%ifarch %{arm}
--disable-runtime-cpudetect --arch=arm \
%ifarch armv6hl
@@ -209,37 +213,11 @@
make %{?_smp_mflags} V=1
make documentation V=1
make alltools V=1
-popd
-
-%if 0%{!?ffmpegsuffix:1}
-mkdir simd
-pushd simd
-%ifarch sparc sparc64
-%{ff_configure}\
- --shlibdir=%{_libdir}/v9 \
- --cpu=v9 \
- --enable-vis \
- --disable-ffmpeg \
- --disable-ffserver \
- --disable-ffplay \
-
-make %{?_smp_mflags} V=1
-%endif
-popd
-%endif
%install
-rm -rf $RPM_BUILD_ROOT
-pushd generic
make install DESTDIR=$RPM_BUILD_ROOT V=1
-popd
%if 0%{!?ffmpegsuffix:1}
-install -pm755 generic/tools/qt-faststart $RPM_BUILD_ROOT%{_bindir}
-pushd simd
-%ifarch sparc sparc64
-make install DESTDIR=$RPM_BUILD_ROOT V=1
-%endif
-popd
+install -pm755 tools/qt-faststart $RPM_BUILD_ROOT%{_bindir}
%endif
%post libs -p /sbin/ldconfig
@@ -263,26 +241,26 @@
%files libs
%{_libdir}/lib*.so.*
+%exclude %{_libdir}/libavdevice.so.*
%{_mandir}/man3/lib*.3.gz
-%if 0%{!?ffmpegsuffix:1}
-%ifarch sparc sparc64
-%{_libdir}/v9/lib*.so.*
-%endif
-%endif
+
+%files -n libavdevice
+%{_libdir}/libavdevice.so.*
%files devel
%doc MAINTAINERS doc/APIchanges doc/*.txt
%{_includedir}/ffmpeg
%{_libdir}/pkgconfig/lib*.pc
%{_libdir}/lib*.so
-%if 0%{!?ffmpegsuffix:1}
-%ifarch sparc sparc64
-%{_libdir}/v9/lib*.so
-%endif
-%endif
%changelog
+* Sun Feb 01 2015 Dominik Mierzejewski <rpm at greysector.net> - 2.4.6-2
+- enable OpenCL support
+- BR texinfo instead of texi2html to reduce BRs by half
+- drop support for building on SPARC (no longer a Fedora Secondary Arch)
+- move libavdevice to a subpackage (rfbz#3075)
+
* Wed Jan 14 2015 Julian Sikorski <belegdol(a)fedoraproject.org> - 2.4.6-1
- Updated to 2.4.6