]> git.pld-linux.org Git - packages/pdns.git/blobdiff - pdns.spec
- updated to 2.9.22
[packages/pdns.git] / pdns.spec
index 6d0d2110f5ec24fb57e30336c901154dd82b5078..6b87ea999c90d25983ce8cdf809a54bd7ec11fbf 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
 Name:          pdns
-Version:       2.9.21
-Release:       3
+Version:       2.9.22
+Release:       1
 License:       GPL
 Group:         Networking/Daemons
 Source0:       http://downloads.powerdns.com/releases/%{name}-%{version}.tar.gz
-# Source0-md5: a0d650dd1489ed46b36dfcc1d73653af
+# Source0-md5: 8a6ff842733aca885577eb54e983a1ff
 Source1:       http://downloads.powerdns.com/documentation/%{name}.pdf
-# Source1-md5: 1d6eb4a46e3c32e298c1f5ee1b458134
+# Source1-md5: cb69cd9655e4cb319c66adb2c733314d
 Source2:       http://downloads.powerdns.com/documentation/%{name}.txt
 Source3:       %{name}.init
 Source4:       %{name}.conf
@@ -18,13 +18,15 @@ Patch1:             %{name}-int16.patch
 Patch2:                %{name}-openldap-2.3.patch
 URL:           http://www.powerdns.com/
 BuildRequires: bison
-BuildRequires: boost-bind-devel
+BuildRequires: boost-devel >= 1.35.0
 BuildRequires: flex
 BuildRequires: libpq++-devel
 BuildRequires: libstdc++-devel
 BuildRequires: mysql-devel
 BuildRequires: openldap-devel >= 2.4.6
 BuildRequires: rpmbuild(macros) >= 1.268
+BuildRequires: sed >= 4.0
+BuildRequires: sqlite3-devel
 BuildRequires: zlib-devel
 Requires(post):        sed >= 4.0
 Requires(post,preun):  /sbin/chkconfig
@@ -54,7 +56,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):     Obsługa własnego mechanizmu przechowywania stref dla PowerDNS-a
 Group:         Development/Libraries
 Requires:      %{name} = %{version}-%{release}
 
@@ -70,7 +72,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):     Obsługa baz PostgreSQL dla PowerDNS-a
 Group:         Development/Libraries
 Requires:      %{name} = %{version}-%{release}
 
@@ -83,7 +85,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):     Obsługa baz MySQL dla PowerDNS-a
 Group:         Development/Libraries
 Requires:      %{name} = %{version}-%{release}
 
@@ -94,9 +96,22 @@ This package allows zone storage in MySQL relational db tables.
 Ten pakiet pozwala na przechowywanie danych o strefach w tabelach
 relacyjnej bazy danych MySQL.
 
+%package backend-gsqlite3
+Summary:       PowerDNS support for SQLite 3
+Summary(pl.UTF-8):     Obsługa baz SQLite 3 dla PowerDNS-a
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+
+%description backend-gsqlite3
+This package allows zone storage in SQLite 3 relational db tables.
+
+%description backend-gsqlite3 -l pl.UTF-8
+Ten pakiet pozwala na przechowywanie danych o strefach w tabelach
+relacyjnej bazy danych SQLite 3.
+
 %package backend-ldap
 Summary:       PowerDNS support for LDAP
-Summary(pl.UTF-8):     Wsparcie PowerDNS dla baz LDAP
+Summary(pl.UTF-8):     Obsługa LDAP dla PowerDNS-a
 Group:         Development/Libraries
 Requires:      %{name} = %{version}-%{release}
 
@@ -114,23 +129,31 @@ LDAP.
 %patch2 -p1
 cp %{SOURCE1} .
 cp %{SOURCE2} .
+cp %{SOURCE4} .
+
+%if "%{_lib}" != "lib"
+%{__sed} -i -e 's/module-dir=\/usr\/lib\/pdns/module-dir=\/usr\/%{_lib}\/pdns/' pdns.conf
+%endif
 
 %build
 CPPFLAGS="-DHAVE_NAMESPACE_STD -DHAVE_CXX_STRING_HEADER -DDLLIMPORT=\"\""
 %configure \
        --libdir=%{_libdir}/%{name} \
        --sysconfdir=%{_sysconfdir}/%{name} \
-       --with-socketdir=/var/run \
-       --with-dynmodules="gmysql gpgsql pipe ldap" \
-       --with-modules="" \
+       --disable-static \
+       --enable-ldap \
        --enable-mysql \
        --enable-pgsql \
-       --with-pgsql-lib=%{_libdir} \
+       --enable-sqlite3 \
        --with-pgsql-includes=%{_includedir} \
-       --with-mysql-lib=%{_libdir} \
+       --with-pgsql-lib=%{_libdir} \
        --with-mysql-includes=%{_includedir} \
-       --enable-ldap \
-       --disable-static
+       --with-mysql-lib=%{_libdir} \
+       --with-sqlite3-includes=%{_includedir} \
+       --with-sqlite3-lib=%{_libdir} \
+       --with-dynmodules="gsqlite3 gmysql gpgsql pipe ldap" \
+       --with-modules="" \
+       --with-socketdir=/var/run
 
 %{__make}
 
@@ -194,6 +217,10 @@ fi
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/%{name}/*pgsql*.so*
 
+%files backend-gsqlite3
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/%{name}/*sqlite3*.so*
+
 %files backend-pipe
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/%{name}/*pipe*.so*
This page took 0.07336 seconds and 4 git commands to generate.