-Subproject commit c218fa2c8b028d46e635fffb6d474e4ddcf375c6
+Subproject commit 781eaa25e0308557226e127e3385e2118a4db2f7
Name: dnsdist
-Version: %{getenv:BUILDER_VERSION}
-Release: %{getenv:BUILDER_RELEASE}
+Version: %{getenv:BUILDER_RPM_VERSION}
+Release: %{getenv:BUILDER_RPM_RELEASE}%{dist}
Summary: Powerful and scriptable DNS loadbalancer
License: GPLv2
Vendor: PowerDNS.COM BV
Group: System/DNS
-Source: dnsdist-%{version}.tar.bz2
+Source: %{name}-%{getenv:BUILDER_VERSION}.tar.bz2
BuildRequires: readline-devel
BuildRequires: libedit-devel
BuildRequires: openssl-devel
dnsdist is a high-performance DNS loadbalancer that is scriptable in Lua.
%prep
-%setup
+%if 0%{?rhel} == 6
+%setup -n %{name}-%{getenv:BUILDER_VERSION}
+%else
+%autosetup -p1 -n %{name}-%{getenv:BUILDER_VERSION}
+%endif
# run as dnsdist user
sed -i '/^ExecStart/ s/dnsdist/dnsdist -u dnsdist -g dnsdist/' dnsdist.service.in
Name: pdns-recursor
-Version: %{getenv:BUILDER_VERSION}
-Release: %{getenv:BUILDER_RELEASE}%{?dist}
+Version: %{getenv:BUILDER_RPM_VERSION}
+Release: %{getenv:BUILDER_RPM_RELEASE}%{?dist}
Summary: Modern, advanced and high performance recursing/non authoritative name server
Group: System Environment/Daemons
License: GPLv2
URL: https://powerdns.com
-Source0: %{name}-%{version}.tar.bz2
+Source0: %{name}-%{getenv:BUILDER_VERSION}.tar.bz2
%if 0%{?rhel} == 6
Source1: pdns-recursor.init
%endif
%prep
%if 0%{?rhel} == 6
-%setup -q -n %{name}-%{version}
+%setup -n %{name}-%{getenv:BUILDER_VERSION}
%else
-%autosetup -p1
+%autosetup -p1 -n %{name}-%{getenv:BUILDER_VERSION}
%endif
%build
%global backends %{nil}
Name: pdns
-Version: %{getenv:BUILDER_VERSION}
-Release: %{getenv:BUILDER_RELEASE}%{dist}
+Version: %{getenv:BUILDER_RPM_VERSION}
+Release: %{getenv:BUILDER_RPM_RELEASE}%{dist}
Summary: A modern, advanced and high performance authoritative-only nameserver
Group: System Environment/Daemons
License: GPLv2
URL: https://powerdns.com
-Source0: %{name}-%{version}.tar.bz2
+Source0: %{name}-%{getenv:BUILDER_VERSION}.tar.bz2
%if 0%{?rhel} < 7
Source1: pdns.init
%endif
%endif
%prep
-%setup -q -n %{name}-%{version}
+%if 0%{?rhel} == 6
+%setup -n %{name}-%{getenv:BUILDER_VERSION}
+%else
+%autosetup -p1 -n %{name}-%{getenv:BUILDER_VERSION}
+%endif
%build
export CPPFLAGS="-DLDAP_DEPRECATED"