- enable the test suite

- do no ship pstopnm [bsc#1136936]

OBS-URL: https://build.opensuse.org/package/show/graphics/netpbm?expand=0&rev=108
This commit is contained in:
Petr Gajdos 2019-05-31 09:34:33 +00:00 committed by Git OBS Bridge
parent c118ab6195
commit 993759008e
2 changed files with 19 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri May 31 09:32:34 UTC 2019 - pgajdos@suse.com
- enable the test suite
- do no ship pstopnm [bsc#1136936]
-------------------------------------------------------------------
Wed May 15 05:44:20 UTC 2019 - pgajdos@suse.com

View File

@ -128,7 +128,6 @@ done
%install
# netpbm has _interactive_ install perl script, see doc/INSTALL
make pkgdir=`pwd`/package package STRIPFLAG=
rm package/bin/g3topbm #conflict with g3utils
#
mkdir -p %{buildroot}%{_prefix}/{bin,include,%{_lib},share/man,share/%{name}}
cp -pd package/bin/* %{buildroot}%{_bindir}
@ -138,10 +137,23 @@ cp -prd package/include/netpbm %{buildroot}%{_includedir}
cp -prd man/* %{buildroot}%{_mandir}
install -m 644 converter/other/pnmtopalm/*.map \
%{buildroot}%{_datadir}/%{name}
rm %{buildroot}%{_bindir}/g3topbm # conflict with g3utils
rm %{buildroot}%{_bindir}/pstopnm # disable due security reasons, e. g. [bsc#1105592]
%post -n libnetpbm%{libmaj} -p /sbin/ldconfig
%postun -n libnetpbm%{libmaj} -p /sbin/ldconfig
%check
# do not run unneccesary tests
sed -i '/all-in-place/d' test/Test-Order
sed -i '/legacy-names/d' test/Test-Order
# picttoppm.c: #error "Unfixable. Don't ship me"
sed -i '/pict-roundtrip/d' test/Test-Order
# pstopnm is not shipped
sed -i '/^ps.*\.test/d' test/Test-Order
mkdir package-test
make pkgdir=`pwd`/package tmpdir=`pwd`/package-test check-package
%files
%doc README doc/* netpbm.sourceforge.net/doc
%doc pnmtopalm/