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
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
%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}
%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}
%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}
%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}
%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=\"\""
%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
%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