]> git.pld-linux.org Git - packages/dict-anhviet.git/commitdiff
- rel 4 (use %service) master auto/th/dict-anhviet-1_0-4
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 12 Mar 2007 00:16:52 +0000 (00:16 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    dict-anhviet.spec -> 1.12

dict-anhviet.spec

index 8edc1cf850332e7c92ae899a426bd3f98d86abd4..d560fa6d2b97a5edd4809778237e02cd34e1705a 100644 (file)
@@ -3,7 +3,7 @@ Summary:        English-Vietnamese dictionary for dictd
 Summary(pl.UTF-8):     Słownik angielsko-wietnamski dla dictd
 Name:          dict-%{dictname}
 Version:       1.0
-Release:       3
+Release:       4
 License:       GPL (?)
 Group:         Applications/Dictionaries
 Source0:       http://vietlug.sourceforge.net/download/emacs/%{dictname}.index
@@ -11,6 +11,7 @@ Source0:      http://vietlug.sourceforge.net/download/emacs/%{dictname}.index
 Source1:       http://vietlug.sourceforge.net/download/emacs/%{dictname}.utf.dz
 # Source1-md5: e96b030c7814d8ee9dbd30cd039e5f70
 URL:           http://vietlug.sourceforge.net/
+BuildRequires: rpmbuild(macros) >= 1.268
 Requires:      %{_sysconfdir}/dictd
 Requires:      dictd
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -41,13 +42,11 @@ database %{dictname} {
 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.074146 seconds and 4 git commands to generate.