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)
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