]> git.pld-linux.org Git - packages/dict-gcide.git/commitdiff
- rel 4 (use %service) master auto/th/dict-gcide-0_44-4
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 12 Mar 2007 00:16:52 +0000 (00:16 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    dict-gcide.spec -> 1.11

dict-gcide.spec

index a8b732d9c5aa07fb0a786a35f2381b4396edaf31..f44d36f421e85dc7e9fc6ff972e8bbc258539dbf 100644 (file)
@@ -3,7 +3,7 @@ Summary:        Collaborative International Dictionary of English for dictd
 Summary(pl.UTF-8):     Słownik Collaborative International Dictionary of English dla dictd
 Name:          dict-%{dictname}
 Version:       0.44
-Release:       3
+Release:       4
 License:       GPL
 Group:         Applications/Dictionaries
 Source0:       ftp://ftp.dict.org/pub/dict/pre/%{name}-%{version}.tar.gz
@@ -11,6 +11,7 @@ Source0:      ftp://ftp.dict.org/pub/dict/pre/%{name}-%{version}.tar.gz
 # based on ftp://ftp.gnu.org/gnu/gcide/gcide-0.46/README.DIC
 Source1:       %{name}-README.DIC
 URL:           http://www.dict.org/
+BuildRequires: rpmbuild(macros) >= 1.268
 Requires:      %{_sysconfdir}/dictd
 Requires:      dictd
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -39,19 +40,17 @@ database %{dictname} {
        data  \"$dictprefix.dict.dz\"
        index \"$dictprefix.index\"
 }" > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/%{dictname}.dictconf
-mv %{dictname}.* $RPM_BUILD_ROOT%{_datadir}/dictd
+cp -a %{dictname}.* $RPM_BUILD_ROOT%{_datadir}/dictd
 
 %clean
 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.094614 seconds and 4 git commands to generate.