]> git.pld-linux.org Git - packages/dict-gazetteer.git/commitdiff
- rel 7 (use %service) master auto/th/dict-gazetteer-1_3-7
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 11 Mar 2007 23:26:13 +0000 (23:26 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    dict-gazetteer.spec -> 1.17

dict-gazetteer.spec

index 34fc8e0f84153ecae97583c57d84576c672d0214..ba3ec3ed59520ea3005bd0e1d2d67fd93809a439 100644 (file)
@@ -3,7 +3,7 @@ Summary:        U.S. Gazetteer for dictd
 Summary(pl.UTF-8):     Słownik nazw geograficznych w USA dla dictd
 Name:          dict-%{dictname}
 Version:       1.3
-Release:       6
+Release:       7
 License:       GPL
 Group:         Applications/Dictionaries
 Source0:       ftp://ftp.dict.org/pub/dict/%{name}-%{version}.tar.gz
@@ -13,6 +13,7 @@ URL:          http://www.dict.org/
 BuildRequires: autoconf
 BuildRequires: automake
 BuildRequires: dictzip
+BuildRequires: rpmbuild(macros) >= 1.268
 Requires:      %{_sysconfdir}/dictd
 Requires:      dictd
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -56,13 +57,11 @@ database %{dictname} {
 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.155735 seconds and 4 git commands to generate.