Accepting request 706655 from graphics

- enable the test suite
- do no ship pstopnm [bsc#1136936]

OBS-URL: https://build.opensuse.org/request/show/706655
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/netpbm?expand=0&rev=68
This commit is contained in:
Dominique Leuenberger 2019-06-04 10:07:24 +00:00 committed by Git OBS Bridge
commit 6e2b9b6021
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-{tmp,results}
make pkgdir=`pwd`/package tmpdir=`pwd`/package-test-tmp RESULTDIR=`pwd`/package-test-results check-package
%files
%doc README doc/* netpbm.sourceforge.net/doc
%doc pnmtopalm/