[dnsperf] Pack sample query file with bz2 Signed-off-by: Adam Tkac <atkac at redhat.com>
Adam Tkac
atkac at fedoraproject.org
Thu Oct 11 15:33:17 UTC 2012
commit 8ed06a466278443fde05af452e14113352933e83
Author: Adam Tkac <atkac at redhat.com>
Date: Thu Oct 11 17:32:19 2012 +0200
Pack sample query file with bz2
Signed-off-by: Adam Tkac <atkac at redhat.com>
.gitignore | 1 +
dnsperf.spec | 8 +-
queryfile-example-10million-201202 |10000000 ------------------------------------
sources | 2 +-
4 files changed, 8 insertions(+), 10000003 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index c10768c..fd521dd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
dnsperf-src-1.0.1.0-1.tar.gz
/dnsperf-src-2.0.0.0-1.tar.gz
+/queryfile-example-10million-201202.bz2
diff --git a/dnsperf.spec b/dnsperf.spec
index 33a5db0..0cd9f1e 100644
--- a/dnsperf.spec
+++ b/dnsperf.spec
@@ -6,7 +6,7 @@ License: MIT
Url: http://www.nominum.com/resources/measurement-tools
Source: ftp://ftp.nominum.com/pub/nominum/dnsperf/%{version}/dnsperf-src-%{version}-1.tar.gz
Source2: bind9-hmacsha.h
-Source3: queryfile-example-10million-201202
+Source3: queryfile-example-10million-201202.bz2
Patch1: dnsperf-usage.patch
Group: Applications/Internet
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -32,10 +32,13 @@ sed -i "s/<isc\/hmacsha.h>/\"hmacsha.h\"/" dns.c
rm -rf %{buildroot}
%{__make} DESTDIR=%{buildroot} install
install contrib/queryparse/queryparse %{buildroot}/%{_bindir}
-install -D -m 644 %{SOURCE3} %{buildroot}%{_datadir}/%{name}/queryfile-example-current
install -D -m 644 contrib/queryparse/queryparse.1 %{buildroot}/%{_mandir}/man1/queryparse.1
gzip %{buildroot}/%{_mandir}/man1/queryparse.1
+mkdir -p %{buildroot}%{_datadir}/%{name}
+bunzip2 -c %{SOURCE3} > %{buildroot}%{_datadir}/%{name}/queryfile-example-current
+chmod 644 %{buildroot}%{_datadir}/%{name}/queryfile-example-current
+
%clean
rm -rf ${RPM_BUILD_ROOT}
@@ -50,6 +53,7 @@ rm -rf ${RPM_BUILD_ROOT}
%changelog
* Thu Oct 11 2012 Adam TKac <atkac redhat com> - 2.0.0.0-3
- rebuild against new bind-libs
+- pack sample query file with bz2
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.0.0.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
diff --git a/sources b/sources
index 4d116dd..3e66762 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-008fa4b10d24ab977482755361104554 dnsperf-src-1.0.1.0-1.tar.gz
6d0ff10264e9df25a18bf0678521e1fb dnsperf-src-2.0.0.0-1.tar.gz
+0ff3de3eaf30a4ed94031fb89997369a queryfile-example-10million-201202.bz2
More information about the scm-commits
mailing list