372490
%if 0%{?fedora} >= 29
9cfa71
%bcond_without python3
9cfa71
%bcond_with    python2
9cfa71
%else
9cfa71
%bcond_with    python3
9cfa71
%bcond_without python2
9cfa71
%endif
9cfa71
50a9b1
%global gittag v%{version}
a3f780
978881
Summary: Benchmarking authorative and recursing DNS servers
978881
Name: dnsperf
28d0d4
Version: 2.3.2
1b8483
Release: 1%{?dist}
bc7562
# New page was found, but on github is also project, that seems to be official.
bc7562
#
bc7562
# Github project has different license and so far is the only one with any
bc7562
# license mentioned. Unfortunately, project seems to be dead.
bc7562
# It changed license text to Apache License 2.0
bc7562
# Url: https://github.com/akamai/dnsperf
bc7562
# License: ASL 2.0
8b3de1
#
8b3de1
# Another fork was maintained by ISC in contrib,
8b3de1
# now split into separate repository. This repository comes exactly from
8b3de1
# original nominum tarball, great source of patches.
8b3de1
# Url: https://gitlab.isc.org/isc-projects/dnsperf
a3f780
#
a3f780
# It seems DNS-OARC taken over the project, it has github page
a3f780
# https://github.com/DNS-OARC/dnsperf
a3f780
a3f780
License: ASL 2.0
a3f780
Url: https://www.dns-oarc.net/tools/dnsperf
bc7562
28d0d4
# Deactivate GitHub sources, make web server official. Should be the same, but GitHub does not match checksums.
28d0d4
#Source: https://github.com/DNS-OARC/dnsperf/archive/%{gittag}/%{name}-%{version}.tar.gz
28d0d4
Source0: https://www.dns-oarc.net/files/dnsperf/%{name}-%{version}.tar.gz
5c3c19
Source1: https://www.dns-oarc.net/files/dnsperf/data/queryfile-example-10million-201202.gz
a3f780
a3f780
Patch1: dnsperf-nolicense.patch
bc7562
bc7562
BuildRequires: bind-devel >= 9.10.0, gcc, make
a3f780
BuildRequires: autoconf automake libtool
bc7562
# Following are (incomplete dependencies of bind-devel)
bc7562
# since 9.11.5 should provides all in requires, leave these for compatibility
bc7562
BuildRequires: libcap-devel, gzip, openssl-devel
bc7562
BuildRequires: krb5-devel, libxml2-devel, GeoIP-devel
bc7562
9cfa71
BuildRequires: /usr/bin/pathfix.py
9cfa71
9cfa71
Requires: gnuplot
372490
%if 0%{?fedora} >= 27
cb2c90
Recommends: %{name}-data
372490
%else
372490
Requires:   %{name}-data
372490
%endif
9cfa71
%if %{with python3}
9cfa71
BuildRequires: python3-devel
9cfa71
Requires: python3-pcapy python3-dns
9cfa71
%endif
9cfa71
%if %{with python2}
9cfa71
BuildRequires: python2-devel
9cfa71
Requires: pcapy python2-dns
9cfa71
%endif
978881
978881
%description
978881
This is dnsperf, a collection of DNS server performance testing tools.
978881
For more information, see the dnsperf(1) and resperf(1) man pages.
978881
cb2c90
# Fixme: query example is too big, move it to noarch data file
cb2c90
%package data
cb2c90
Summary: Benchmarking authorative and recursing DNS servers data
cb2c90
BuildArch: noarch
cb2c90
Requires: %{name} = %{version}-%{release}
cb2c90
cb2c90
%description data
cb2c90
This is dnsperf, a collection of DNS server performance testing tools.
cb2c90
cb2c90
This package provides example query file to use by dnsperf and resperf tools.
cb2c90
978881
%prep
cb2c90
%autosetup -p1
1e9aeb
978881
%build
a3f780
autoreconf -fi
d6f35b
%configure
d6f35b
%make_build
978881
9cfa71
%if %{with python2}
9cfa71
%{_bindir}/pathfix.py -i %{__python2} -p -n contrib/queryparse/queryparse
9cfa71
%endif
9cfa71
%if %{with python3}
9cfa71
%{_bindir}/pathfix.py -i %{__python3} -p -n contrib/queryparse/queryparse
9cfa71
%endif
9cfa71
978881
%install
372490
%make_install dist_doc_DATA=''
978881
install contrib/queryparse/queryparse %{buildroot}/%{_bindir}
978881
install -D -m 644 contrib/queryparse/queryparse.1 %{buildroot}/%{_mandir}/man1/queryparse.1
978881
gzip %{buildroot}/%{_mandir}/man1/queryparse.1
978881
Adam Tkac 8ed06a
mkdir -p %{buildroot}%{_datadir}/%{name}
5c3c19
gunzip -c %{SOURCE1} > %{buildroot}%{_datadir}/%{name}/queryfile-example-current
Adam Tkac 8ed06a
chmod 644 %{buildroot}%{_datadir}/%{name}/queryfile-example-current
Adam Tkac 8ed06a
978881
%files 
a3f780
%doc README.md CHANGES
a3f780
%license LICENSE
978881
%{_bindir}/*
978881
%{_mandir}/*/*
cb2c90
cb2c90
%files data
e6a0a7
%dir %{_datadir}/dnsperf
e6a0a7
%{_datadir}/dnsperf/queryfile-example-current
978881
978881
%changelog
28d0d4
* Tue Aug 27 2019 Petr Menšík <pemensik@redhat.com> - 2.3.2-1
28d0d4
- Update to 2.3.2
28d0d4
1b8483
* Mon Jul 29 2019 Petr Menšík <pemensik@redhat.com> - 2.3.1-1
1b8483
- Update to 2.3.1
1b8483
7468de
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-2
7468de
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
7468de
46f71b
* Wed Jul 17 2019 Petr Menšík <pemensik@redhat.com> - 2.3.0-1
46f71b
- Update to 2.3.0, support TCP mode
46f71b
6b86bc
* Tue Jun 11 2019 Petr Menšík <pemensik@redhat.com> - 2.2.1-5
6b86bc
- Rebuilt for BIND 9.11.7
6b86bc
c9def9
* Fri May 03 2019 Petr Menšík <pemensik@redhat.com> - 2.2.1-4
c9def9
- Rebuilt for bind 9.11.6
c9def9
cb2c90
* Tue Apr 09 2019 Petr Menšík <pemensik@redhat.com> - 2.2.1-3
cb2c90
- Move large query file into separate package
cb2c90
c26f3d
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-2
c26f3d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
c26f3d
50a9b1
* Mon Jan 28 2019 Petr Menšík <pemensik@redhat.com> - 2.2.1-1
50a9b1
- Remove visible u after numbers
50a9b1
a3f780
* Sun Jan 27 2019 Petr Menšík <pemensik@redhat.com> - 2.2.0-1
a3f780
- Update to DNS-OARC 2.2.0 release
a3f780
bc7562
* Tue Nov 06 2018 Petr Menšík <pemensik@redhat.com> - 2.1.0.0-18
bc7562
- Update to standard types, required by bind 9.11.5 update
bc7562
- Changed project URL
bc7562
551f9f
* Fri Jul 13 2018 Petr Menšík <pemensik@redhat.com> - 2.1.0.0-17
551f9f
- Update to bind 9.11.4
551f9f
97420b
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0.0-16
97420b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
97420b
0b9e71
* Thu Apr 26 2018 Tomas Hozza <thozza@redhat.com> - 2.1.0.0-15
0b9e71
- Added gcc as an explicit BuildRequires
0b9e71
e74039
* Thu Mar 01 2018 Petr Menšík <pemensik@redhat.com> - 2.1.0.0-14
e74039
- Define value to USEINLINE macro, rebuild for bind 9.11.3
1e9aeb
- Cleanup spec file
e74039
4093f9
* Thu Mar 01 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.1.0.0-13
4093f9
- Update Python 2 dependency declarations to new packaging standards
4093f9
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
4093f9
87636b
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0.0-12
87636b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
87636b
bd5787
* Fri Jan 19 2018 Petr Menšík <pemensik@redhat.com> - 2.1.0.0-11
bd5787
- Rebuild again against bind-9.11.2-P1
bd5787
1be1be
* Tue Jan 09 2018 Petr Menšík <pemensik@redhat.com> - 2.1.0.0-10
1be1be
- Rebuild for bind 9.11.2
1be1be
5e51e8
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0.0-9
5e51e8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
5e51e8
bed219
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0.0-8
bed219
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
bed219
57367f
* Mon Jul 03 2017 Paul Wouters <pwouters@redhat.com> - 2.1.0.0-7
57367f
- Rebuild against 9.11.1-P2
57367f
0e012f
* Thu Jun 29 2017 Petr Menšík <pemensik@redhat.com> - 2.1.0.0-6
0e012f
- Rebuild against bind-9.11.1-P1
0e012f
22e931
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0.0-5
22e931
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
22e931
1dcdf0
* Mon Nov 21 2016 Paul Wouters <pwouters@redhat.com> - 2.1.0.0-4
1dcdf0
- rebuilt for new version of bind
1dcdf0
3b345e
* Sat Nov 19 2016 Peter Robinson <pbrobinson@fedoraproject.org> 2.1.0.0-3
3b345e
- Rebuild (bind)
3b345e
6c2cee
* Thu May 26 2016 Tomas Hozza <thozza@redhat.com> - 2.1.0.0-2
6c2cee
- Rebuild against bind-9.10.4-P1
6c2cee
e1d140
* Wed Apr 20 2016 Paul Wouters <pwouters@redhat.com> - 2.1.0.0-1
e1d140
- Updated to 2.1.0.0 (rhbz#1305929)
e1d140
- Remove incorporated patches
e1d140
- Updated example query file with upstream
e1d140
- Fixup bad changelog dates
e1d140
- Use gunzip not bunzip2 as upstream query file is only gzipped
e1d140
5eabc5
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0.0-20
5eabc5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
5eabc5
735a73
* Wed Dec 16 2015 Tomas Hozza <thozza@redhat.com> - 2.0.0.0-19
735a73
- Rebuild against bind-9.10.3-P2
735a73
d3240c
* Fri Sep 04 2015 Tomas Hozza <thozza@redhat.com> - 2.0.0.0-18
d3240c
- Rebuild against bind 9.10.3rc1
d3240c
a43e5d
* Wed Jun 24 2015 Tomas Hozza <thozza@redhat.com> - 2.0.0.0-17
a43e5d
- rebuild against bind-9.10.2-P1
9d0212
- add Build dependency on GeoIP-devel since bind is built with it
a43e5d
61da1d
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0.0-16
61da1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
61da1d
1002ff
* Fri Mar 13 2015 Tomas Hozza <thozza@redhat.com> - 2.0.0.0-15
1002ff
- rebuild against bind-9.10.2
1002ff
c0dec1
* Wed Feb 25 2015 Tomas Hozza <thozza@redhat.com> - 2.0.0.0-14
c0dec1
- Rebuild against bind-9.10.2rc2
c0dec1
3adbd8
* Mon Feb 02 2015 Tomas Hozza <thozza@redhat.com> - 2.0.0.0-13
3adbd8
- rebuild against bind-9.10.2rc1
3adbd8
0184f3
* Wed Jan 14 2015 Tomas Hozza <thozza@redhat.com> - 2.0.0.0-12
0184f3
- rebuild against bind-9.10.1-P1
0184f3
4d1f46
* Fri Oct 03 2014 Tomas Hozza <thozza@redhat.com> - 2.0.0.0-11
4d1f46
- rebuild against bind-9.9.6
4d1f46
8ee44d
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0.0-10
8ee44d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
8ee44d
0ccc05
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0.0-9
0ccc05
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
0ccc05
c1ed66
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0.0-8
c1ed66
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
c1ed66
6ed3d8
* Mon Jul 15 2013 Tomas Hozza <thozza@redhat.com> - 2.0.0.0-7
6ed3d8
- Rebuild against bind 9.9.4b1
6ed3d8
097319
* Tue May 14 2013 Paul Wouters <pwouters@redhat.com> - 2.0.0.0-6
097319
- Rebuild against bind 9.9.3-0.6.rc2
097319
- Fix url, nominum changed their website
097319
Adam Tkac 3732f8
* Tue Apr 16 2013 Adam Tkac <atkac redhat="" com=""> - 2.0.0.0-5
Adam Tkac 3732f8
- rebuild against new bind
Adam Tkac 3732f8
8672a6
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0.0-4
8672a6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
8672a6
Adam Tkac fee774
* Thu Oct 11 2012 Adam TKac <atkac redhat="" com=""> - 2.0.0.0-3
Adam Tkac fee774
- rebuild against new bind-libs
Adam Tkac 8ed06a
- pack sample query file with bz2
Adam Tkac fee774
4533a9
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0.0-2
4533a9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
4533a9
e6a0a7
* Wed Apr 18 2012 Paul Wouters <pwouters@redhat.com> - 2.0.0.0-1
e6a0a7
- Upgraded to 2.0.0.0
e6a0a7
- Fixup of URLs
e6a0a7
- Add pointer to sample query file in usage info
e6a0a7
- Added current query sample file as old example has been removed
e6a0a7
- Pulled in missing bind-9.8.x/9.9.x version of hmacsha.h
e6a0a7
- Removed doc/*pdf files, as their license might mean non-free
e6a0a7
1880a6
* Wed Feb  1 2012 Adam Williamson <awilliam@redhat.com> - 1.0.1.0-28
1880a6
- rebuild against new bind
1880a6
b8a15c
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1.0-27
b8a15c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
b8a15c
Adam Tkac fdbd61
* Mon Nov 14 2011 Adam Tkac <atkac redhat="" com=""> - 1.0.1.0-26
Adam Tkac fdbd61
- rebuild against new bind
Adam Tkac fdbd61
Adam Tkac ae5f32
* Fri Sep 09 2011 Adam Tkac <atkac redhat="" com=""> - 1.0.1.0-25
Adam Tkac ae5f32
- rebuild against new bind
Adam Tkac ae5f32
Paul Wouters 151b08
* Tue May 24 2011 Paul Wouters <paul@xelerance.com> - 1.0.1.0-24
Paul Wouters 151b08
- rebuilt for newer bind
Paul Wouters 151b08
e1d140
* Mon Feb 21 2011 Adam Tkac <atkac redhat="" com=""> - 1.0.1.0-23
Adam Tkac da117a
- rebuild against new bind
Adam Tkac da117a
5da3b6
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1.0-22
5da3b6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
5da3b6
Adam Tkac 402f37
* Thu Sep 30 2010 Adam Tkac <atkac@redhat.com> - 1.0.1.0-21
Adam Tkac 402f37
- rebuild against new bind
Adam Tkac 402f37
Adam Tkac f780e0
* Fri Aug 27 2010 Adam Tkac <atkac redhat="" com=""> - 1.0.1.0-20
Adam Tkac f780e0
- rebuild against new bind
Adam Tkac f780e0
Adam Tkac 8cc532
* Tue Aug 03 2010 Adam Tkac <atkac redhat="" com=""> - 1.0.1.0-19
Adam Tkac 8cc532
- rebuild against new bind
Adam Tkac 8cc532
Adam Tkac a22adf
* Fri Jul 02 2010 Adam Tkac <atkac redhat="" com=""> - 1.0.1.0-18
Adam Tkac a22adf
- rebuild to ensure devel branch doesn't have lower NVR than stable branch
Adam Tkac a22adf
Adam Tkac 984693
* Mon May 31 2010 Adam Tkac <atkac redhat="" com=""> - 1.0.1.0-17
Adam Tkac 984693
- rebuild against new bind
Adam Tkac 984693
Adam Tkac 97f253
* Thu Jan 28 2010 Adam Tkac <atkac redhat="" com=""> - 1.0.1.0-16
Adam Tkac 97f253
- rebuild against new bind
Adam Tkac 97f253
Adam Tkac 850a7b
* Tue Dec 15 2009 Adam Tkac <atkac redhat="" com=""> - 1.0.1.0-15
Adam Tkac 850a7b
- rebuild against new bind
Adam Tkac 850a7b
Adam Tkac bdad8a
* Tue Dec 01 2009 Adam Tkac <atkac redhat="" com=""> - 1.0.1.0-14
Adam Tkac bdad8a
- rebuild against new bind
Adam Tkac bdad8a
Adam Tkac 54ae4a
* Thu Nov 26 2009 Adam Tkac <atkac redhat="" com=""> - 1.0.1.0-13
Adam Tkac 54ae4a
- rebuild against new bind
Adam Tkac 54ae4a
e0940c
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 1.0.1.0-12
e0940c
- rebuilt with new openssl
e0940c
ac8b74
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1.0-11
ac8b74
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
ac8b74
Adam Tkac 07f117
* Fri Jun 19 2009 Adam Tkac <atkac redhat="" com=""> - 1.0.1.0-10
Adam Tkac 07f117
- rebuild again
Adam Tkac 07f117
Adam Tkac 3a0197
* Wed Jun 17 2009 Adam Tkac <atkac redhat="" com=""> - 1.0.1.0-9
Adam Tkac 3a0197
- rebuild against new bind-libs
Adam Tkac 3a0197
Adam Tkac 48071d
* Mon Mar 30 2009 Adam Tkac <atkac redhat="" com=""> - 1.0.1.0-8
Adam Tkac 48071d
- rebuild against new bind-libs
Adam Tkac 48071d
80ca2f
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1.0-7
80ca2f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
80ca2f
0dfb8b
* Thu Jan 15 2009 Tomas Mraz <tmraz@redhat.com> - 1.0.1.0-6
0dfb8b
- rebuild with new openssl
c3d67d
- seems to require libxml2-devel to build now
0dfb8b
Adam Tkac 465012
* Mon Nov 10 2008 Adam Tkac <atkac redhat="" com=""> - 1.0.1.0-5
Adam Tkac 465012
- rebuild against new bind-libs
Adam Tkac 465012
e1d140
* Fri Oct 31 2008 Paul Wouters <paul@xelerance.com> - 1.0.1.0-4
978881
- Changed license from BSD to MIT
978881
978881
* Wed Oct 22 2008 Paul Wouters <paul@xelerance.com> - 1.0.1.0-3
978881
- Fixed missing buildrequires
978881
- Pass proper CFLAGS to gcc
978881
- Fix Group
978881
978881
* Tue Oct 21 2008 Paul Wouters <paul@xelerance.com> - 1.0.1.0-2
978881
- Fixed libpcap vs libcap confusion
978881
978881
* Mon Oct 20 2008 Paul Wouters <paul@xelerance.com> - 1.0.1.0-1
978881
- Initial Fedora package