]> git.pld-linux.org Git - packages/ddt.git/blobdiff - ddt.spec
- pl cosmetics
[packages/ddt.git] / ddt.spec
index e6082b77f3caeddfedda63da66472b065c66acac..d9dcd1166da877358382f08dea631576bf87cd52 100644 (file)
--- a/ddt.spec
+++ b/ddt.spec
@@ -1,66 +1,70 @@
-Summary:       Dynamic DNS Tools Server
-Summary(pl):   Serwer dynamicznego DNSu
+Summary:       Dynamic DNS Tools server
+Summary(pl):   Serwer dynamicznego DNS-u
 Name:          ddt
 Version:       0.5.9
 Release:       2
 License:       GPL
 Group:         Networking/Daemons
-Source0:       http://download.sourceforge.net/ddt/%{name}-%{version}.tar.gz
+Source0:       http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
 # Source0-md5: 30bb784bde3eef1e1a6eb61ab77f4b90
+Source1:       %{name}-client.init
+Source2:       %{name}-server.init
 Patch0:                %{name}-am_ac.patch
 Patch1:                %{name}-cgi-to-cgic.patch
 Patch2:                %{name}-bind-includes-hack.patch
 Patch3:                %{name}-nobody.patch
 Patch4:                %{name}-postgresql.patch
 URL:           http://www.ddts.org/
-Source1:       %{name}-client.init
-Source2:       %{name}-server.init
 BuildRequires: autoconf
 BuildRequires: automake
 BuildRequires: bind-devel >= 9.2.1-10
 BuildRequires: cgilibc-devel
-BuildRequires: openssl-devel >= 0.9.7
-BuildRequires: postgresql-c++-devel
 BuildRequires: libgcrypt-devel
-BuildRequires: regexx-devel
 BuildRequires: macrosystem-devel
+BuildRequires: openssl-devel >= 0.9.7
 BuildRequires: opt
+BuildRequires: postgresql-c++-devel
+BuildRequires: regexx-devel
 BuildRequires: sgml-tools
-Prereq:                chkconfig
+PreReq:                rc-scripts
+Requires(post,preun):  /sbin/chkconfig
 Buildroot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-DDT stands for Dynamic Dns Tools. The goal of the project is to
+DDT stands for Dynamic DNS Tools. The goal of the project is to
 provide an open and free (in the GPL-sense) set of tools that will
 permit the deployment of secure and reliable dynamic DNS services.
 
 %description -l pl
-DDT oznacza Dynamiczne Narzêdzia DNS. Celem projektu jest dostarczenie
-otwartego i wolnego (w sensie GPL) zestawu narzêdzi pozwalaj±cych na
-stworzenie bezpiecznego i niezawodnego systemu dynamicznego DNS.
+DDT oznacza Dynamiczne Narzêdzia DNS-u. Celem projektu jest
+dostarczenie otwartego i wolnego (w sensie GPL) zestawu narzêdzi
+pozwalaj±cych na stworzenie bezpiecznego i niezawodnego systemu
+dynamicznego DNS-u.
 
 %package clients
-Summary:       Dynamic DNS Tools Client
-Summary(pl):   Klient Dynamicznego DNSu
+Summary:       Dynamic DNS Tools client
+Summary(pl):   Klient dynamicznego DNS-u
 Group:         Applications/Networking
+PreReq:                rc-scripts
+Requires(post,preun):  /sbin/chkconfig
 
 %description clients
-Dynamic DNS Tools Client.
+Dynamic DNS Tools client.
 
 %description clients -l pl
-Klient Dynamicznego DNSu.
+Klient dynamicznego DNS-u.
 
 %package cgi
-Summary:        CGI scripts for Dynamic DNS Tools Server
-Summary(pl):    Skrypty CGI do Serwera Dynamicznego DNSu
-Group:          Applications/Networking
+Summary:       CGI scripts for Dynamic DNS Tools server
+Summary(pl):   Skrypty CGI do serwera dynamicznego DNS-u
+Group:         Applications/Networking
 Requires:      webserver
 
 %description cgi
-CGI scripts for Dynamic DNS Tools Server.
+CGI scripts for Dynamic DNS Tools server.
 
 %description cgi -l pl
-Skrypty CGI do Serwera Dynamicznego DNSu.
+Skrypty CGI do serwera dynamicznego DNS-u.
 
 %prep
 %setup -q
@@ -89,22 +93,21 @@ echo "all install:" > docs/Makefile
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8}
-install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/rc.d/init.d}
-install -d $RPM_BUILD_ROOT/etc/logrotate.d
-install -d $RPM_BUILD_ROOT/var/{lib/ddt-client,run/ddt}
-install -d $RPM_BUILD_ROOT/home/services/httpd/{cgi-bin,html/%{name}}
+install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8} \
+       $RPM_BUILD_ROOT{%{_sysconfdir},/etc/rc.d/init.d} \
+       $RPM_BUILD_ROOT{/etc/logrotate.d,/var/{lib/ddt-client,run/ddt}} \
+       $RPM_BUILD_ROOT/home/services/httpd/{cgi-bin,html/%{name}}
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
-       
+
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-client
 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-server
 install debian/ddt-client.logrotate $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-client
 install debian/ddt-server.logrotate $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-server
 
 install admin/templates/* $RPM_BUILD_ROOT/home/services/httpd/html/%{name}
-install admin/*.{conf,cgi} $RPM_BUILD_ROOT/home/services/httpd/cgi-bin/
+install admin/*.{conf,cgi} $RPM_BUILD_ROOT/home/services/httpd/cgi-bin
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -128,17 +131,17 @@ fi
 %post clients
 /sbin/chkconfig --add %{name}-client
 if [ -f /var/lock/subsys/%{name}-client ]; then
-        /etc/rc.d/init.d/%{name}-client restart >&2
+       /etc/rc.d/init.d/%{name}-client restart >&2
 else
-        echo "Run \"/etc/rc.d/init.d/%{name}-client start\" to start ddtcd daemon."
+       echo "Run \"/etc/rc.d/init.d/%{name}-client start\" to start ddtcd daemon."
 fi
 
 %preun clients
 if [ "$1" = "0" ]; then
-        if [ -f /var/lock/subsys/%{name}-client ]; then
-                /etc/rc.d/init.d/%{name}-client stop >&2
-        fi
-        /sbin/chkconfig --del %{name}-client
+       if [ -f /var/lock/subsys/%{name}-client ]; then
+               /etc/rc.d/init.d/%{name}-client stop >&2
+       fi
+       /sbin/chkconfig --del %{name}-client
 fi
 
 %files
This page took 0.044981 seconds and 4 git commands to generate.