packages: tinyproxy/tinyproxy.spec - make use of %service macro, added prop...

pawelz pawelz at pld-linux.org
Wed Aug 26 10:49:50 CEST 2009


Author: pawelz                       Date: Wed Aug 26 08:49:50 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- make use of %service macro, added proper BR
- added warning about unstable version

---- Files affected:
packages/tinyproxy:
   tinyproxy.spec (1.26 -> 1.27) 

---- Diffs:

================================================================
Index: packages/tinyproxy/tinyproxy.spec
diff -u packages/tinyproxy/tinyproxy.spec:1.26 packages/tinyproxy/tinyproxy.spec:1.27
--- packages/tinyproxy/tinyproxy.spec:1.26	Sat Oct 25 18:09:16 2008
+++ packages/tinyproxy/tinyproxy.spec	Wed Aug 26 10:49:45 2009
@@ -1,4 +1,7 @@
 # $Revision$, $Date$
+# NOTE:
+# - acording to tinyproxy homepage this is unstable *development* version not
+#   suitable for production use. See TINYPROXY_1_6 branch for stable version
 Summary:	Small HTTP/SSL proxy daemon
 Summary(pl.UTF-8):	Mały demon proxy
 Name:		tinyproxy
@@ -14,6 +17,7 @@
 BuildRequires:	autoconf
 BuildRequires:	automake
 BuildRequires:	libtool
+BuildRequires:	rpmbuild(macros) >= 1.228
 Requires(post,preun):	/sbin/chkconfig
 Requires:	rc-scripts
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -56,17 +60,11 @@
 
 %post
 /sbin/chkconfig --add tinyproxy
-if [ -f /var/lock/subsys/tinyproxy ]; then
-	/etc/rc.d/init.d/tinyproxy restart 1>&2
-else
-	echo "Run \"/etc/rc.d/init.d/tinyproxy start\" to start tinyproxy daemon."
-fi
+%service tinyproxy restart "tinyproxy daemon"
 
 %preun
 if [ "$1" = "0" ]; then
-	if [ -f /var/lock/subsys/tinyproxy ]; then
-		/etc/rc.d/init.d/tinyproxy stop 1>&2
-	fi
+	%service tinyproxy stop
 	/sbin/chkconfig --del tinyproxy
 fi
 
@@ -86,6 +84,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.27  2009/08/26 08:49:45  pawelz
+- make use of %service macro, added proper BR
+- added warning about unstable version
+
 Revision 1.26  2008/10/25 16:09:16  blues
 - HTTP group
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/tinyproxy/tinyproxy.spec?r1=1.26&r2=1.27&f=u



More information about the pld-cvs-commit mailing list