]> granicus.if.org Git - pdns/commitdiff
testbuild spec files for rawhide
authorKees Monshouwer <mind04@monshouwer.org>
Tue, 3 Dec 2013 10:13:43 +0000 (11:13 +0100)
committermind04 <mind04@monshouwer.org>
Tue, 3 Dec 2013 10:13:43 +0000 (11:13 +0100)
build-scripts/pdns-recursor.test [new file with mode: 0644]
build-scripts/pdns-server.test [new file with mode: 0644]

diff --git a/build-scripts/pdns-recursor.test b/build-scripts/pdns-recursor.test
new file mode 100644 (file)
index 0000000..dfb4c5f
--- /dev/null
@@ -0,0 +1,33 @@
+#
+# PowerDNS recursor buildtest spec file
+# Don't use this spec for regular builds
+#
+Summary:               PowerDNS
+Name:                  pdns-recursor
+Version:               0.0
+Release:               1
+Epoch:                 0
+Group:                 System Environment/Daemons
+License:               GPL
+Source:                        http://downloads.powerdns.com/releases/#FILENAME#
+
+BuildRequires:         boost-devel >= 1.39.0
+BuildRequires:         lua-devel >= 5.2
+
+BuildRoot:             %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+%description
+PowerDNS recursor
+
+%prep
+%setup -q -n #SOURCE_PATH#
+
+%build
+%configure
+
+LUA=1 LUA_LIBS_CONFIG=-llua-5.2 %{__make}
+
+%install
+[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
+%{__make} DESTDIR=$RPM_BUILD_ROOT install
+rm -rf $RPM_BUILD_ROOT/*
diff --git a/build-scripts/pdns-server.test b/build-scripts/pdns-server.test
new file mode 100644 (file)
index 0000000..1fc1eb9
--- /dev/null
@@ -0,0 +1,51 @@
+#
+# PowerDNS server buildtest spec file
+# Don't use this spec for regular builds
+#
+Summary:        PowerDNS
+Name:           pdns-server
+Version:        0.0
+Release:        1
+Epoch:          0
+License:        GPL
+Group:          System/Servers
+URL:            http://www.powerdns.com/
+Source0:        http://downloads.powerdns.com/releases/#FILENAME#
+
+BuildRequires:  autoconf automake
+BuildRequires:  gcc gcc-c++
+BuildRequires:  zlib-devel
+BuildRequires:  lua-devel
+BuildRequires:  boost-devel >= 1.34.0
+BuildRequires:  sqlite-devel >= 3.0.0
+BuildRequires:  libcurl-devel >= 7.17.1
+BuildRequires:  mysql-devel
+BuildRequires:  postgresql-devel
+BuildRequires:  openldap-devel
+BuildRequires:  tinycdb-devel
+
+BuildRoot:      %{_tmppath}/%{name}-%{version}-root
+
+%description
+PowerDNS testbuild
+
+%prep
+%setup -q -n #SOURCE_PATH#
+
+%build
+%configure \
+    --libdir=%{_libdir} \
+    --with-sqlite3 \
+    --with-socketdir=/var/run/pdns-server \
+    --with-modules="bind gmysql gpgsql gsqlite3 mydns tinydns remote random pipe geo ldap" \
+    --with-dynmodules="" \
+    --enable-unit-tests \
+    --enable-tools \
+    --enable-remotebackend-http
+
+%{__make}
+
+%install
+[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
+%{__make} DESTDIR=$RPM_BUILD_ROOT install
+rm -rf $RPM_BUILD_ROOT/*