SPECS: dict-gazetteer.spec - rel 7 (use %service)

glen glen at pld-linux.org
Mon Mar 12 00:26:18 CET 2007


Author: glen                         Date: Sun Mar 11 23:26:18 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- rel 7 (use %service)

---- Files affected:
SPECS:
   dict-gazetteer.spec (1.16 -> 1.17) 

---- Diffs:

================================================================
Index: SPECS/dict-gazetteer.spec
diff -u SPECS/dict-gazetteer.spec:1.16 SPECS/dict-gazetteer.spec:1.17
--- SPECS/dict-gazetteer.spec:1.16	Mon Feb 12 22:23:53 2007
+++ SPECS/dict-gazetteer.spec	Mon Mar 12 00:26:13 2007
@@ -4,7 +4,7 @@
 Summary(pl.UTF-8):	Słownik nazw geograficznych w USA dla dictd
 Name:		dict-%{dictname}
 Version:	1.3
-Release:	6
+Release:	7
 License:	GPL
 Group:		Applications/Dictionaries
 Source0:	ftp://ftp.dict.org/pub/dict/%{name}-%{version}.tar.gz
@@ -14,6 +14,7 @@
 BuildRequires:	autoconf
 BuildRequires:	automake
 BuildRequires:	dictzip
+BuildRequires:	rpmbuild(macros) >= 1.268
 Requires:	%{_sysconfdir}/dictd
 Requires:	dictd
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -57,13 +58,11 @@
 rm -rf $RPM_BUILD_ROOT
 
 %post
-if [ -f /var/lock/subsys/dictd ]; then
-	/etc/rc.d/init.d/dictd restart 1>&2
-fi
+%service -q dictd restart
 
 %postun
-if [ -f /var/lock/subsys/dictd ]; then
-	/etc/rc.d/init.d/dictd restart 1>&2 || true
+if [ "$1" = 0 ]; then
+	%service -q dictd restart
 fi
 
 %files
@@ -77,6 +76,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.17  2007/03/11 23:26:13  glen
+- rel 7 (use %service)
+
 Revision 1.16  2007/02/12 21:23:53  glen
 - tabs in preamble
 
@@ -119,9 +121,9 @@
 - release 3
 
 Revision 1.3  2002/05/21 23:12:52  kloczek
-perl -pi -e "s/^automake -a -c -f --foreing/\%\{__automake\}/; \
+- perl -pi -e "s/^automake -a -c -f --foreing/\%\{__automake\}/; \
              s/^automake -a -c -f/\%\{__automake\}/; \
-	     s/^autoconf/\%\{__autoconf\}/"
+     s/^autoconf/\%\{__autoconf\}/"
 
 Revision 1.2  2002/05/10 21:43:10  kloczek
 - release 2.
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/dict-gazetteer.spec?r1=1.16&r2=1.17&f=u



More information about the pld-cvs-commit mailing list