]> git.pld-linux.org Git - packages/pdns.git/blobdiff - pdns.spec
- release 3 to rebuild with PostgreSQL 8.2
[packages/pdns.git] / pdns.spec
index acae88da65d34fd3de219e8d0b83a7f6aa19579b..a6c4355620f6d50435e6382e5e976d93a6c47431 100644 (file)
--- a/pdns.spec
+++ b/pdns.spec
@@ -1,41 +1,46 @@
 Summary:       PowerDNS is a Versatile Database Driven Nameserver
 Summary(pl):   PowerDNS to wielofunkcyjny serwer nazw korzystaj±cy z relacyjnych baz danych
 Name:          pdns
-Version:       2.9.18
-Release:       0.1
+Version:       2.9.20
+Release:       3
 License:       GPL
 Group:         Networking/Daemons
 Source0:       http://downloads.powerdns.com/releases/%{name}-%{version}.tar.gz
-# Source0-md5: bcfb0573311e80dbeff0bb16f2764363
+# Source0-md5: 33b20ef1b767f93297101f2aa09e99ed
 Source1:       http://downloads.powerdns.com/documentation/%{name}.pdf
-# Source1-md5: f183b5bec39e40f8c55c19afc3a3f933
+# Source1-md5: 3ce3a16df5d91ceab75dea8307b35f2c
 Source2:       http://downloads.powerdns.com/documentation/%{name}.txt
 Source3:       %{name}.init
 Source4:       %{name}.conf
 Source5:       %{name}.sysconfig
 Patch0:                %{name}-configure.patch
+Patch1:                %{name}-int16.patch
+Patch2:                %{name}-openldap-2.3.patch
 URL:           http://www.powerdns.com/
 BuildRequires: bison
+BuildRequires: boost-devel
+BuildRequires: boost-ref-devel
 BuildRequires: flex
-BuildRequires: libstdc++-devel
 BuildRequires: libpq++-devel
+BuildRequires: libstdc++-devel
 BuildRequires: mysql-devel
-BuildRequires: openldap-devel
-BuildRequires: rpmbuild(macros) >= 1.202
+BuildRequires: openldap-devel >= 2.3.0
+BuildRequires: rpmbuild(macros) >= 1.268
 BuildRequires: zlib-devel
-PreReq:                rc-scripts
+Requires(post):        sed >= 4.0
+Requires(post,preun):  /sbin/chkconfig
+Requires(postun):      /usr/sbin/groupdel
+Requires(postun):      /usr/sbin/userdel
 Requires(pre): /bin/id
 Requires(pre): /usr/bin/getgid
 Requires(pre): /usr/sbin/groupadd
 Requires(pre): /usr/sbin/useradd
-Requires(post,preun):  /sbin/chkconfig
-Requires(postun):      /usr/sbin/groupdel
-Requires(postun):      /usr/sbin/userdel
-BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+Requires:      rc-scripts
 Provides:      group(djbdns)
 Provides:      nameserver
 Provides:      user(pdns)
 Obsoletes:     powerdns
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 PowerDNS is a versatile nameserver which supports a large number of
@@ -52,6 +57,7 @@ i prze
 Summary:       PowerDNS support for custom pipe backend
 Summary(pl):   Wsparcie PowerDNS dla w³asnego mechanizmu przechowywania stref
 Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
 
 %description backend-pipe
 This package allows creation of own backend using simple STDIN/STDOUT
@@ -60,13 +66,14 @@ documentation.
 
 %description backend-pipe -l pl
 Ten pakiet pozwala na utworzenie w³asnego mechanizmu przechowywania
-stref za pomoc¹ prostego interfejsu STDIN/STDOUT. Przyk³adowy skrypt w
+stref za pomoc± prostego interfejsu STDIN/STDOUT. Przyk³adowy skrypt w
 Perlu zosta³ do³±czony do dokumentacji pakietu.
 
 %package backend-gpgsql
 Summary:       PowerDNS support for PostgreSQL
 Summary(pl):   Wsparcie PowerDNS dla baz PostgresQL
 Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
 
 %description backend-gpgsql
 This package allows zone storage in PostgreSQL relational db tables.
@@ -79,6 +86,7 @@ relacyjnej bazy danych PostgreSQL.
 Summary:       PowerDNS support for MySQL
 Summary(pl):   Wsparcie PowerDNS dla baz MySQL
 Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
 
 %description backend-gmysql
 This package allows zone storage in MySQL relational db tables.
@@ -91,16 +99,20 @@ relacyjnej bazy danych MySQL.
 Summary:       PowerDNS support for LDAP
 Summary(pl):   Wsparcie PowerDNS dla baz LDAP
 Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
 
 %description backend-ldap
 This package allows zone storage in LDAP directory.
 
 %description backend-ldap -l pl
-Ten pakiet pozwala na przechowywanie danych o strefach w katalogu LDAP.
+Ten pakiet pozwala na przechowywanie danych o strefach w katalogu
+LDAP.
 
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
+%patch2 -p1
 cp %{SOURCE1} .
 cp %{SOURCE2} .
 
@@ -146,23 +158,14 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 # dirty hack so the config file is processed correctly, and server does not respawn
-TMP=`mktemp /tmp/pdns.install-tmp.XXXXXX`
-sed 's/^ *//' /etc/pdns/pdns.conf > $TMP
-cp /etc/pdns/pdns.conf /etc/pdns/pdns.conf.rpmsave
-mv $TMP /etc/pdns/pdns.conf
+sed -i -e 's/^ *//' /etc/pdns/pdns.conf
 
 /sbin/chkconfig --add pdns
-if [ -f /var/lock/subsys/pdns ]; then
-       /etc/rc.d/init.d/pdns restart >&2
-else
-       echo "Run \"/etc/rc.d/init.d/pdns start\" to start pdns." >&2
-fi
+%service pdns restart
 
 %preun
 if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/pdns ]; then
-               /etc/rc.d/init.d/pdns stop
-       fi
+       %service pdns stop
        /sbin/chkconfig --del pdns
 fi
 
@@ -174,11 +177,11 @@ fi
 
 %files
 %defattr(644,root,root,755)
-%doc ChangeLog HACKING INSTALL README TODO WARNING pdns.pdf pdns.txt
-%config(noreplace) %attr(0600,root,root) %{_sysconfdir}/%{name}/%{name}.conf
-%config(noreplace) %attr(0754,root,root) %{_initrddir}/%{name}
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/pdns
+%doc ChangeLog HACKING INSTALL README TODO pdns.pdf pdns.txt
+%attr(754,root,root) %{_initrddir}/%{name}
 %dir %{_sysconfdir}/%{name}
+%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/%{name}.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/pdns
 %attr(755,root,root) %{_sbindir}/*
 %attr(755,root,root) %{_bindir}/*
 %{_mandir}/man8/*
This page took 0.036887 seconds and 4 git commands to generate.