Search
j0ke.net Open Build Service
>
Projects
>
server:dns
>
pdns
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 14
[-]
[+]
Changed
pdns.spec
@@ -37,7 +37,13 @@ %endif # BuildRequires: -post-build-checks -BuildRequires: boost-devel docbook-toys docbook-utils docbook-xsl-stylesheets gcc-c++ gdbm-devel mysql-devel openldap2-devel postgresql-devel +%if 0%{?centos_version} == 5 || 0%{?rhel_version} >= 500 && 0%{?rhel_version} < 600 || 0%{?sles_version} == 10 +%define use_bundled_boost 1 +%else +%define use_bundled_boost 0 +BuildRequires: boost-devel +%endif +BuildRequires: docbook-toys docbook-utils docbook-xsl-stylesheets gcc-c++ gdbm-devel mysql-devel openldap2-devel postgresql-devel %if 0%{?suse_version} BuildRequires: pwdutils %endif @@ -79,6 +85,7 @@ Source: %{name}-%{version}.tar.bz2 Source1: rcpdns Source2: README.opendbx +Source3: boost_1_39_0.tar.bz2 Patch0: pdns-2.9.22_new_boost_exceptions.patch Patch1: pdns-2.9.22_wrong_pgsql.patch Patch2: pdns-2.9.22_warnings.patch @@ -277,7 +284,7 @@ %endif %prep -%setup +%setup -a 3 %patch0 %patch1 %patch2 @@ -297,7 +304,11 @@ touch NEWS AUTHORS COPYING autoreconf -fiv export CFLAGS="%{optflags} -DLDAP_DEPRECATED -g " +%if 0%{?centos_version} == 5 || 0%{?rhel_version} >= 500 && 0%{?rhel_version} < 600 || 0%{?sles_version} == 10 +export CXXFLAGS="$CFLAGS -I`pwd`/boost_1_39_0/" +%else export CXXFLAGS="$CFLAGS" +%endif # "mysql" backend is legacy crap. dont build it! %configure \ --disable-static \
Added
boost_1_39_0.tar.bz2
^