]> granicus.if.org Git - pdns/commitdiff
set filename in testbuild rpms
authorKees Monshouwer <mind04@monshouwer.org>
Sat, 8 Feb 2014 12:23:01 +0000 (13:23 +0100)
committermind04 <mind04@monshouwer.org>
Sat, 8 Feb 2014 13:21:59 +0000 (14:21 +0100)
build-scripts/redhat/pdns-recursor-test.spec
build-scripts/redhat/pdns-server-test.spec
build-scripts/set-version-auth
build-scripts/set-version-recursor

index dfb4c5fd55f2da7178cbaace8d9f47c2e2ad4dbf..7db9ee313b695c7baf572da4b8307f7e8b9899fb 100644 (file)
@@ -9,7 +9,7 @@ Release:                1
 Epoch:                 0
 Group:                 System Environment/Daemons
 License:               GPL
-Source:                        http://downloads.powerdns.com/releases/#FILENAME#
+Source:                        http://downloads.powerdns.com/releases/%{name}-#VERSION#.tar.bz2
 
 BuildRequires:         boost-devel >= 1.39.0
 BuildRequires:         lua-devel >= 5.2
@@ -20,7 +20,7 @@ BuildRoot:            %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 PowerDNS recursor
 
 %prep
-%setup -q -n #SOURCE_PATH#
+%setup -q -n %{name}-#VERSION#
 
 %build
 %configure
index 1fc1eb904ef353488c0273c93f989ddb23d01313..61bb81e017f44d84e7516626d96545f1e5d1e7ae 100644 (file)
@@ -9,8 +9,7 @@ Release:        1
 Epoch:          0
 License:        GPL
 Group:          System/Servers
-URL:            http://www.powerdns.com/
-Source0:        http://downloads.powerdns.com/releases/#FILENAME#
+Source:         http://downloads.powerdns.com/releases/pdns-#VERSION#.tar.gz
 
 BuildRequires:  autoconf automake
 BuildRequires:  gcc gcc-c++
@@ -30,7 +29,7 @@ BuildRoot:      %{_tmppath}/%{name}-%{version}-root
 PowerDNS testbuild
 
 %prep
-%setup -q -n #SOURCE_PATH#
+%setup -q -n pdns-#VERSION#
 
 %build
 %configure \
index e21e2ae04adcdf533d961e0bfcf1487b3481ba67..25f9cd03e07ef6ed0d303059671c441707890906 100755 (executable)
@@ -10,3 +10,5 @@ sed -r "s/Version: (.*)/Version: $RPM_VERSION/" -i pdns.spec
 sed -r "s/AC_INIT\(\[pdns\],(.*)/AC_INIT([pdns], [$VERSION])/" -i configure.ac
 sed -r "s/^(.*)AC_SUBST\(\[DIST_HOST\],(.*)/AC_SUBST([DIST_HOST], [$DIST_HOST])/" -i configure.ac
 sed -r "1 s/^pdns \\(([^)]*)-([0-9.])\\)/pdns \\($DEB_VERSION-\\2\\)/" -i debian-pdns/changelog
+
+sed -r "s/#VERSION#/$VERSION/" -i build-scripts/redhat/pdns-server-test.spec
index 36cb744d465a366e212643d291058938678dbb55..621e0489668be1118715a92bf2d4f0914f7d2f0b 100755 (executable)
@@ -9,3 +9,5 @@ DIST_HOST="$(id -u -n)@$(hostname -f)"
 sed -r "s/^VERSION=(.*)/VERSION=$VERSION/" -i pdns/dist-recursor
 sed -r "s/^DIST_HOST=(.*)/DIST_HOST=$DIST_HOST/" -i pdns/dist-recursor
 sed -r "s/Version: (.*)/Version: $RPM_VERSION/" -i pdns/pdns-recursor.spec
+
+sed -r "s/#VERSION#/$VERSION/" -i build-scripts/redhat/pdns-recursor-test.spec