Mia Herkt 2020-08-05 05:35:33 +00:00 committed by Git OBS Bridge
parent 7005908ef2
commit a7e3521582

View File

@ -62,6 +62,9 @@ autoreconf -fiv
# do not enable tests here — they make zimg slower and the install # do not enable tests here — they make zimg slower and the install
# rule is broken # rule is broken
%configure \ %configure \
%ifarch armv7l
--disable-simd \
%endif
--disable-static --disable-static
%make_build %make_build
@ -70,14 +73,19 @@ autoreconf -fiv
rm -rf %{buildroot}%{_datadir}/doc/zimg rm -rf %{buildroot}%{_datadir}/doc/zimg
find %{buildroot} -type f -name "*.la" -delete -print find %{buildroot} -type f -name "*.la" -delete -print
%ifnarch ppc64 ppc64le
%check %check
%make_build clean %make_build clean
%configure \ %configure \
%ifarch armv7l
--disable-simd \
%endif
--disable-static \ --disable-static \
--enable-unit-test --enable-unit-test
%make_build %make_build
%make_build test/unit_test %make_build test/unit_test
test/unit_test test/unit_test
%endif
%post -n libzimg%{sover} -p /sbin/ldconfig %post -n libzimg%{sover} -p /sbin/ldconfig
%postun -n libzimg%{sover} -p /sbin/ldconfig %postun -n libzimg%{sover} -p /sbin/ldconfig