3724902
%if 0%{?fedora} >= 29
9cfa71d
%bcond_without python3
9cfa71d
%bcond_with    python2
9cfa71d
%else
9cfa71d
%bcond_with    python3
9cfa71d
%bcond_without python2
9cfa71d
%endif
9cfa71d
50a9b11
%global gittag v%{version}
a3f7804
978881f
Summary: Benchmarking authorative and recursing DNS servers
978881f
Name: dnsperf
46f71be
Version: 2.3.0
7468de1
Release: 2%{?dist}
bc75624
# New page was found, but on github is also project, that seems to be official.
bc75624
#
bc75624
# Github project has different license and so far is the only one with any
bc75624
# license mentioned. Unfortunately, project seems to be dead.
bc75624
# It changed license text to Apache License 2.0
bc75624
# Url: https://github.com/akamai/dnsperf
bc75624
# License: ASL 2.0
8b3de16
#
8b3de16
# Another fork was maintained by ISC in contrib,
8b3de16
# now split into separate repository. This repository comes exactly from
8b3de16
# original nominum tarball, great source of patches.
8b3de16
# Url: https://gitlab.isc.org/isc-projects/dnsperf
a3f7804
#
a3f7804
# It seems DNS-OARC taken over the project, it has github page
a3f7804
# https://github.com/DNS-OARC/dnsperf
a3f7804
a3f7804
License: ASL 2.0
a3f7804
Url: https://www.dns-oarc.net/tools/dnsperf
bc75624
a3f7804
Source: https://github.com/DNS-OARC/dnsperf/archive/%{gittag}/%{name}-%{version}.tar.gz
5c3c191
Source1: https://www.dns-oarc.net/files/dnsperf/data/queryfile-example-10million-201202.gz
a3f7804
a3f7804
Patch1: dnsperf-nolicense.patch
bc75624
bc75624
BuildRequires: bind-devel >= 9.10.0, gcc, make
a3f7804
BuildRequires: autoconf automake libtool
bc75624
# Following are (incomplete dependencies of bind-devel)
bc75624
# since 9.11.5 should provides all in requires, leave these for compatibility
bc75624
BuildRequires: libcap-devel, gzip, openssl-devel
bc75624
BuildRequires: krb5-devel, libxml2-devel, GeoIP-devel
bc75624
9cfa71d
BuildRequires: /usr/bin/pathfix.py
9cfa71d
9cfa71d
Requires: gnuplot
3724902
%if 0%{?fedora} >= 27
cb2c90e
Recommends: %{name}-data
3724902
%else
3724902
Requires:   %{name}-data
3724902
%endif
9cfa71d
%if %{with python3}
9cfa71d
BuildRequires: python3-devel
9cfa71d
Requires: python3-pcapy python3-dns
9cfa71d
%endif
9cfa71d
%if %{with python2}
9cfa71d
BuildRequires: python2-devel
9cfa71d
Requires: pcapy python2-dns
9cfa71d
%endif
978881f
978881f
%description
978881f
This is dnsperf, a collection of DNS server performance testing tools.
978881f
For more information, see the dnsperf(1) and resperf(1) man pages.
978881f
cb2c90e
# Fixme: query example is too big, move it to noarch data file
cb2c90e
%package data
cb2c90e
Summary: Benchmarking authorative and recursing DNS servers data
cb2c90e
BuildArch: noarch
cb2c90e
Requires: %{name} = %{version}-%{release}
cb2c90e
cb2c90e
%description data
cb2c90e
This is dnsperf, a collection of DNS server performance testing tools.
cb2c90e
cb2c90e
This package provides example query file to use by dnsperf and resperf tools.
cb2c90e
978881f
%prep
cb2c90e
%autosetup -p1
1e9aeb0
978881f
%build
a3f7804
autoreconf -fi
d6f35b9
%configure
d6f35b9
%make_build
978881f
9cfa71d
%if %{with python2}
9cfa71d
%{_bindir}/pathfix.py -i %{__python2} -p -n contrib/queryparse/queryparse
9cfa71d
%endif
9cfa71d
%if %{with python3}
9cfa71d
%{_bindir}/pathfix.py -i %{__python3} -p -n contrib/queryparse/queryparse
9cfa71d
%endif
9cfa71d
978881f
%install
3724902
%make_install dist_doc_DATA=''
978881f
install contrib/queryparse/queryparse %{buildroot}/%{_bindir}
978881f
install -D -m 644 contrib/queryparse/queryparse.1 %{buildroot}/%{_mandir}/man1/queryparse.1
978881f
gzip %{buildroot}/%{_mandir}/man1/queryparse.1
978881f
Adam Tkac 8ed06a4
mkdir -p %{buildroot}%{_datadir}/%{name}
5c3c191
gunzip -c %{SOURCE1} > %{buildroot}%{_datadir}/%{name}/queryfile-example-current
Adam Tkac 8ed06a4
chmod 644 %{buildroot}%{_datadir}/%{name}/queryfile-example-current
Adam Tkac 8ed06a4
978881f
%files 
a3f7804
%doc README.md CHANGES
a3f7804
%license LICENSE
978881f
%{_bindir}/*
978881f
%{_mandir}/*/*
cb2c90e
cb2c90e
%files data
e6a0a7f
%dir %{_datadir}/dnsperf
e6a0a7f
%{_datadir}/dnsperf/queryfile-example-current
978881f
978881f
%changelog
7468de1
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-2
7468de1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
7468de1
46f71be
* Wed Jul 17 2019 Petr Menšík <pemensik@redhat.com> - 2.3.0-1
46f71be
- Update to 2.3.0, support TCP mode
46f71be
6b86bca
* Tue Jun 11 2019 Petr Menšík <pemensik@redhat.com> - 2.2.1-5
6b86bca
- Rebuilt for BIND 9.11.7
6b86bca
c9def9b
* Fri May 03 2019 Petr Menšík <pemensik@redhat.com> - 2.2.1-4
c9def9b
- Rebuilt for bind 9.11.6
c9def9b
cb2c90e
* Tue Apr 09 2019 Petr Menšík <pemensik@redhat.com> - 2.2.1-3
cb2c90e
- Move large query file into separate package
cb2c90e
c26f3d6
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-2
c26f3d6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
c26f3d6
50a9b11
* Mon Jan 28 2019 Petr Menšík <pemensik@redhat.com> - 2.2.1-1
50a9b11
- Remove visible u after numbers
50a9b11
a3f7804
* Sun Jan 27 2019 Petr Menšík <pemensik@redhat.com> - 2.2.0-1
a3f7804
- Update to DNS-OARC 2.2.0 release
a3f7804
bc75624
* Tue Nov 06 2018 Petr Menšík <pemensik@redhat.com> - 2.1.0.0-18
bc75624
- Update to standard types, required by bind 9.11.5 update
bc75624
- Changed project URL
bc75624
551f9f2
* Fri Jul 13 2018 Petr Menšík <pemensik@redhat.com> - 2.1.0.0-17
551f9f2
- Update to bind 9.11.4
551f9f2
97420ba
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0.0-16
97420ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
97420ba
0b9e71e
* Thu Apr 26 2018 Tomas Hozza <thozza@redhat.com> - 2.1.0.0-15
0b9e71e
- Added gcc as an explicit BuildRequires
0b9e71e
e740394
* Thu Mar 01 2018 Petr Menšík <pemensik@redhat.com> - 2.1.0.0-14
e740394
- Define value to USEINLINE macro, rebuild for bind 9.11.3
1e9aeb0
- Cleanup spec file
e740394
4093f94
* Thu Mar 01 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.1.0.0-13
4093f94
- Update Python 2 dependency declarations to new packaging standards
4093f94
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
4093f94
87636bd
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0.0-12
87636bd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
87636bd
bd5787c
* Fri Jan 19 2018 Petr Menšík <pemensik@redhat.com> - 2.1.0.0-11
bd5787c
- Rebuild again against bind-9.11.2-P1
bd5787c
1be1bed
* Tue Jan 09 2018 Petr Menšík <pemensik@redhat.com> - 2.1.0.0-10
1be1bed
- Rebuild for bind 9.11.2
1be1bed
5e51e8c
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0.0-9
5e51e8c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
5e51e8c
bed219a
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0.0-8
bed219a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
bed219a
57367f3
* Mon Jul 03 2017 Paul Wouters <pwouters@redhat.com> - 2.1.0.0-7
57367f3
- Rebuild against 9.11.1-P2
57367f3
0e012f4
* Thu Jun 29 2017 Petr Menšík <pemensik@redhat.com> - 2.1.0.0-6
0e012f4
- Rebuild against bind-9.11.1-P1
0e012f4
22e9316
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0.0-5
22e9316
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
22e9316
1dcdf07
* Mon Nov 21 2016 Paul Wouters <pwouters@redhat.com> - 2.1.0.0-4
1dcdf07
- rebuilt for new version of bind
1dcdf07
3b345ea
* Sat Nov 19 2016 Peter Robinson <pbrobinson@fedoraproject.org> 2.1.0.0-3
3b345ea
- Rebuild (bind)
3b345ea
6c2cee1
* Thu May 26 2016 Tomas Hozza <thozza@redhat.com> - 2.1.0.0-2
6c2cee1
- Rebuild against bind-9.10.4-P1
6c2cee1
e1d140e
* Wed Apr 20 2016 Paul Wouters <pwouters@redhat.com> - 2.1.0.0-1
e1d140e
- Updated to 2.1.0.0 (rhbz#1305929)
e1d140e
- Remove incorporated patches
e1d140e
- Updated example query file with upstream
e1d140e
- Fixup bad changelog dates
e1d140e
- Use gunzip not bunzip2 as upstream query file is only gzipped
e1d140e
5eabc5a
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0.0-20
5eabc5a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
5eabc5a
735a73f
* Wed Dec 16 2015 Tomas Hozza <thozza@redhat.com> - 2.0.0.0-19
735a73f
- Rebuild against bind-9.10.3-P2
735a73f
d3240c9
* Fri Sep 04 2015 Tomas Hozza <thozza@redhat.com> - 2.0.0.0-18
d3240c9
- Rebuild against bind 9.10.3rc1
d3240c9
a43e5d7
* Wed Jun 24 2015 Tomas Hozza <thozza@redhat.com> - 2.0.0.0-17
a43e5d7
- rebuild against bind-9.10.2-P1
9d0212e
- add Build dependency on GeoIP-devel since bind is built with it
a43e5d7
61da1d4
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0.0-16
61da1d4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
61da1d4
1002ff0
* Fri Mar 13 2015 Tomas Hozza <thozza@redhat.com> - 2.0.0.0-15
1002ff0
- rebuild against bind-9.10.2
1002ff0
c0dec14
* Wed Feb 25 2015 Tomas Hozza <thozza@redhat.com> - 2.0.0.0-14
c0dec14
- Rebuild against bind-9.10.2rc2
c0dec14
3adbd8f
* Mon Feb 02 2015 Tomas Hozza <thozza@redhat.com> - 2.0.0.0-13
3adbd8f
- rebuild against bind-9.10.2rc1
3adbd8f
0184f35
* Wed Jan 14 2015 Tomas Hozza <thozza@redhat.com> - 2.0.0.0-12
0184f35
- rebuild against bind-9.10.1-P1
0184f35
4d1f463
* Fri Oct 03 2014 Tomas Hozza <thozza@redhat.com> - 2.0.0.0-11
4d1f463
- rebuild against bind-9.9.6
4d1f463
8ee44d8
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0.0-10
8ee44d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
8ee44d8
0ccc056
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0.0-9
0ccc056
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
0ccc056
c1ed661
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0.0-8
c1ed661
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
c1ed661
6ed3d88
* Mon Jul 15 2013 Tomas Hozza <thozza@redhat.com> - 2.0.0.0-7
6ed3d88
- Rebuild against bind 9.9.4b1
6ed3d88
097319b
* Tue May 14 2013 Paul Wouters <pwouters@redhat.com> - 2.0.0.0-6
097319b
- Rebuild against bind 9.9.3-0.6.rc2
097319b
- Fix url, nominum changed their website
097319b
Adam Tkac 3732f82
* Tue Apr 16 2013 Adam Tkac <atkac redhat com> - 2.0.0.0-5
Adam Tkac 3732f82
- rebuild against new bind
Adam Tkac 3732f82
8672a60
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0.0-4
8672a60
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
8672a60
Adam Tkac fee774c
* Thu Oct 11 2012 Adam TKac <atkac redhat com> - 2.0.0.0-3
Adam Tkac fee774c
- rebuild against new bind-libs
Adam Tkac 8ed06a4
- pack sample query file with bz2
Adam Tkac fee774c
4533a96
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0.0-2
4533a96
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
4533a96
e6a0a7f
* Wed Apr 18 2012 Paul Wouters <pwouters@redhat.com> - 2.0.0.0-1
e6a0a7f
- Upgraded to 2.0.0.0
e6a0a7f
- Fixup of URLs
e6a0a7f
- Add pointer to sample query file in usage info
e6a0a7f
- Added current query sample file as old example has been removed
e6a0a7f
- Pulled in missing bind-9.8.x/9.9.x version of hmacsha.h
e6a0a7f
- Removed doc/*pdf files, as their license might mean non-free
e6a0a7f
1880a6a
* Wed Feb  1 2012 Adam Williamson <awilliam@redhat.com> - 1.0.1.0-28
1880a6a
- rebuild against new bind
1880a6a
b8a15c0
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1.0-27
b8a15c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
b8a15c0
Adam Tkac fdbd61e
* Mon Nov 14 2011 Adam Tkac <atkac redhat com> - 1.0.1.0-26
Adam Tkac fdbd61e
- rebuild against new bind
Adam Tkac fdbd61e
Adam Tkac ae5f32b
* Fri Sep 09 2011 Adam Tkac <atkac redhat com> - 1.0.1.0-25
Adam Tkac ae5f32b
- rebuild against new bind
Adam Tkac ae5f32b
Paul Wouters 151b086
* Tue May 24 2011 Paul Wouters <paul@xelerance.com> - 1.0.1.0-24
Paul Wouters 151b086
- rebuilt for newer bind
Paul Wouters 151b086
e1d140e
* Mon Feb 21 2011 Adam Tkac <atkac redhat com> - 1.0.1.0-23
Adam Tkac da117a1
- rebuild against new bind
Adam Tkac da117a1
5da3b6a
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1.0-22
5da3b6a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
5da3b6a
Adam Tkac 402f377
* Thu Sep 30 2010 Adam Tkac <atkac@redhat.com> - 1.0.1.0-21
Adam Tkac 402f377
- rebuild against new bind
Adam Tkac 402f377
Adam Tkac f780e0e
* Fri Aug 27 2010 Adam Tkac <atkac redhat com> - 1.0.1.0-20
Adam Tkac f780e0e
- rebuild against new bind
Adam Tkac f780e0e
Adam Tkac 8cc5323
* Tue Aug 03 2010 Adam Tkac <atkac redhat com> - 1.0.1.0-19
Adam Tkac 8cc5323
- rebuild against new bind
Adam Tkac 8cc5323
Adam Tkac a22adf1
* Fri Jul 02 2010 Adam Tkac <atkac redhat com> - 1.0.1.0-18
Adam Tkac a22adf1
- rebuild to ensure devel branch doesn't have lower NVR than stable branch
Adam Tkac a22adf1
Adam Tkac 9846930
* Mon May 31 2010 Adam Tkac <atkac redhat com> - 1.0.1.0-17
Adam Tkac 9846930
- rebuild against new bind
Adam Tkac 9846930
Adam Tkac 97f253f
* Thu Jan 28 2010 Adam Tkac <atkac redhat com> - 1.0.1.0-16
Adam Tkac 97f253f
- rebuild against new bind
Adam Tkac 97f253f
Adam Tkac 850a7bc
* Tue Dec 15 2009 Adam Tkac <atkac redhat com> - 1.0.1.0-15
Adam Tkac 850a7bc
- rebuild against new bind
Adam Tkac 850a7bc
Adam Tkac bdad8a7
* Tue Dec 01 2009 Adam Tkac <atkac redhat com> - 1.0.1.0-14
Adam Tkac bdad8a7
- rebuild against new bind
Adam Tkac bdad8a7
Adam Tkac 54ae4ac
* Thu Nov 26 2009 Adam Tkac <atkac redhat com> - 1.0.1.0-13
Adam Tkac 54ae4ac
- rebuild against new bind
Adam Tkac 54ae4ac
e0940c8
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 1.0.1.0-12
e0940c8
- rebuilt with new openssl
e0940c8
ac8b742
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1.0-11
ac8b742
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
ac8b742
Adam Tkac 07f117c
* Fri Jun 19 2009 Adam Tkac <atkac redhat com> - 1.0.1.0-10
Adam Tkac 07f117c
- rebuild again
Adam Tkac 07f117c
Adam Tkac 3a0197c
* Wed Jun 17 2009 Adam Tkac <atkac redhat com> - 1.0.1.0-9
Adam Tkac 3a0197c
- rebuild against new bind-libs
Adam Tkac 3a0197c
Adam Tkac 48071d3
* Mon Mar 30 2009 Adam Tkac <atkac redhat com> - 1.0.1.0-8
Adam Tkac 48071d3
- rebuild against new bind-libs
Adam Tkac 48071d3
80ca2f6
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1.0-7
80ca2f6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
80ca2f6
0dfb8b2
* Thu Jan 15 2009 Tomas Mraz <tmraz@redhat.com> - 1.0.1.0-6
0dfb8b2
- rebuild with new openssl
c3d67de
- seems to require libxml2-devel to build now
0dfb8b2
Adam Tkac 465012c
* Mon Nov 10 2008 Adam Tkac <atkac redhat com> - 1.0.1.0-5
Adam Tkac 465012c
- rebuild against new bind-libs
Adam Tkac 465012c
e1d140e
* Fri Oct 31 2008 Paul Wouters <paul@xelerance.com> - 1.0.1.0-4
978881f
- Changed license from BSD to MIT
978881f
978881f
* Wed Oct 22 2008 Paul Wouters <paul@xelerance.com> - 1.0.1.0-3
978881f
- Fixed missing buildrequires
978881f
- Pass proper CFLAGS to gcc
978881f
- Fix Group
978881f
978881f
* Tue Oct 21 2008 Paul Wouters <paul@xelerance.com> - 1.0.1.0-2
978881f
- Fixed libpcap vs libcap confusion
978881f
978881f
* Mon Oct 20 2008 Paul Wouters <paul@xelerance.com> - 1.0.1.0-1
978881f
- Initial Fedora package