drop non-asm build for i686 and ppc64 (rfbz#5855)

el9
Dominik 'Rathann' Mierzejewski 4 years ago
parent 25d49312d5
commit 87e5023bed

@ -25,23 +25,15 @@
%endif %endif
#Whitelist of arches with dedicated ASM code #Whitelist of arches with dedicated ASM code
%global asmarch x86_64 armv7hl armv7hnl ppc64le aarch64 %global asmarch aarch64 armv7hl armv7hnl i686 ppc64 ppc64le x86_64
# list of arches where ASM must be optional
%global simdarch i686 ppc64
%ifnarch %{asmarch} %ifnarch %{asmarch}
%global _without_asm 1 %global _without_asm 1
%endif %endif
%ifarch i686
%global slibdir %{_libdir}/sse2
%endif
%ifarch ppc64
%global slibdir %{_libdir}/altivec
%endif
Summary: H264/AVC video streams encoder Summary: H264/AVC video streams encoder
Name: x264 Name: x264
Version: 0.%{api} Version: 0.%{api}
Release: 2%{?gver}%{?_with_bootstrap:_bootstrap}%{?dist} Release: 3%{?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
@ -62,7 +54,7 @@ BuildRequires: gcc
%ifarch armv7hl armv7hnl %ifarch armv7hl armv7hnl
BuildRequires: execstack BuildRequires: execstack
%endif %endif
%ifarch %{asmarch} %{simdarch} %ifarch %{asmarch}
BuildRequires: nasm BuildRequires: nasm
%endif %endif
# 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
@ -112,11 +104,7 @@ pushd %{name}-0.%{api}-%{snapshot}
%patch11 -p1 -b .opencl %patch11 -p1 -b .opencl
popd popd
variants="generic generic10" for variant in generic generic10 ; do
%ifarch %{simdarch}
variants="$variants simd simd10"
%endif
for variant in $variants ; do
rm -rf ${variant} rm -rf ${variant}
cp -pr %{name}-0.%{api}-%{snapshot} ${variant} cp -pr %{name}-0.%{api}-%{snapshot} ${variant}
done done
@ -140,25 +128,6 @@ pushd generic10
%make_build %make_build
popd popd
%ifarch %{simdarch}
pushd simd
%{x_configure}\
--libdir=%{slibdir}
%make_build
popd
pushd simd10
%{x_configure}\
--disable-cli\
--libdir=%{slibdir}\
--disable-opencl \
--bit-depth=10
%make_build
popd
%endif
%install %install
# NOTE: the order is important here! We want the generic devel stuff # NOTE: the order is important here! We want the generic devel stuff
for variant in generic10 generic ; do for variant in generic10 generic ; do
@ -166,14 +135,6 @@ pushd ${variant}
%make_install %make_install
popd popd
done done
%ifarch %{simdarch}
for variant in simd10 simd ; do
pushd ${variant}
%make_install
rm %{buildroot}%{slibdir}/pkgconfig/x264.pc
popd
done
%endif
#Fix timestamp on x264 generated headers #Fix timestamp on x264 generated headers
touch -r generic/version.h %{buildroot}%{_includedir}/x264.h %{buildroot}%{_includedir}/x264_config.h touch -r generic/version.h %{buildroot}%{_includedir}/x264.h %{buildroot}%{_includedir}/x264_config.h
@ -199,10 +160,6 @@ install -pm644 generic/{AUTHORS,COPYING} %{buildroot}%{_pkgdocdir}/
%license %{_pkgdocdir}/COPYING %license %{_pkgdocdir}/COPYING
%{_libdir}/libx264.so.%{api} %{_libdir}/libx264.so.%{api}
%{_libdir}/libx26410b.so.%{api} %{_libdir}/libx26410b.so.%{api}
%ifarch %{simdarch}
%{slibdir}/libx264.so.%{api}
%{slibdir}/libx26410b.so.%{api}
%endif
%files devel %files devel
%doc generic/doc/* %doc generic/doc/*
@ -211,12 +168,11 @@ install -pm644 generic/{AUTHORS,COPYING} %{buildroot}%{_pkgdocdir}/
%{_libdir}/libx264.so %{_libdir}/libx264.so
%{_libdir}/libx26410b.so %{_libdir}/libx26410b.so
%{_libdir}/pkgconfig/%{name}.pc %{_libdir}/pkgconfig/%{name}.pc
%ifarch %{simdarch}
%{slibdir}/libx264.so
%{slibdir}/libx26410b.so
%endif
%changelog %changelog
* Tue Jan 19 2021 Dominik Mierzejewski <rpm@greysector.net> - 0.161-3.20200912gitd198931
- Drop non-asm build for i686 and ppc64 (rfbz#5855)
* Thu Dec 31 2020 Leigh Scott <leigh123linux@gmail.com> - 0.161-2.20200912gitd198931 * Thu Dec 31 2020 Leigh Scott <leigh123linux@gmail.com> - 0.161-2.20200912gitd198931
- Rebuilt for new ffmpeg snapshot - Rebuilt for new ffmpeg snapshot

Loading…
Cancel
Save