]> git.pld-linux.org Git - packages/dict-jargon.git/blobdiff - dict-jargon.spec
- rel 3 (use %service)
[packages/dict-jargon.git] / dict-jargon.spec
index 126c68d67115891a1e295beead28bb03c67dc13d..9da3bd60efcf3af2fec56e8baae48a90fc65de87 100644 (file)
@@ -3,7 +3,7 @@ Summary:        The On-Line Hacker Jargon File dictionary for dictd
 Summary(pl.UTF-8):     Słownik Hacker Jargon dla dictd
 Name:          dict-%{dictname}
 Version:       4.4.7
-Release:       2
+Release:       3
 License:       GPL
 Group:         Applications/Dictionaries
 # Source0:     http://www.tuxedo.org/~esr/jargon/jarg433.gz
@@ -12,6 +12,7 @@ Source0:      http://atos.wmid.amu.edu.pl/~undefine/jarg433.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)
@@ -49,13 +50,11 @@ mv %{dictname}.* $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.042545 seconds and 4 git commands to generate.