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

dict-wn.spec

index 41ada0b1e38650c5a7d71029036bf9c5a2c8ecd4..795767dd8bdb3dec3cf47a1967b6bd30a4d9031b 100644 (file)
@@ -3,13 +3,14 @@ Summary:      WordNet lexical reference system for dictd
 Summary(pl.UTF-8):     System referencji słownikowych WordNet dla dictd
 Name:          dict-%{dictname}
 Version:       2.0
-Release:       2
+Release:       3
 License:       Free to use, but see http://www.cogsci.princeton.edu/~wn/
 Group:         Applications/Dictionaries
 # note: pre means preformatted
 Source0:       ftp://ftp.dict.org/pub/dict/pre/%{name}-%{version}-pre.tar.gz
 # Source0-md5: fcfedcc13815cde1e28103b61c05c168
 URL:           http://www.dict.org/
+BuildRequires: rpmbuild(macros) >= 1.268
 Requires:      %{_sysconfdir}/dictd
 Requires:      dictd
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -41,13 +42,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.081211 seconds and 4 git commands to generate.