packages: gscan2pdf/gscan2pdf.spec - further pldization - added tests bcond...

sparky sparky at pld-linux.org
Sat Feb 12 21:23:59 CET 2011


Author: sparky                       Date: Sat Feb 12 20:23:59 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- further pldization
- added tests bcond
- make tests moved from %check to %build

---- Files affected:
packages/gscan2pdf:
   gscan2pdf.spec (1.9 -> 1.10) 

---- Diffs:

================================================================
Index: packages/gscan2pdf/gscan2pdf.spec
diff -u packages/gscan2pdf/gscan2pdf.spec:1.9 packages/gscan2pdf/gscan2pdf.spec:1.10
--- packages/gscan2pdf/gscan2pdf.spec:1.9	Fri Feb  4 19:23:54 2011
+++ packages/gscan2pdf/gscan2pdf.spec	Sat Feb 12 21:23:53 2011
@@ -1,5 +1,8 @@
 # $Revision$, $Date$
 #
+# Conditional build:
+%bcond_without	tests	# do not perform "make test"
+#
 %include	/usr/lib/rpm/macros.perl
 Summary:	A GUI to produce PDFs from scanned documents
 Name:		gscan2pdf
@@ -14,6 +17,7 @@
 URL:		http://gscan2pdf.sourceforge.net/
 BuildRequires:	desktop-file-utils
 BuildRequires:	gettext-devel
+%{?with_tests:BuildRequires:	perl-Test-Pod}
 BuildRequires:	perl-devel
 BuildRequires:	rpm-perlprov >= 4.1-13
 Requires(post,postun):	gtk-update-icon-cache
@@ -52,6 +56,8 @@
 %{__perl} Makefile.PL INSTALLDIRS=vendor
 %{__make}
 
+%{?with_tests:%{__make} test}
+
 %install
 rm -rf $RPM_BUILD_ROOT
 %{__make} install \
@@ -67,9 +73,6 @@
 
 %find_lang %{name}
 
-%check
-make test
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -96,6 +99,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.10  2011/02/12 20:23:53  sparky
+- further pldization
+- added tests bcond
+- make tests moved from %check to %build
+
 Revision 1.9  2011/02/04 18:23:54  wiget
 - Requires(post,postun): gtk-update-icon-cache
 
@@ -121,4 +129,3 @@
 
 Revision 1.2  2009/02/17 13:51:51  jajcus
 - PLDized a bit
-
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gscan2pdf/gscan2pdf.spec?r1=1.9&r2=1.10&f=u



More information about the pld-cvs-commit mailing list