]> git.pld-linux.org Git - packages/ddclient.git/blobdiff - ddclient.spec
- version 3.7.0
[packages/ddclient.git] / ddclient.spec
index 1ccd19313c21216cacf8570f1f3917caf0f66f7e..d6cc01b4e9d8006c43cfe41ee9af8e0fa680abc3 100644 (file)
@@ -3,18 +3,19 @@ Summary:      A dynamic IP address utility
 Summary(pl):   Narzêdzie do dynamicznych adresów IP
 Summary(pt_BR):        Cliente para atualizar entradas DNS dinâmicas no DynDNS.org
 Name:          ddclient
-Epoch:         1
-Version:       3.6.7
+Version:       3.7.0
 Release:       1
-Group:         Networking
+Epoch:         1
 License:       GPL v2
+Group:         Networking
 Source0:       http://dl.sourceforge.net/ddclient/%{name}-%{version}.tar.bz2
-# Source0-md5: b07a29a891dcf40b941b9bc5ef3ce598
+# Source0-md5: 41a3307ca32cce0f67c0f3281c5f17f2
 Source1:       %{name}.init
 URL:           http://ddclient.sourceforge.net/
 BuildRequires: rpm-perlprov
-Requires:      rc-scripts
+BuildRequires: rpmbuild(macros) >= 1.268
 Requires(post,preun):  /sbin/chkconfig
+Requires:      rc-scripts
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -63,7 +64,7 @@ gratuita.
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/ddclient,/etc/rc.d/init.d,%{_sbindir}}
 
-install sample-etc_ddclient.conf $RPM_BUILD_ROOT/etc/%{name}/%{name}.conf
+install sample-etc_ddclient.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/%{name}.conf
 install %{name} $RPM_BUILD_ROOT%{_sbindir}
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
 
@@ -72,17 +73,11 @@ rm -rf $RPM_BUILD_ROOT
 
 %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 %{name} restart "%{name} daemon"
 
 %preun
 if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/%{name} ]; then
-               /etc/rc.d/init.d/%{name} stop >&2
-       fi
+       %service %{name} stop
        /sbin/chkconfig --del %{name}
 fi
 
This page took 0.061158 seconds and 4 git commands to generate.