]> git.pld-linux.org Git - packages/dict-vera.git/commitdiff
- use %service; rel 4 auto/th/dict-vera-1_9-4
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 11 Mar 2007 22:56:19 +0000 (22:56 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    dict-vera.spec -> 1.11

dict-vera.spec

index 1f03dc217972d62bd75e563bd4979e9ddfb253fe..04e92d6566e31f80c3d01e690d4d205e7747b322 100644 (file)
@@ -3,7 +3,7 @@ Summary:        Virtual Entity of Relevant Acronyms dictionary for dictd
 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
@@ -11,6 +11,7 @@ Source0:      ftp://ftp.gnu.org/gnu/vera/%{dictname}-%{version}.tar.gz
 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)
@@ -48,13 +49,11 @@ mv %{dictname}.{dict.dz,index} $RPM_BUILD_ROOT%{_datadir}/dictd
 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
This page took 0.067572 seconds and 4 git commands to generate.