SPECS: dict-vera.spec - use %service; rel 4
glen
glen at pld-linux.org
Sun Mar 11 23:56:24 CET 2007
Author: glen Date: Sun Mar 11 22:56:24 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- use %service; rel 4
---- Files affected:
SPECS:
dict-vera.spec (1.10 -> 1.11)
---- Diffs:
================================================================
Index: SPECS/dict-vera.spec
diff -u SPECS/dict-vera.spec:1.10 SPECS/dict-vera.spec:1.11
--- SPECS/dict-vera.spec:1.10 Mon Feb 12 22:23:53 2007
+++ SPECS/dict-vera.spec Sun Mar 11 23:56:19 2007
@@ -4,7 +4,7 @@
Summary(pl.UTF-8): Słownik Virtual Entity of Relevant Acronyms dla dictd
Name: dict-%{dictname}
Version: 1.9
-Release: 3
+Release: 4
License: GPL
Group: Applications/Dictionaries
Source0: ftp://ftp.gnu.org/gnu/vera/%{dictname}-%{version}.tar.gz
@@ -12,6 +12,7 @@
URL: http://www.dict.org/
BuildRequires: dictfmt
BuildRequires: dictzip
+BuildRequires: rpmbuild(macros) >= 1.268
Requires: %{_sysconfdir}/dictd
Requires: dictd
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -49,13 +50,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
@@ -70,6 +69,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.11 2007/03/11 22:56:19 glen
+- use %service; rel 4
+
Revision 1.10 2007/02/12 21:23:53 glen
- tabs in preamble
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/dict-vera.spec?r1=1.10&r2=1.11&f=u
More information about the pld-cvs-commit
mailing list