diff options
author | Casey Deccio <casey@deccio.net> | 2019-01-25 08:14:10 +0300 |
---|---|---|
committer | Casey Deccio <casey@deccio.net> | 2019-01-25 08:14:10 +0300 |
commit | 649e684304709987f6fc1139a8142b2eb054000b (patch) | |
tree | 5770443dd41512b0d2ef1b5835cff791b6299e5d | |
parent | 357bf112783fe153f243ee9995b5813353d8caa4 (diff) |
Add spec files
-rw-r--r-- | contrib/dnsviz-py2.spec | 64 | ||||
-rw-r--r-- | contrib/dnsviz-py3.spec | 64 |
2 files changed, 128 insertions, 0 deletions
diff --git a/contrib/dnsviz-py2.spec b/contrib/dnsviz-py2.spec new file mode 100644 index 0000000..426a5db --- /dev/null +++ b/contrib/dnsviz-py2.spec @@ -0,0 +1,64 @@ +Name: dnsviz +Version: 0.7.0 +Release: 1%{?dist} +Summary: Tools for analyzing and visualizing DNS and DNSSEC behavior + +License: GPLv2+ +URL: https://github.com/dnsviz/dnsviz +Source0: https://github.com/dnsviz/dnsviz/releases/download/v%{version}/%{name}-%{version}.tar.gz + +BuildArch: noarch +BuildRequires: python2-devel +BuildRequires: graphviz +BuildRequires: make +# python2-pygraphviz should be >= 1.4 +Requires: python2-pygraphviz >= 1.3 +Requires: m2crypto >= 0.28.0 +Requires: python2-dns >= 1.13 +Requires: python2-libnacl + +%description +DNSViz is a tool suite for analysis and visualization of Domain Name System +(DNS) behavior, including its security extensions (DNSSEC). This tool suite +powers the Web-based analysis available at http://dnsviz.net/ + +%prep +%autosetup + +%build +%py2_build + +%install +#XXX Normally the py2_install macro would be used here, +# but dnsviz/config.py is build with the install command, +# so install MUST call the build subcommand, so config.py +# will be proplerly placed. With py2_install, the +# --skip-build argument is used. +%{__python2} %{py_setup} %{?py_setup_args} install -O1 --root %{buildroot} %{?*} + +#XXX no checks yet +#%check +#%{__python2} setup.py test + +%clean +rm -rf %{buildroot} + +%files +%license LICENSE +%doc README.md +%{python2_sitelib}/%{name}/* +%{python2_sitelib}/%{name}-%{version}-py2.7.egg-info/* +%{_bindir}/%{name} +%{_datadir}/%{name}/* +%{_defaultdocdir}/%{name}/dnsviz-graph.html +%{_defaultdocdir}/%{name}/images/*png +%{_mandir}/man1/%{name}.1* +%{_mandir}/man1/%{name}-probe.1* +%{_mandir}/man1/%{name}-graph.1* +%{_mandir}/man1/%{name}-grok.1* +%{_mandir}/man1/%{name}-print.1* +%{_mandir}/man1/%{name}-query.1* + +%changelog +* Thu Jan 25 2019 Casey Deccio + 0.7.0 release diff --git a/contrib/dnsviz-py3.spec b/contrib/dnsviz-py3.spec new file mode 100644 index 0000000..a0d67eb --- /dev/null +++ b/contrib/dnsviz-py3.spec @@ -0,0 +1,64 @@ +Name: dnsviz +Version: 0.7.0 +Release: 1%{?dist} +Summary: Tools for analyzing and visualizing DNS and DNSSEC behavior + +License: GPLv2+ +URL: https://github.com/dnsviz/dnsviz +Source0: https://github.com/dnsviz/dnsviz/releases/download/v%{version}/%{name}-%{version}.tar.gz + +BuildArch: noarch +BuildRequires: python3-devel +BuildRequires: graphviz +BuildRequires: make +# python3-pygraphviz should be >= 1.4 +Requires: python3-pygraphviz >= 1.3 +Requires: python3-m2crypto >= 0.28.0 +Requires: python3-dns >= 1.13 +Requires: python3-libnacl + +%description +DNSViz is a tool suite for analysis and visualization of Domain Name System +(DNS) behavior, including its security extensions (DNSSEC). This tool suite +powers the Web-based analysis available at http://dnsviz.net/ + +%prep +%autosetup + +%build +%py3_build + +%install +#XXX Normally the py3_install macro would be used here, +# but dnsviz/config.py is build with the install command, +# so install MUST call the build subcommand, so config.py +# will be proplerly placed. With py3_install, the +# --skip-build argument is used. +%{__python3} %{py_setup} %{?py_setup_args} install -O1 --root %{buildroot} %{?*} + +#XXX no checks yet +#%check +#%{__python3} setup.py test + +%clean +rm -rf %{buildroot} + +%files +%license LICENSE +%doc README.md +%{python3_sitelib}/%{name}/* +%{python3_sitelib}/%{name}-%{version}-py3.7.egg-info/* +%{_bindir}/%{name} +%{_datadir}/%{name}/* +%{_defaultdocdir}/%{name}/dnsviz-graph.html +%{_defaultdocdir}/%{name}/images/*png +%{_mandir}/man1/%{name}.1* +%{_mandir}/man1/%{name}-probe.1* +%{_mandir}/man1/%{name}-graph.1* +%{_mandir}/man1/%{name}-grok.1* +%{_mandir}/man1/%{name}-print.1* +%{_mandir}/man1/%{name}-query.1* + +%changelog +* Thu Jan 25 2019 Casey Deccio + 0.7.0 release |