Update x264 to 0.148-20160118-5c65704

Spec clean up thanks to Simone Caronni.
el8
Sérgio M. Basto 9 years ago
parent f1d13ebe26
commit 61a52538b0

1
.gitignore vendored

@ -1 +1,2 @@
x264-0.144-20150225-c8a773e.tar.bz2 x264-0.144-20150225-c8a773e.tar.bz2
x264-0.148-20160118-5c65704.tar.bz2

@ -1 +1 @@
c56b5893f7629a0c00643915d608dcd6 x264-0.148-20151020-a0cd7d3.tar.bz2 03f0f92f1689d8f5a4032fb9342ebdba x264-0.148-20160118-5c65704.tar.bz2

@ -1,7 +1,7 @@
# globals for x264-0.148-20151020-a0cd7d3.tar.bz2 # globals for x264-0.148-20160118-5c65704.tar.bz2
%global api 148 %global api 148
%global gitdate 20151020 %global gitdate 20160118
%global gitversion a0cd7d3 %global gitversion 5c65704
%global snapshot %{gitdate}-%{gitversion} %global snapshot %{gitdate}-%{gitversion}
%global gver .%{gitdate}git%{gitversion} %global gver .%{gitdate}git%{gitversion}
%global branch stable %global branch stable
@ -17,20 +17,17 @@
%ifnarch x86_64 i686 %{arm} ppc ppc64 %{sparc} aarch64 %ifnarch x86_64 i686 %{arm} ppc ppc64 %{sparc} aarch64
%global _without_asm 1 %global _without_asm 1
%endif %endif
#Commented out may be used later
#ifarch i686 armv5tel armv6l #ifarch i686 armv5tel armv6l
#global _without_asm 1 #global _without_asm 1
#endif #endif
%if 0%{?rhel}
%global _without_asm 1
%endif
Summary: H264/AVC video streams encoder Summary: H264/AVC video streams encoder
Name: x264 Name: x264
Version: 0.%{api} Version: 0.%{api}
Release: 1%{?gver}%{?_with_bootstrap:_bootstrap}%{?dist} Release: 2%{?gver}%{?_with_bootstrap:_bootstrap}%{?dist}
License: GPLv2+ License: GPLv2+
Group: System Environment/Libraries
URL: http://developers.videolan.org/x264.html URL: http://developers.videolan.org/x264.html
Source0: %{name}-0.%{api}-%{snapshot}.tar.bz2 Source0: %{name}-0.%{api}-%{snapshot}.tar.bz2
Source1: x264-snapshot.sh Source1: x264-snapshot.sh
@ -44,7 +41,6 @@ Patch10: x264-gpac.patch
%{!?_without_libavformat:BuildRequires: ffmpeg-devel} %{!?_without_libavformat:BuildRequires: ffmpeg-devel}
%{?_with_ffmpegsource:BuildRequires: ffmpegsource-devel} %{?_with_ffmpegsource:BuildRequires: ffmpegsource-devel}
%{!?_without_asm:BuildRequires: yasm >= 1.0.0} %{!?_without_asm:BuildRequires: yasm >= 1.0.0}
Requires: %{name}-libs = %{version}-%{release}
%description %description
x264 is a free library for encoding H264/AVC video streams, written from x264 is a free library for encoding H264/AVC video streams, written from
@ -54,7 +50,6 @@ This package contains the frontend.
%package libs %package libs
Summary: Library for encoding H264/AVC video streams Summary: Library for encoding H264/AVC video streams
Group: Development/Libraries
%description libs %description libs
x264 is a free library for encoding H264/AVC video streams, written from x264 is a free library for encoding H264/AVC video streams, written from
@ -62,7 +57,6 @@ scratch.
%package devel %package devel
Summary: Development files for the x264 library Summary: Development files for the x264 library
Group: Development/Libraries
Requires: %{name}-libs%{?_isa} = %{version}-%{release} Requires: %{name}-libs%{?_isa} = %{version}-%{release}
Requires: pkgconfig Requires: pkgconfig
@ -73,12 +67,7 @@ scratch.
This package contains the development files. This package contains the development files.
%global x_configure \ %global x_configure \
./configure \\\ %configure \\\
--prefix=%{_prefix} \\\
--exec-prefix=%{_exec_prefix} \\\
--bindir=%{_bindir} \\\
--includedir=%{_includedir} \\\
--extra-cflags="$RPM_OPT_FLAGS" \\\
%{?_without_libavformat:--disable-lavf} \\\ %{?_without_libavformat:--disable-lavf} \\\
%{?_without_libswscale:--disable-swscale} \\\ %{?_without_libswscale:--disable-swscale} \\\
%{!?_with_ffmpegsource:--disable-ffms} \\\ %{!?_with_ffmpegsource:--disable-ffms} \\\
@ -88,7 +77,6 @@ This package contains the development files.
--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}
pushd %{name}-0.%{api}-%{snapshot} pushd %{name}-0.%{api}-%{snapshot}
@ -108,9 +96,7 @@ done
%build %build
pushd generic pushd generic
%{x_configure}\ %{x_configure}
--host=%{_target_platform} \
--libdir=%{_libdir} \
%{__make} %{?_smp_mflags} %{__make} %{?_smp_mflags}
popd popd
@ -118,8 +104,8 @@ popd
%ifarch i686 %ifarch i686
pushd simd pushd simd
%{x_configure}\ %{x_configure}\
--host=%{_target_platform} \ --enable-asm \
--libdir=%{_libdir}/sse2 \ --libdir=%{_libdir}/sse2
%{__make} %{?_smp_mflags} %{__make} %{?_smp_mflags}
popd popd
@ -127,8 +113,6 @@ popd
pushd generic10 pushd generic10
%{x_configure}\ %{x_configure}\
--host=%{_target_platform} \
--libdir=%{_libdir} \
--bit-depth=10 --bit-depth=10
sed -i -e "s/SONAME=libx264.so./SONAME=libx26410b.so./" config.mak sed -i -e "s/SONAME=libx264.so./SONAME=libx26410b.so./" config.mak
@ -138,11 +122,11 @@ popd
%install %install
pushd generic pushd generic
%{__make} DESTDIR=%{buildroot} install %make_install
popd popd
%ifarch i686 %ifarch i686
pushd simd pushd simd
%{__make} DESTDIR=%{buildroot} install %make_install
rm %{buildroot}%{_libdir}/*/pkgconfig/x264.pc rm %{buildroot}%{_libdir}/*/pkgconfig/x264.pc
popd popd
%endif %endif
@ -162,12 +146,12 @@ touch -r generic/version.h %{buildroot}%{_includedir}/x264.h %{buildroot}%{_incl
%postun libs -p /sbin/ldconfig %postun libs -p /sbin/ldconfig
%files %files
%defattr(644, root, root, 0755) %{!?_licensedir:%global license %doc}
%doc generic/AUTHORS generic/COPYING %doc generic/AUTHORS
%attr(755,root,root) %{_bindir}/x264 %license generic/COPYING
%{_bindir}/x264
%files libs %files libs
%defattr(644, root, root, 0755)
%{_libdir}/libx264.so.%{api} %{_libdir}/libx264.so.%{api}
%ifarch i686 %ifarch i686
%{_libdir}/sse2/libx264.so.%{api} %{_libdir}/sse2/libx264.so.%{api}
@ -175,7 +159,6 @@ touch -r generic/version.h %{buildroot}%{_includedir}/x264.h %{buildroot}%{_incl
%{_libdir}/libx26410b.so.%{api} %{_libdir}/libx26410b.so.%{api}
%files devel %files devel
%defattr(644, root, root, 0755)
%doc generic/doc/* %doc generic/doc/*
%{_includedir}/x264.h %{_includedir}/x264.h
%{_includedir}/x264_config.h %{_includedir}/x264_config.h
@ -187,6 +170,20 @@ touch -r generic/version.h %{buildroot}%{_includedir}/x264.h %{buildroot}%{_incl
%{_libdir}/libx26410b.so %{_libdir}/libx26410b.so
%changelog %changelog
* Mon Jan 18 2016 Sérgio Basto <sergio@serjux.com> - 0.148-2.20151020gita0cd7d3
- Update x264 to 0.148-20160118-5c65704
* Fri Nov 27 2015 Simone Caronni <negativo17@gmail.com>
- Remove obsolete SPEC file tags, defattr were also breaking file permissions,
all libraries were not executable.
- Enable optimizations in RHEL, they are working since RHEL 6:
https://bugzilla.rpmfusion.org/show_bug.cgi?id=3260
- Add license and make_install macro as per packaging guidelines.
- Remove explicit dependency on libs subpackage for main x264 binary, it is
added automatically.
- Use the default configure macro and remove redundant parameters. Optimizations
(build flags) are now added by default.
* Wed Oct 21 2015 Sérgio Basto <sergio@serjux.com> - 0.148-1.20151020gita0cd7d3 * Wed Oct 21 2015 Sérgio Basto <sergio@serjux.com> - 0.148-1.20151020gita0cd7d3
- Update to x264-0.148, soname bump, git a0cd7d3, date 20151020 . - Update to x264-0.148, soname bump, git a0cd7d3, date 20151020 .

Loading…
Cancel
Save