]> git.pld-linux.org Git - packages/dict-wn.git/blobdiff - dict-wn.spec
- HEAD merge
[packages/dict-wn.git] / dict-wn.spec
index 07e7f8a95b002454eddb19fa9e998280db73d45a..2edb62ae3ae14a5da4ef7794fa76cac569ba463c 100644 (file)
@@ -2,15 +2,17 @@
 Summary:       WordNet lexical reference system for dictd
 Summary(pl):   System referencji s³ownikowych WordNet dla dictd
 Name:          dict-%{dictname}
-Version:       1.7a
-Release:       2
+Version:       2.0
+Release:       3
 License:       Free to use, but see http://www.cogsci.princeton.edu/~wn/
 Group:         Applications/Dictionaries
-Source0:       ftp://ftp.dict.org/pub/dict/pre/%{name}_%{version}.tar.gz
-# Source0-md5: e58001b93c59a607bc9d5903a80df71e
+# 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
@@ -40,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.068926 seconds and 4 git commands to generate.