|
|
|
@ -31,7 +31,7 @@
@@ -31,7 +31,7 @@
|
|
|
|
|
Summary: H264/AVC video streams encoder |
|
|
|
|
Name: x264 |
|
|
|
|
Version: 0.%{api} |
|
|
|
|
Release: 24%{?gver}%{?_with_bootstrap:_bootstrap}%{?dist} |
|
|
|
|
Release: 21%{?gver}%{?_with_bootstrap:_bootstrap}%{?dist} |
|
|
|
|
License: GPLv2+ |
|
|
|
|
URL: https://www.videolan.org/developers/x264.html |
|
|
|
|
Source0: %{name}-0.%{api}-%{snapshot}.tar.bz2 |
|
|
|
@ -43,7 +43,7 @@ Patch0: x264-nover.patch
@@ -43,7 +43,7 @@ Patch0: x264-nover.patch
|
|
|
|
|
Patch1: x264-10b.patch |
|
|
|
|
Patch10: x264-gpac.patch |
|
|
|
|
|
|
|
|
|
%{!?_without_gpac:BuildRequires: gpac-devel zlib-devel openssl-devel libpng-devel libjpeg-devel} |
|
|
|
|
%{!?_without_gpac:BuildRequires: gpac-devel-static zlib-devel openssl-devel libpng-devel libjpeg-devel} |
|
|
|
|
%{!?_without_libavformat:BuildRequires: ffmpeg-devel} |
|
|
|
|
%{?_with_ffmpegsource:BuildRequires: ffmpegsource-devel} |
|
|
|
|
# https://bugzilla.rpmfusion.org/show_bug.cgi?id=3975 |
|
|
|
@ -53,7 +53,6 @@ BuildRequires: execstack
@@ -53,7 +53,6 @@ BuildRequires: execstack
|
|
|
|
|
%ifarch %{asmarch} %{simdarch} |
|
|
|
|
BuildRequires: yasm >= 1.0.0 |
|
|
|
|
%endif |
|
|
|
|
BuildRequires: gcc |
|
|
|
|
# we need to enforce the exact EVR for an ISA - not only the same ABI |
|
|
|
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release} |
|
|
|
|
|
|
|
|
@ -83,14 +82,14 @@ This package contains the development files.
@@ -83,14 +82,14 @@ This package contains the development files.
|
|
|
|
|
|
|
|
|
|
%global x_configure \ |
|
|
|
|
%configure \\\ |
|
|
|
|
%{?_without_libavformat:--disable-lavf} \\\ |
|
|
|
|
%{?_without_libswscale:--disable-swscale} \\\ |
|
|
|
|
%{!?_with_ffmpegsource:--disable-ffms} \\\ |
|
|
|
|
--disable-opencl \\\ |
|
|
|
|
--disable-debug \\\ |
|
|
|
|
--enable-shared \\\ |
|
|
|
|
--system-libx264 \\\ |
|
|
|
|
--enable-pic |
|
|
|
|
%{?_without_libavformat:--disable-lavf} \\\ |
|
|
|
|
%{?_without_libswscale:--disable-swscale} \\\ |
|
|
|
|
%{!?_with_ffmpegsource:--disable-ffms} \\\ |
|
|
|
|
--disable-opencl \\\ |
|
|
|
|
--enable-debug \\\ |
|
|
|
|
--enable-shared \\\ |
|
|
|
|
--system-libx264 \\\ |
|
|
|
|
--enable-pic |
|
|
|
|
|
|
|
|
|
%prep |
|
|
|
|
%setup -q -c -n %{name}-0.%{api}-%{snapshot} |
|
|
|
@ -113,35 +112,35 @@ done
@@ -113,35 +112,35 @@ done
|
|
|
|
|
%build |
|
|
|
|
pushd generic |
|
|
|
|
%{x_configure}\ |
|
|
|
|
%{?_without_asm:--disable-asm} |
|
|
|
|
%{?_without_asm:--disable-asm} |
|
|
|
|
|
|
|
|
|
%make_build |
|
|
|
|
%{__make} %{?_smp_mflags} |
|
|
|
|
popd |
|
|
|
|
|
|
|
|
|
pushd generic10 |
|
|
|
|
%{x_configure}\ |
|
|
|
|
%{?_without_asm:--disable-asm}\ |
|
|
|
|
--disable-cli\ |
|
|
|
|
--bit-depth=10 |
|
|
|
|
%{?_without_asm:--disable-asm}\ |
|
|
|
|
--disable-cli\ |
|
|
|
|
--bit-depth=10 |
|
|
|
|
|
|
|
|
|
%make_build |
|
|
|
|
%{__make} %{?_smp_mflags} |
|
|
|
|
popd |
|
|
|
|
|
|
|
|
|
%ifarch %{simdarch} |
|
|
|
|
pushd simd |
|
|
|
|
%{x_configure}\ |
|
|
|
|
--libdir=%{slibdir} |
|
|
|
|
--libdir=%{slibdir} |
|
|
|
|
|
|
|
|
|
%make_build |
|
|
|
|
%{__make} %{?_smp_mflags} |
|
|
|
|
popd |
|
|
|
|
|
|
|
|
|
pushd simd10 |
|
|
|
|
%{x_configure}\ |
|
|
|
|
--disable-cli\ |
|
|
|
|
--libdir=%{slibdir}\ |
|
|
|
|
--bit-depth=10 |
|
|
|
|
--disable-cli\ |
|
|
|
|
--libdir=%{slibdir}\ |
|
|
|
|
--bit-depth=10 |
|
|
|
|
|
|
|
|
|
%make_build |
|
|
|
|
%{__make} %{?_smp_mflags} |
|
|
|
|
popd |
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
@ -152,10 +151,10 @@ pushd ${variant}
@@ -152,10 +151,10 @@ pushd ${variant}
|
|
|
|
|
popd |
|
|
|
|
done |
|
|
|
|
%ifarch %{simdarch} |
|
|
|
|
for variant in simd10 simd ; do |
|
|
|
|
for variant in simd simd10 ; do |
|
|
|
|
pushd ${variant} |
|
|
|
|
%make_install |
|
|
|
|
rm -f %{buildroot}%{slibdir}/pkgconfig/x264.pc |
|
|
|
|
rm %{buildroot}%{slibdir}/pkgconfig/x264.pc |
|
|
|
|
popd |
|
|
|
|
done |
|
|
|
|
%endif |
|
|
|
@ -168,22 +167,20 @@ touch -r generic/version.h %{buildroot}%{_includedir}/x264.h %{buildroot}%{_incl
@@ -168,22 +167,20 @@ touch -r generic/version.h %{buildroot}%{_includedir}/x264.h %{buildroot}%{_incl
|
|
|
|
|
execstack -c %{buildroot}%{_libdir}/libx264{,10b}.so.%{api} |
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
install -dm755 %{buildroot}%{_pkgdocdir} |
|
|
|
|
install -pm644 generic/AUTHORS %{buildroot}%{_pkgdocdir}/ |
|
|
|
|
cp -a generic/doc %{buildroot}%{_pkgdocdir}/ |
|
|
|
|
|
|
|
|
|
install -dm755 %{buildroot}%{_docdir}/%{name} |
|
|
|
|
install -pm644 generic/{AUTHORS,COPYING} %{buildroot}%{_docdir}/%{name}/ |
|
|
|
|
|
|
|
|
|
%post libs -p /sbin/ldconfig |
|
|
|
|
%postun libs -p /sbin/ldconfig |
|
|
|
|
|
|
|
|
|
%postun libs -p /sbin/ldconfig |
|
|
|
|
|
|
|
|
|
%files |
|
|
|
|
%{_bindir}/x264 |
|
|
|
|
|
|
|
|
|
%files libs |
|
|
|
|
%{_pkgdocdir}/ |
|
|
|
|
%exclude %{_pkgdocdir}/doc |
|
|
|
|
%license generic/COPYING |
|
|
|
|
%dir %{_docdir}/%{name} |
|
|
|
|
%{_docdir}/%{name}/AUTHORS |
|
|
|
|
%license %{_docdir}/%{name}/COPYING |
|
|
|
|
%{_libdir}/libx264.so.%{api} |
|
|
|
|
%{_libdir}/libx26410b.so.%{api} |
|
|
|
|
%ifarch %{simdarch} |
|
|
|
@ -192,7 +189,7 @@ cp -a generic/doc %{buildroot}%{_pkgdocdir}/
@@ -192,7 +189,7 @@ cp -a generic/doc %{buildroot}%{_pkgdocdir}/
|
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
%files devel |
|
|
|
|
%{_pkgdocdir}/doc/ |
|
|
|
|
%doc generic/doc/* |
|
|
|
|
%{_includedir}/x264.h |
|
|
|
|
%{_includedir}/x264_config.h |
|
|
|
|
%{_libdir}/libx264.so |
|
|
|
@ -204,19 +201,6 @@ cp -a generic/doc %{buildroot}%{_pkgdocdir}/
@@ -204,19 +201,6 @@ cp -a generic/doc %{buildroot}%{_pkgdocdir}/
|
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
%changelog |
|
|
|
|
* Fri Oct 04 2019 Dominik Mierzejewski <rpm@greysector.net> - 0.148-24.20170521gitaaa9aa8 |
|
|
|
|
- don't overwrite generic headers with 10bit on simdarch (rfbz#5071) |
|
|
|
|
|
|
|
|
|
* Thu Nov 22 2018 Antonio Trande <sagitter@fedoraproject.org> - 0.148-23.20170521gitaaa9aa8 |
|
|
|
|
- Rebuild for ffmpeg-3.* on el7 |
|
|
|
|
- Rebuild for x265-2.9 on el7 |
|
|
|
|
- Set Make macros |
|
|
|
|
- Disable debug builds |
|
|
|
|
- Avoid mixed use of documentation macros |
|
|
|
|
|
|
|
|
|
* Thu Aug 31 2017 RPM Fusion Release Engineering <kwizart@rpmfusion.org> - 0.148-22.20170521gitaaa9aa8 |
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild |
|
|
|
|
|
|
|
|
|
* Mon Jun 26 2017 Sérgio Basto <sergio@serjux.com> - 0.148-21.20170521gitaaa9aa8 |
|
|
|
|
- Update x264 to x264-0.148-20170521-aaa9aa8 |
|
|
|
|
|
|
|
|
|