]> git.pld-linux.org Git - packages/dict-dalf.git/commitdiff
- rel 3 (use %service) auto/th/dict-dalf-1_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-dalf.spec -> 1.10

dict-dalf.spec

index 70843c5478d0dcf187000130be7796a35b28f0e8..5c7d17bac374879a383ee47aa5c202ce5f74474e 100644 (file)
@@ -3,7 +3,7 @@ Summary:        Russian monolingual dictionary dalf for dictd
 Summary(pl.UTF-8):     Słownik rosyjsko-rosyjski dalf dla dictd
 Name:          dict-%{dictname}
 Version:       1.0
-Release:       2
+Release:       3
 License:       unknown
 Group:         Applications/Dictionaries
 Source0:       http://www.chat.ru/~muller_dic/dalf.gz
@@ -12,6 +12,7 @@ Patch0:               %{dictname}.patch
 URL:           http://www.chat.ru/~muller_dic/
 BuildRequires: dictfmt
 BuildRequires: dictzip
+BuildRequires: rpmbuild(macros) >= 1.268
 Requires:      %{_sysconfdir}/dictd
 Requires:      dictd
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -53,13 +54,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.056292 seconds and 4 git commands to generate.