SPECS: Apache-FileManager.spec - fix postun, add missing BR and R(...

glen glen at pld-linux.org
Mon Aug 8 17:20:58 CEST 2005


Author: glen                         Date: Mon Aug  8 15:20:58 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- fix postun, add missing BR and R(p,pu) for %service macro

---- Files affected:
SPECS:
   Apache-FileManager.spec (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SPECS/Apache-FileManager.spec
diff -u SPECS/Apache-FileManager.spec:1.2 SPECS/Apache-FileManager.spec:1.3
--- SPECS/Apache-FileManager.spec:1.2	Mon Aug  8 17:02:04 2005
+++ SPECS/Apache-FileManager.spec	Mon Aug  8 17:20:53 2005
@@ -8,6 +8,8 @@
 Group:		Networking/Daemons
 Source0:	http://www.cpan.org/modules/by-module/Apache/PMC/%{name}-%{version}.tar.gz
 # Source0-md5:	c9215148e78d20b3ef9774210d08daf3
+BuildRequires:	rpmbuild(macros) >= 1.228
+Requires(post,preun):	rc-scripts
 URL:		http://freshmeat.net/projects/apache-filemanager/
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -23,9 +25,9 @@
 
 %build
 %{__perl} Makefile.PL \
-        INSTALLDIRS=vendor
+	INSTALLDIRS=vendor
 %{__make} \
-        OPTIMIZE="%{rpmcflags}"
+	OPTIMIZE="%{rpmcflags}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -40,23 +42,27 @@
 %service apache restart
 
 %postun
-%service apache restart
+if [ "$1" = 0 ]; then
+	%service -q apache restart
+fi
 
+%files
 %defattr(644,root,root,755)
 %doc Changes
 %{_mandir}/man3/*
 
-
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <feedback at pld-linux.org>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.3  2005/08/08 15:20:53  glen
+- fix postun, add missing BR and R(p,pu) for %service macro
+
 Revision 1.2  2005/08/08 15:02:04  paszczus
 - added Changes and man file
 
 Revision 1.1  2005/08/08 14:53:37  paszczus
 - raw spec
 - not finished, builds without any files
-
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/Apache-FileManager.spec?r1=1.2&r2=1.3&f=u




More information about the pld-cvs-commit mailing list