]> git.pld-linux.org Git - packages/ez-ipupdate.git/blobdiff - ez-ipupdate.spec
- tabs in preamble
[packages/ez-ipupdate.git] / ez-ipupdate.spec
index cdb9bcbd32abb126234aa2c9c8aa8018937ee55b..ccbaa7039d4815dc29dc964f46c091394f862dd3 100644 (file)
@@ -1,10 +1,10 @@
 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:       4
-Group:         Networking
+Release:       5
 License:       GPL
+Group:         Networking
 Source0:       http://ez-ipupdate.com/dist/%{name}-%{version}.tar.gz
 # Source0-md5: 000211add4c4845ffa4211841bff4fb0
 Source1:       %{name}.init
@@ -14,6 +14,7 @@ URL:          http://ez-ipupdate.com/
 BuildRequires: autoconf
 BuildRequires: automake
 BuildRequires: perl-base
+BuildRequires: rpmbuild(macros) >= 1.268
 Requires(post,preun):  /sbin/chkconfig
 Requires:      rc-scripts
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -37,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/
@@ -56,18 +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
@@ -91,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
 
This page took 0.061449 seconds and 4 git commands to generate.