SPECS: Apache-Gallery.spec - use %service - define pdir/pnam for p...

glen glen at pld-linux.org
Sun Mar 19 18:20:58 CET 2006


Author: glen                         Date: Sun Mar 19 17:20:58 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- use %service
- define pdir/pnam for perl automatics
- BR apache-mod_perl-devel not base

---- Files affected:
SPECS:
   Apache-Gallery.spec (1.18 -> 1.19) 

---- Diffs:

================================================================
Index: SPECS/Apache-Gallery.spec
diff -u SPECS/Apache-Gallery.spec:1.18 SPECS/Apache-Gallery.spec:1.19
--- SPECS/Apache-Gallery.spec:1.18	Mon Dec 12 14:44:44 2005
+++ SPECS/Apache-Gallery.spec	Sun Mar 19 18:20:52 2006
@@ -5,11 +5,13 @@
 #
 %include	/usr/lib/rpm/macros.perl
 %define 	apxs		/usr/sbin/apxs
+%define		pdir	Apache
+%define		pnam	Gallery
+%define		_rc	RC2
 Summary:	An Apache module for creating an online gallery
 Summary(pl):	Moduł Apache'a do tworzenia galerii online
 Name:		Apache-Gallery
 Version:	1.0
-%define		_rc	RC2
 Release:	0.%{_rc}.1
 License:	Artistic
 Group:		Applications/Graphics
@@ -17,7 +19,7 @@
 # Source0-md5:	d195f22377276d00d083b1b3e48847bb
 Source1:	%{name}.conf
 URL:		http://apachegallery.dk/
-BuildRequires:	apache-mod_perl >= 1.99
+BuildRequires:	apache-mod_perl-devel >= 1:1.99
 %{?with_tests:BuildRequires:	apache1-mod_perl}
 BuildRequires:	perl-CGI >= 3.08
 BuildRequires:	perl-Image-Imlib2 >= 1.02
@@ -28,6 +30,7 @@
 BuildRequires:	perl-devel
 BuildRequires:	perl-libapreq2
 BuildRequires:	rpm-perlprov >= 3.0.3-16
+BuildRequires:	rpmbuild(macros) >= 1.268
 Requires:	apache-mod_perl >= 1:2.0.0
 Conflicts:	apache-mod_autoindex
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -79,17 +82,11 @@
 rm -rf $RPM_BUILD_ROOT
 
 %post
-if [ -f /var/lock/subsys/httpd ]; then
-	/etc/rc.d/init.d/httpd reload 1>&2
-else
-	echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache HTTP daemon."
-fi
+%service -q httpd reload
 
 %preun
 if [ "$1" = "0" ]; then
-	if [ -f /var/lock/subsys/httpd ]; then
-		/etc/rc.d/init.d/httpd reload 1>&2
-	fi
+	%service -q httpd reload
 fi
 
 %files
@@ -115,6 +112,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.19  2006/03/19 17:20:52  glen
+- use %service
+- define pdir/pnam for perl automatics
+- BR apache-mod_perl-devel not base
+
 Revision 1.18  2005/12/12 13:44:44  glen
 - adapterized (sorted %verify attrs)
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/Apache-Gallery.spec?r1=1.18&r2=1.19&f=u



More information about the pld-cvs-commit mailing list