]> git.pld-linux.org Git - packages/dictd.git/commitdiff
- rel 2 (use %service)
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 12 Mar 2007 00:16:41 +0000 (00:16 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    dictd.spec -> 1.61

dictd.spec

index fabd0724a90a1eb7838c911952f47b58e32c6188..d68a32a96218a0dc89f097447e40bd2b8a00f2e6 100644 (file)
@@ -2,7 +2,7 @@ Summary:        Dictionary database server
 Summary(pl.UTF-8):     Serwer bazy słowników
 Name:          dictd
 Version:       1.10.4
 Summary(pl.UTF-8):     Serwer bazy słowników
 Name:          dictd
 Version:       1.10.4
-Release:       1
+Release:       2
 License:       GPL
 Group:         Networking/Daemons
 Source0:       http://dl.sourceforge.net/dict/%{name}-%{version}.tar.gz
 License:       GPL
 Group:         Networking/Daemons
 Source0:       http://dl.sourceforge.net/dict/%{name}-%{version}.tar.gz
@@ -18,12 +18,13 @@ BuildRequires:      flex
 BuildRequires: judy-devel
 BuildRequires: libdbi-devel
 BuildRequires: perl-base
 BuildRequires: judy-devel
 BuildRequires: libdbi-devel
 BuildRequires: perl-base
+BuildRequires: rpmbuild(macros) >= 1.268
 BuildRequires: zlib-devel
 Requires(post,preun):  /sbin/chkconfig
 BuildRequires: zlib-devel
 Requires(post,preun):  /sbin/chkconfig
-Requires:      /sbin/chkconfig
+Requires:      rc-scripts
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                specflags_ia32   -fomit-frame-pointer 
+%define                specflags_ia32   -fomit-frame-pointer
 
 %description
 Server for the Dictionary Server Protocol (DICT), a TCP transaction
 
 %description
 Server for the Dictionary Server Protocol (DICT), a TCP transaction
@@ -170,17 +171,11 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 /sbin/chkconfig --add %{name}
 
 %post
 /sbin/chkconfig --add %{name}
-if [ -f /var/lock/subsys/%{name} ]; then
-       /etc/rc.d/init.d/%{name} restart >&2
-else
-       echo "Run \"/etc/rc.d/init.d/%{name} start\" to start %{name} daemon."
-fi
+%service dictd restart
 
 %preun
 if [ "$1" = "0" ]; then
 
 %preun
 if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/%{name} ]; then
-               /etc/rc.d/init.d/%{name} stop >&2
-       fi
+       %service dictd stop
        /sbin/chkconfig --del %{name}
 fi
 
        /sbin/chkconfig --del %{name}
 fi
 
This page took 0.075088 seconds and 4 git commands to generate.