ea2c81c
Name:           dnsviz
5e43e24
Version:        0.9.4
7083e3d
Release:        2%{?dist}
ea2c81c
Summary:        Tools for analyzing and visualizing DNS and DNSSEC behavior
ea2c81c
ea2c81c
License:        GPLv2+
ea2c81c
URL:            https://github.com/dnsviz/dnsviz
5e43e24
Source0:        %{url}/releases/download/v%{version}/%{name}-%{version}.tar.gz
ea2c81c
ea2c81c
BuildArch:      noarch
ea2c81c
BuildRequires:  python3-devel
ea2c81c
BuildRequires:  graphviz
ea2c81c
BuildRequires:  make
3da9b5e
BuildRequires:  python3-pygraphviz >= 1.3
3da9b5e
BuildRequires:  python3-m2crypto >= 0.28.0
3da9b5e
BuildRequires:  python3-dns >= 1.13
ea2c81c
Requires:       python3-pygraphviz >= 1.3
ea2c81c
Requires:       python3-m2crypto >= 0.28.0
ea2c81c
Requires:       python3-dns >= 1.13
ea2c81c
ea2c81c
%description
ea2c81c
DNSViz is a tool suite for analysis and visualization of Domain Name System
ea2c81c
(DNS) behavior, including its security extensions (DNSSEC).  This tool suite
ea2c81c
powers the Web-based analysis available at http://dnsviz.net/
ea2c81c
ea2c81c
%prep
5e43e24
%autosetup -p1
ea2c81c
ea2c81c
%build
ea2c81c
%py3_build
ea2c81c
ea2c81c
%install
ea2c81c
#XXX Normally the py3_install macro would be used here,
ea2c81c
# but dnsviz/config.py is build with the install command,
ea2c81c
# so install MUST call the build subcommand, so config.py
ea2c81c
# will be proplerly placed.  With py3_install, the
ea2c81c
# --skip-build argument is used.
ea2c81c
%{__python3} %{py_setup} %{?py_setup_args} install -O1 --root %{buildroot} %{?*}
ea2c81c
3da9b5e
%check
3da9b5e
pushd tests
3da9b5e
mkdir bin
3da9b5e
ln -s %{buildroot}%{_bindir}/%{name} bin/%{name}
3da9b5e
export PYTHONPATH="%{buildroot}%{python3_sitelib}"
3da9b5e
%{__python3} dnsviz_graph_options.py
3da9b5e
# Cannot cope with not yet working DNSVIZ_SHARE_PATH
3da9b5e
#%{__python3} dnsviz_graph_run.py
3da9b5e
%{__python3} dnsviz_grok_options.py
3da9b5e
%{__python3} dnsviz_grok_run.py
3da9b5e
%{__python3} dnsviz_print_options.py
3da9b5e
%{__python3} dnsviz_print_run.py
3da9b5e
# Fails with dnsviz.resolver.ResolvConfError: No servers found in /etc/resolv.conf
3da9b5e
#%{__python3} dnsviz_probe_options.py
3da9b5e
#%{__python3} dnsviz_probe_run_offline.py
3da9b5e
# No online tests in mock
3da9b5e
#%{__python3} dnsviz_probe_run_online.py
3da9b5e
popd
ea2c81c
ea2c81c
%files
ea2c81c
%license LICENSE
ea2c81c
%doc README.md
dafb06b
%{python3_sitelib}/%{name}/
dafb06b
%{python3_sitelib}/%{name}-%{version}-*.egg-info
ea2c81c
%{_bindir}/%{name}
dafb06b
%{_datadir}/%{name}/
ea2c81c
%{_defaultdocdir}/%{name}/dnsviz-graph.html
ea2c81c
%{_defaultdocdir}/%{name}/images/*png
ea2c81c
%{_mandir}/man1/%{name}.1*
ea2c81c
%{_mandir}/man1/%{name}-probe.1*
ea2c81c
%{_mandir}/man1/%{name}-graph.1*
ea2c81c
%{_mandir}/man1/%{name}-grok.1*
ea2c81c
%{_mandir}/man1/%{name}-print.1*
ea2c81c
%{_mandir}/man1/%{name}-query.1*
ea2c81c
ea2c81c
%changelog
7083e3d
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.4-2
7083e3d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
7083e3d
5e43e24
* Fri Jan 07 2022 Petr Menšík <pemensik@redhat.com> - 0.9.4-1
5e43e24
- Update to 0.9.4
5e43e24
ea2c81c
* Thu Mar  11 2021 Casey Deccio
ea2c81c
  0.9.3 release
ea2c81c
* Fri Feb  5 2021 Casey Deccio
ea2c81c
  0.9.2 release
ea2c81c
* Tue Jan  19 2021 Casey Deccio
ea2c81c
  0.9.1 release
ea2c81c
* Fri Jan  8 2021 Casey Deccio
ea2c81c
  0.9.0 release
ea2c81c
* Wed Feb  6 2019 Casey Deccio
ea2c81c
  0.8.1 release
ea2c81c
* Fri Jan  25 2019 Casey Deccio
ea2c81c
  0.8.0 release