]> git.pld-linux.org Git - packages/pdns.git/blobdiff - pdns.spec
- adds missing header files
[packages/pdns.git] / pdns.spec
index 76b52a353a640810952ce0b2d67d60d0e84749f8..9cea7f213151bd8f772f2774c05add80bf1b7dcb 100644 (file)
--- a/pdns.spec
+++ b/pdns.spec
@@ -1,14 +1,14 @@
 Summary:       PowerDNS is a Versatile Database Driven Nameserver
-Summary(pl.UTF-8):   PowerDNS to wielofunkcyjny serwer nazw korzystający z relacyjnych baz danych
+Summary(pl.UTF-8):     PowerDNS to wielofunkcyjny serwer nazw korzystający z relacyjnych baz danych
 Name:          pdns
-Version:       2.9.20
-Release:       3
+Version:       2.9.21.1
+Release:       1
 License:       GPL
 Group:         Networking/Daemons
 Source0:       http://downloads.powerdns.com/releases/%{name}-%{version}.tar.gz
-# Source0-md5: 33b20ef1b767f93297101f2aa09e99ed
+# Source0-md5: 27fd39029a80cb9c0bc3037420515d1a
 Source1:       http://downloads.powerdns.com/documentation/%{name}.pdf
-# Source1-md5: 3ce3a16df5d91ceab75dea8307b35f2c
+# Source1-md5: 920b1660258fa2f6d6f949f0c60857b4
 Source2:       http://downloads.powerdns.com/documentation/%{name}.txt
 Source3:       %{name}.init
 Source4:       %{name}.conf
@@ -18,13 +18,12 @@ 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: boost-devel >= 1.35.0
 BuildRequires: flex
 BuildRequires: libpq++-devel
 BuildRequires: libstdc++-devel
 BuildRequires: mysql-devel
-BuildRequires: openldap-devel >= 2.3.0
+BuildRequires: openldap-devel >= 2.4.6
 BuildRequires: rpmbuild(macros) >= 1.268
 BuildRequires: zlib-devel
 Requires(post):        sed >= 4.0
@@ -55,7 +54,7 @@ i przełączania w wypadku awarii.
 
 %package backend-pipe
 Summary:       PowerDNS support for custom pipe backend
-Summary(pl.UTF-8):   Wsparcie PowerDNS dla własnego mechanizmu przechowywania stref
+Summary(pl.UTF-8):     Wsparcie PowerDNS dla własnego mechanizmu przechowywania stref
 Group:         Development/Libraries
 Requires:      %{name} = %{version}-%{release}
 
@@ -71,7 +70,7 @@ Perlu został dołączony do dokumentacji pakietu.
 
 %package backend-gpgsql
 Summary:       PowerDNS support for PostgreSQL
-Summary(pl.UTF-8):   Wsparcie PowerDNS dla baz PostgresQL
+Summary(pl.UTF-8):     Wsparcie PowerDNS dla baz PostgresQL
 Group:         Development/Libraries
 Requires:      %{name} = %{version}-%{release}
 
@@ -84,7 +83,7 @@ relacyjnej bazy danych PostgreSQL.
 
 %package backend-gmysql
 Summary:       PowerDNS support for MySQL
-Summary(pl.UTF-8):   Wsparcie PowerDNS dla baz MySQL
+Summary(pl.UTF-8):     Wsparcie PowerDNS dla baz MySQL
 Group:         Development/Libraries
 Requires:      %{name} = %{version}-%{release}
 
@@ -97,7 +96,7 @@ relacyjnej bazy danych MySQL.
 
 %package backend-ldap
 Summary:       PowerDNS support for LDAP
-Summary(pl.UTF-8):   Wsparcie PowerDNS dla baz LDAP
+Summary(pl.UTF-8):     Wsparcie PowerDNS dla baz LDAP
 Group:         Development/Libraries
 Requires:      %{name} = %{version}-%{release}
 
@@ -115,6 +114,11 @@ LDAP.
 %patch2 -p1
 cp %{SOURCE1} .
 cp %{SOURCE2} .
+cp %{SOURCE4} .
+
+%if "%{_lib}" == "lib64"
+%{__sed} -i -e 's/module-dir=\/usr\/lib\/pdns/module-dir=\/usr\/lib64\/pdns/' pdns.conf
+%endif
 
 %build
 CPPFLAGS="-DHAVE_NAMESPACE_STD -DHAVE_CXX_STRING_HEADER -DDLLIMPORT=\"\""
@@ -137,12 +141,12 @@ CPPFLAGS="-DHAVE_NAMESPACE_STD -DHAVE_CXX_STRING_HEADER -DDLLIMPORT=\"\""
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_initrddir},%{_sysconfdir}/%{name},/etc/sysconfig}
+install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_sysconfdir}/%{name},/etc/sysconfig}
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
-install %{SOURCE3} $RPM_BUILD_ROOT%{_initrddir}/%{name}
+install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
 install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/%{name}.conf
 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/pdns
 
@@ -178,12 +182,13 @@ fi
 %files
 %defattr(644,root,root,755)
 %doc ChangeLog HACKING INSTALL README TODO pdns.pdf pdns.txt
-%attr(754,root,root) %{_initrddir}/%{name}
+%attr(754,root,root) /etc/rc.d/init.d/%{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}/*
+%dir %{_libdir}/%{name}
 %{_mandir}/man8/*
 
 %files backend-gmysql
This page took 0.054927 seconds and 4 git commands to generate.