]> git.pld-linux.org Git - packages/ez-ipupdate.git/blobdiff - ez-ipupdate.spec
- tabs in preamble
[packages/ez-ipupdate.git] / ez-ipupdate.spec
index 59b7961d70ec8592077f4a1b736ce3e6e6e418fd..ccbaa7039d4815dc29dc964f46c091394f862dd3 100644 (file)
@@ -1,20 +1,22 @@
 Summary:       Client for Dynamic DNS Services
-Summary(pl):   Klient dla serwisów dynamicznego DNS
+Summary(pl.UTF-8):     Klient dla serwisów dynamicznego DNS
 Name:          ez-ipupdate
 Version:       3.0.11b8
-Release:       2
-Group:         Networking
+Release:       5
 License:       GPL
-Source0:       http://www.gusnet.cx/proj/ez-ipupdate/dist/%{name}-%{version}.tar.gz
+Group:         Networking
+Source0:       http://ez-ipupdate.com/dist/%{name}-%{version}.tar.gz
 # Source0-md5: 000211add4c4845ffa4211841bff4fb0
 Source1:       %{name}.init
 Source2:       %{name}.config
-URL:           http://www.gusnet.cx/proj/ez-ipupdate/
+Patch0:                %{name}-CAN-2004-0980.patch
+URL:           http://ez-ipupdate.com/
 BuildRequires: autoconf
 BuildRequires: automake
 BuildRequires: perl-base
-PreReq:                rc-scripts
+BuildRequires: rpmbuild(macros) >= 1.268
 Requires(post,preun):  /sbin/chkconfig
+Requires:      rc-scripts
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -36,12 +38,12 @@ the dynamic DNS service offered at:
 It is pure C and works on Linux, *BSD and Solaris.
 
 Don't forget to create your own config file (in
-/etc/ez-ipupdate.conf). You can find some example in
-/usr/share/doc/%{name}-%{version}.
+/etc/ez-ipupdate.conf). You can find some examples in
+%{_docdir}/%{name}-%{version}.
 
-%description -l pl
-ez-ipupdate to ma³e narzêdzie do uaktualniania nazwy hosta w dowolnym
-serwisie dynamicznego DNS spo¶ród:
+%description -l pl.UTF-8
+ez-ipupdate to małe narzędzie do uaktualniania nazwy hosta w dowolnym
+serwisie dynamicznego DNS spośród:
  - http://www.ez-ip.net/
  - http://www.justlinux.com/
  - http://www.dhs.org/
@@ -55,17 +57,18 @@ serwisie dynamicznego DNS spo
  - http://www.hn.org/
  - http://www.zoneedit.com/
 
-Jest napisane w czystym C i dzia³a na Linuksie, *BSD oraz Solarisie.
+Jest napisane w czystym C i działa na Linuksie, *BSD oraz Solarisie.
 
-Nie nale¿y zapomnieæ o utworzeniu w³asnego pliku konfiguracyjnego
-(/etc/ez-ipupdate.conf). Przyk³ad mo¿na znale¼æ w katalogu
-/usr/share/doc/%{name}-%{version}.
+Nie należy zapomnieć o utworzeniu własnego pliku konfiguracyjnego
+(/etc/ez-ipupdate.conf). Przykład można znaleźć w katalogu
+%{_docdir}/%{name}-%{version}.
 
 %prep
 %setup -q
+%patch0 -p0
 
 %build
-install %{_datadir}/automake/config.* .
+install /usr/share/automake/config.* .
 %{__aclocal}
 %{__autoconf}
 %configure
@@ -89,17 +92,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
 
@@ -107,6 +104,6 @@ fi
 %defattr(644,root,root,755)
 %doc README CHANGELOG *.conf
 %attr(755,root,root) %{_bindir}/*
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/%{name}.conf
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/%{name}
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
 %attr(754,root,root) /etc/rc.d/init.d/%{name}
This page took 0.091773 seconds and 4 git commands to generate.