SPECS: apache-mod_perl.spec - added tests (default off)

radek radek at pld-linux.org
Fri Sep 8 16:30:04 CEST 2006


Author: radek                        Date: Fri Sep  8 14:30:04 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added tests (default off)

---- Files affected:
SPECS:
   apache-mod_perl.spec (1.148 -> 1.149) 

---- Diffs:

================================================================
Index: SPECS/apache-mod_perl.spec
diff -u SPECS/apache-mod_perl.spec:1.148 SPECS/apache-mod_perl.spec:1.149
--- SPECS/apache-mod_perl.spec:1.148	Fri Sep  8 15:46:54 2006
+++ SPECS/apache-mod_perl.spec	Fri Sep  8 16:29:59 2006
@@ -4,6 +4,7 @@
 #
 # Conditional build:
 %bcond_without	autodeps	# don't care about perl() deps resolving
+%bcond_with	tests		# perform "make test"
 #
 %include	/usr/lib/rpm/macros.perl
 %define		apxs	/usr/sbin/apxs
@@ -52,6 +53,15 @@
 BuildRequires:	perl-devel >= 1:5.8.2
 BuildRequires:	rpm-perlprov >= 3.0.3-16
 BuildRequires:	rpmbuild(macros) >= 1.268
+%if %{with tests}
+BuildRequires:	apache-mod_auth_basic
+BuildRequires:	apache-mod_authz_host
+BuildRequires:	apache-mod_deflate
+BuildRequires:	apache-mod_include
+BuildRequires:	apache-mod_mime
+BuildRequires:	apache-mod_proxy
+BuildRequires:	perl-CGI >= 3.22
+%endif
 # older apache-mod_perl could make bad autodeps to perl-mod_perl
 BuildConflicts:	apache-mod_perl < 1:2.0.2-9
 Requires:	apache(modules-api) = %apache_modules_api
@@ -249,6 +259,8 @@
 	CC="%{__cc}" \
 	MP_APXS=%{apxs}
 
+%{?with_tests:%{__make} test}
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/httpd.conf}
@@ -313,6 +325,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.149  2006/09/08 14:29:59  radek
+- added tests (default off)
+
 Revision 1.148  2006/09/08 13:46:54  radek
 - version 2.03 rc1
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/apache-mod_perl.spec?r1=1.148&r2=1.149&f=u



More information about the pld-cvs-commit mailing list