Run test suite (except for weavetest).

This commit is contained in:
Tim Waugh 2013-07-10 15:56:15 +01:00
parent 143378803e
commit 2c6669196b
2 changed files with 26 additions and 1 deletions

View File

@ -0,0 +1,12 @@
diff -up gutenprint-5.2.9/src/cups/test-ppds.test-suite gutenprint-5.2.9/src/cups/test-ppds
--- gutenprint-5.2.9/src/cups/test-ppds.test-suite 2013-07-16 16:38:26.625593051 +0100
+++ gutenprint-5.2.9/src/cups/test-ppds 2013-07-16 16:38:47.377893363 +0100
@@ -8,7 +8,7 @@ make EXTRA_GENPPD_OPTS=-b ppd-clean ppd-
# Also, a number of our media sizes aren't named correctly, but we'll
# accept those issues rather than cluttering the namespace further and/or
# changing tag names.
-cupstestppdopts='-I profiles -W sizes'
+cupstestppdopts='-I profiles -W sizes -I filters'
ppd_count=`find ppd \( -name '*.ppd.gz' -o -name '*.ppd' \) -print | wc -l`

View File

@ -3,7 +3,7 @@
Name: gutenprint
Summary: Printer Drivers Package
Version: 5.2.9
Release: 12%{?dist}
Release: 13%{?dist}
Group: System Environment/Base
URL: http://gimp-print.sourceforge.net/
Source0: http://downloads.sourceforge.net/gimp-print/%{name}-%{version}.tar.bz2
@ -19,6 +19,7 @@ Patch4: gutenprint-device-ids.patch
Patch5: gutenprint-ui2-libdeps.patch
Patch6: gutenprint-yyin.patch
Patch7: gutenprint-manpage.patch
Patch8: gutenprint-test-suite.patch
License: GPLv2+
BuildRequires: cups-libs, cups-devel, cups
@ -191,6 +192,9 @@ Epson, HP and compatible printers.
# Added some escputil options to the manpage (bug #979064).
%patch7 -p1 -b .manpage
# Fix the test suite.
%patch8 -p1 -b .test-suite
cp %{SOURCE2} src/cups/cups-genppdupdate.in
%build
@ -200,6 +204,9 @@ cp %{SOURCE2} src/cups/cups-genppdupdate.in
mkdir m4local
autoreconf --verbose --force --install
# Don't run the weave test as it takes a very long time.
sed -i -e 's,^\(TESTS *=.*\) run-weavetest,\1,' test/Makefile.in
%configure --disable-static --disable-dependency-tracking \
--with-foomatic --with-ghostscript \
--enable-samples --enable-escputil \
@ -209,6 +216,9 @@ autoreconf --verbose --force --install
--enable-simplified-cups-ppds
make %{?_smp_mflags}
%check
make check
%install
make DESTDIR=%{buildroot} install
@ -314,6 +324,9 @@ fi
/bin/rm -f /var/cache/foomatic/*
%changelog
* Tue Jul 16 2013 Tim Waugh <twaugh@redhat.com> - 5.2.9-13
- Run test suite.
* Thu Jun 27 2013 Tim Waugh <twaugh@redhat.com> - 5.2.9-12
- Fixed changelog dates.
- Added some escputil options to the manpage (bug #979064).