SPECS: mathopd.spec - use %service, rel 3
glen
glen at pld-linux.org
Sat Apr 15 15:01:37 CEST 2006
Author: glen Date: Sat Apr 15 13:01:36 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- use %service, rel 3
---- Files affected:
SPECS:
mathopd.spec (1.25 -> 1.26)
---- Diffs:
================================================================
Index: SPECS/mathopd.spec
diff -u SPECS/mathopd.spec:1.25 SPECS/mathopd.spec:1.26
--- SPECS/mathopd.spec:1.25 Tue Mar 7 09:44:03 2006
+++ SPECS/mathopd.spec Sat Apr 15 15:01:31 2006
@@ -3,7 +3,7 @@
Summary(pl): Szybki, nieduży, nie forkujący się serwer HTTP
Name: mathopd
Version: 1.5
-Release: 2
+Release: 3
License: BSD
Group: Networking
Source0: http://www.mathopd.org/dist/%{name}-%{version}p3.tar.gz
@@ -12,7 +12,7 @@
Source2: %{name}.conf
Source3: http://www.mathopd.org/dist/dir_cgi.c.txt
URL: http://www.mathopd.org/
-BuildRequires: rpmbuild(macros) >= 1.202
+BuildRequires: rpmbuild(macros) >= 1.268
Requires(post,preun): /sbin/chkconfig
Requires(postun): /usr/sbin/groupdel
Requires(postun): /usr/sbin/userdel
@@ -47,7 +47,6 @@
%build
CFLAGS="%{rpmcflags}"; export CFLAGS
-
%{__cc} %{rpmcflags} %{rpmldflags} -o mathopd-dir_cgi dir_cgi.c
cd src
@@ -73,17 +72,11 @@
%post
/sbin/chkconfig --add %{name}
-if [ -f /var/lock/subsys/mathopd ]; then
- /etc/rc.d/init.d/mathopd restart 1>&2
-else
- echo "Run \"/etc/rc.d/init.d/mathopd start\" to start %{name} HTTP daemon."
-fi
+%service mathopd restart "%{name} HTTP daemon"
%preun
if [ "$1" = "0" ]; then
- if [ -f /var/lock/subsys/mathopd ]; then
- /etc/rc.d/init.d/mathopd stop 1>&2
- fi
+ %service mathopd stop
/sbin/chkconfig --del %{name}
fi
@@ -108,6 +101,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.26 2006/04/15 13:01:31 glen
+- use %service, rel 3
+
Revision 1.25 2006/03/07 08:44:03 glen
- rel 2
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/mathopd.spec?r1=1.25&r2=1.26&f=u
More information about the pld-cvs-commit
mailing list