]> git.pld-linux.org Git - packages/dict-wn.git/blobdiff - dict-wn.spec
- HEAD merge
[packages/dict-wn.git] / dict-wn.spec
index 6d8313fb5955fc93aca3e3198a2021cd093ac235..2edb62ae3ae14a5da4ef7794fa76cac569ba463c 100644 (file)
@@ -3,15 +3,16 @@ Summary:      WordNet lexical reference system for dictd
 Summary(pl):   System referencji s³ownikowych WordNet dla dictd
 Name:          dict-%{dictname}
 Version:       2.0
-Release:       1
+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/
-Requires:      dictd
+BuildRequires: rpmbuild(macros) >= 1.268
 Requires:      %{_sysconfdir}/dictd
+Requires:      dictd
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -41,16 +42,14 @@ 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
 %defattr(644,root,root,755)
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/%{dictname}.dictconf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dictd/%{dictname}.dictconf
 %{_datadir}/dictd/%{dictname}.*
This page took 0.128268 seconds and 4 git commands to generate.