|
|
@ -31,7 +31,7 @@ |
|
|
|
Summary: H264/AVC video streams encoder |
|
|
|
Summary: H264/AVC video streams encoder |
|
|
|
Name: x264 |
|
|
|
Name: x264 |
|
|
|
Version: 0.%{api} |
|
|
|
Version: 0.%{api} |
|
|
|
Release: 24%{?gver}%{?_with_bootstrap:_bootstrap}%{?dist} |
|
|
|
Release: 21%{?gver}%{?_with_bootstrap:_bootstrap}%{?dist} |
|
|
|
License: GPLv2+ |
|
|
|
License: GPLv2+ |
|
|
|
URL: https://www.videolan.org/developers/x264.html |
|
|
|
URL: https://www.videolan.org/developers/x264.html |
|
|
|
Source0: %{name}-0.%{api}-%{snapshot}.tar.bz2 |
|
|
|
Source0: %{name}-0.%{api}-%{snapshot}.tar.bz2 |
|
|
@ -43,7 +43,7 @@ Patch0: x264-nover.patch |
|
|
|
Patch1: x264-10b.patch |
|
|
|
Patch1: x264-10b.patch |
|
|
|
Patch10: x264-gpac.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} |
|
|
|
%{!?_without_libavformat:BuildRequires: ffmpeg-devel} |
|
|
|
%{?_with_ffmpegsource:BuildRequires: ffmpegsource-devel} |
|
|
|
%{?_with_ffmpegsource:BuildRequires: ffmpegsource-devel} |
|
|
|
# https://bugzilla.rpmfusion.org/show_bug.cgi?id=3975 |
|
|
|
# https://bugzilla.rpmfusion.org/show_bug.cgi?id=3975 |
|
|
@ -53,7 +53,6 @@ BuildRequires: execstack |
|
|
|
%ifarch %{asmarch} %{simdarch} |
|
|
|
%ifarch %{asmarch} %{simdarch} |
|
|
|
BuildRequires: yasm >= 1.0.0 |
|
|
|
BuildRequires: yasm >= 1.0.0 |
|
|
|
%endif |
|
|
|
%endif |
|
|
|
BuildRequires: gcc |
|
|
|
|
|
|
|
# we need to enforce the exact EVR for an ISA - not only the same ABI |
|
|
|
# we need to enforce the exact EVR for an ISA - not only the same ABI |
|
|
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release} |
|
|
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release} |
|
|
|
|
|
|
|
|
|
|
@ -83,14 +82,14 @@ This package contains the development files. |
|
|
|
|
|
|
|
|
|
|
|
%global x_configure \ |
|
|
|
%global x_configure \ |
|
|
|
%configure \\\ |
|
|
|
%configure \\\ |
|
|
|
%{?_without_libavformat:--disable-lavf} \\\ |
|
|
|
%{?_without_libavformat:--disable-lavf} \\\ |
|
|
|
%{?_without_libswscale:--disable-swscale} \\\ |
|
|
|
%{?_without_libswscale:--disable-swscale} \\\ |
|
|
|
%{!?_with_ffmpegsource:--disable-ffms} \\\ |
|
|
|
%{!?_with_ffmpegsource:--disable-ffms} \\\ |
|
|
|
--disable-opencl \\\ |
|
|
|
--disable-opencl \\\ |
|
|
|
--disable-debug \\\ |
|
|
|
--enable-debug \\\ |
|
|
|
--enable-shared \\\ |
|
|
|
--enable-shared \\\ |
|
|
|
--system-libx264 \\\ |
|
|
|
--system-libx264 \\\ |
|
|
|
--enable-pic |
|
|
|
--enable-pic |
|
|
|
|
|
|
|
|
|
|
|
%prep |
|
|
|
%prep |
|
|
|
%setup -q -c -n %{name}-0.%{api}-%{snapshot} |
|
|
|
%setup -q -c -n %{name}-0.%{api}-%{snapshot} |
|
|
@ -113,35 +112,35 @@ done |
|
|
|
%build |
|
|
|
%build |
|
|
|
pushd generic |
|
|
|
pushd generic |
|
|
|
%{x_configure}\ |
|
|
|
%{x_configure}\ |
|
|
|
%{?_without_asm:--disable-asm} |
|
|
|
%{?_without_asm:--disable-asm} |
|
|
|
|
|
|
|
|
|
|
|
%make_build |
|
|
|
%{__make} %{?_smp_mflags} |
|
|
|
popd |
|
|
|
popd |
|
|
|
|
|
|
|
|
|
|
|
pushd generic10 |
|
|
|
pushd generic10 |
|
|
|
%{x_configure}\ |
|
|
|
%{x_configure}\ |
|
|
|
%{?_without_asm:--disable-asm}\ |
|
|
|
%{?_without_asm:--disable-asm}\ |
|
|
|
--disable-cli\ |
|
|
|
--disable-cli\ |
|
|
|
--bit-depth=10 |
|
|
|
--bit-depth=10 |
|
|
|
|
|
|
|
|
|
|
|
%make_build |
|
|
|
%{__make} %{?_smp_mflags} |
|
|
|
popd |
|
|
|
popd |
|
|
|
|
|
|
|
|
|
|
|
%ifarch %{simdarch} |
|
|
|
%ifarch %{simdarch} |
|
|
|
pushd simd |
|
|
|
pushd simd |
|
|
|
%{x_configure}\ |
|
|
|
%{x_configure}\ |
|
|
|
--libdir=%{slibdir} |
|
|
|
--libdir=%{slibdir} |
|
|
|
|
|
|
|
|
|
|
|
%make_build |
|
|
|
%{__make} %{?_smp_mflags} |
|
|
|
popd |
|
|
|
popd |
|
|
|
|
|
|
|
|
|
|
|
pushd simd10 |
|
|
|
pushd simd10 |
|
|
|
%{x_configure}\ |
|
|
|
%{x_configure}\ |
|
|
|
--disable-cli\ |
|
|
|
--disable-cli\ |
|
|
|
--libdir=%{slibdir}\ |
|
|
|
--libdir=%{slibdir}\ |
|
|
|
--bit-depth=10 |
|
|
|
--bit-depth=10 |
|
|
|
|
|
|
|
|
|
|
|
%make_build |
|
|
|
%{__make} %{?_smp_mflags} |
|
|
|
popd |
|
|
|
popd |
|
|
|
%endif |
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
|
@ -152,10 +151,10 @@ pushd ${variant} |
|
|
|
popd |
|
|
|
popd |
|
|
|
done |
|
|
|
done |
|
|
|
%ifarch %{simdarch} |
|
|
|
%ifarch %{simdarch} |
|
|
|
for variant in simd10 simd ; do |
|
|
|
for variant in simd simd10 ; do |
|
|
|
pushd ${variant} |
|
|
|
pushd ${variant} |
|
|
|
%make_install |
|
|
|
%make_install |
|
|
|
rm -f %{buildroot}%{slibdir}/pkgconfig/x264.pc |
|
|
|
rm %{buildroot}%{slibdir}/pkgconfig/x264.pc |
|
|
|
popd |
|
|
|
popd |
|
|
|
done |
|
|
|
done |
|
|
|
%endif |
|
|
|
%endif |
|
|
@ -168,22 +167,20 @@ touch -r generic/version.h %{buildroot}%{_includedir}/x264.h %{buildroot}%{_incl |
|
|
|
execstack -c %{buildroot}%{_libdir}/libx264{,10b}.so.%{api} |
|
|
|
execstack -c %{buildroot}%{_libdir}/libx264{,10b}.so.%{api} |
|
|
|
%endif |
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
|
|
install -dm755 %{buildroot}%{_pkgdocdir} |
|
|
|
install -dm755 %{buildroot}%{_docdir}/%{name} |
|
|
|
install -pm644 generic/AUTHORS %{buildroot}%{_pkgdocdir}/ |
|
|
|
install -pm644 generic/{AUTHORS,COPYING} %{buildroot}%{_docdir}/%{name}/ |
|
|
|
cp -a generic/doc %{buildroot}%{_pkgdocdir}/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%post libs -p /sbin/ldconfig |
|
|
|
%post libs -p /sbin/ldconfig |
|
|
|
%postun libs -p /sbin/ldconfig |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%postun libs -p /sbin/ldconfig |
|
|
|
|
|
|
|
|
|
|
|
%files |
|
|
|
%files |
|
|
|
%{_bindir}/x264 |
|
|
|
%{_bindir}/x264 |
|
|
|
|
|
|
|
|
|
|
|
%files libs |
|
|
|
%files libs |
|
|
|
%{_pkgdocdir}/ |
|
|
|
%dir %{_docdir}/%{name} |
|
|
|
%exclude %{_pkgdocdir}/doc |
|
|
|
%{_docdir}/%{name}/AUTHORS |
|
|
|
%license generic/COPYING |
|
|
|
%license %{_docdir}/%{name}/COPYING |
|
|
|
%{_libdir}/libx264.so.%{api} |
|
|
|
%{_libdir}/libx264.so.%{api} |
|
|
|
%{_libdir}/libx26410b.so.%{api} |
|
|
|
%{_libdir}/libx26410b.so.%{api} |
|
|
|
%ifarch %{simdarch} |
|
|
|
%ifarch %{simdarch} |
|
|
@ -192,7 +189,7 @@ cp -a generic/doc %{buildroot}%{_pkgdocdir}/ |
|
|
|
%endif |
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
|
|
%files devel |
|
|
|
%files devel |
|
|
|
%{_pkgdocdir}/doc/ |
|
|
|
%doc generic/doc/* |
|
|
|
%{_includedir}/x264.h |
|
|
|
%{_includedir}/x264.h |
|
|
|
%{_includedir}/x264_config.h |
|
|
|
%{_includedir}/x264_config.h |
|
|
|
%{_libdir}/libx264.so |
|
|
|
%{_libdir}/libx264.so |
|
|
@ -204,19 +201,6 @@ cp -a generic/doc %{buildroot}%{_pkgdocdir}/ |
|
|
|
%endif |
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
|
|
%changelog |
|
|
|
%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 |
|
|
|
* Mon Jun 26 2017 Sérgio Basto <sergio@serjux.com> - 0.148-21.20170521gitaaa9aa8 |
|
|
|
- Update x264 to x264-0.148-20170521-aaa9aa8 |
|
|
|
- Update x264 to x264-0.148-20170521-aaa9aa8 |
|
|
|
|
|
|
|
|
|
|
|