SPECS: zm.spec - use %service, add chkconfig deps

glen glen at pld-linux.org
Thu Apr 20 20:01:16 CEST 2006


Author: glen                         Date: Thu Apr 20 18:01:16 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- use %service, add chkconfig deps

---- Files affected:
SPECS:
   zm.spec (1.19 -> 1.20) 

---- Diffs:

================================================================
Index: SPECS/zm.spec
diff -u SPECS/zm.spec:1.19 SPECS/zm.spec:1.20
--- SPECS/zm.spec:1.19	Thu Sep  8 00:38:30 2005
+++ SPECS/zm.spec	Thu Apr 20 20:01:11 2006
@@ -1,14 +1,15 @@
 # $Revision$, $Date$
 # ToDo:
 # -move cambozola to separate spec ?
+# - no globs for suid/sgid files
 #
 Summary:	Zone Minder is a software motion detector with nice WWW GUI
 Summary(pl):	Zone Minder - programowy wykrywacz ruchu z miłym GUI przez WWW
 Name:		zm
 Version:	1.21.3
 Release:	1
-Group:		Applications/Graphics
 License:	GPL v2
+Group:		Applications/Graphics
 Source0:	http://www.zoneminder.com/fileadmin/downloads/%{name}-%{version}.tar.gz
 # Source0-md5:	59e2be0fe4c5a75c2045484545ad3f43
 Source1:	%{name}-config.txt
@@ -31,19 +32,22 @@
 BuildRequires:	automake
 #BuildRequires:	curl-devel
 BuildRequires:	ffmpeg-devel >= 0.4.8
+BuildRequires:	lame-libs-devel
 BuildRequires:	libjpeg-devel
 BuildRequires:	libstdc++-devel
-BuildRequires:	lame-libs-devel
 BuildRequires:	mysql-devel
 BuildRequires:	pcre-devel
 BuildRequires:	perl-DBI
+BuildRequires:	rpmbuild(macros) >= 1.268
+Requires(post,preun):	/sbin/chkconfig
 Requires:	pcre-static
 Requires:	perl-DBD-mysql
-Requires:	perl-MIME-tools
 Requires:	perl-Date-Manip
+Requires:	perl-MIME-tools
 Requires:	php
-Requires:	php-pcre
 Requires:	php-mysql
+Requires:	php-pcre
+Requires:	rc-scripts
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -200,15 +204,15 @@
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+/sbin/chkconfig --add zm
+
 %preun
 if [ "$1" = "0" ]; then
-	/etc/rc.d/init.d/zm stop
+	%service zm stop
 	/sbin/chkconfig --del zm
 fi
 
-%post
-/sbin/chkconfig --add zm
-
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS README
@@ -298,6 +302,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.20  2006/04/20 18:01:11  glen
+- use %service, add chkconfig deps
+
 Revision 1.19  2005/09/07 22:38:30  hunter
 - more BR:/R:
 
================================================================

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



More information about the pld-cvs-commit mailing list