82 lines
3.3 KiB
RPMSpec
82 lines
3.3 KiB
RPMSpec
#
|
|
# spec file for package dnsdiag
|
|
#
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
# Copyright (c) 2017, Martin Hauke <mardnh@gmx.de>
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%bcond_without test
|
|
Name: dnsdiag
|
|
Version: 1.6.4
|
|
Release: 0
|
|
Summary: DNS request auditing toolset
|
|
License: BSD-3-Clause
|
|
Group: Development/Languages/Python
|
|
URL: https://dnsdiag.org/
|
|
Source: https://files.pythonhosted.org/packages/source/d/dnsdiag/dnsdiag-%{version}.tar.gz
|
|
Source1: dnseval.1
|
|
Source2: dnsping.1
|
|
Source3: dnstraceroute.1
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
BuildRequires: python3-setuptools
|
|
Requires: python3-cymruwhois >= 1.6
|
|
Requires: python3-dnspython >= 1.15.0
|
|
Requires: python3-setuptools
|
|
Provides: python3-dnsdiag
|
|
Obsoletes: python3-dnsdiag
|
|
BuildArch: noarch
|
|
%if %{with test}
|
|
BuildRequires: python3-cymruwhois >= 1.6
|
|
BuildRequires: python3-dnspython >= 1.15.0
|
|
%endif
|
|
|
|
%description
|
|
Set of tools to perform basic audits on your DNS requests and responses to make sure your DNS is working as you expect. Dnsping can be used to measure the response time of a given DNS server for arbitrary requests. Just like a traditional ping utility, it provides similar functionality for DNS requests.
|
|
|
|
Dnstraceroute can be used to trace the path a DNS request takes to destination. Its purpose is to detect whether a request is redirected or hijacked. This can be done by comparing different DNS queries being sent to the same DNS server using dnstraceroute and observe if there is any difference between the path.
|
|
|
|
dnseval evaluates multiple DNS resolvers and helps you choose the best DNS server for your network. It is highly recommended to use your own DNS resolver as opposed to a third-party DNS server, but in case you need to choose the best DNS forwarder for your network, dnseval lets you compare different DNS servers from performance (latency) and reliability (loss) point of view.
|
|
|
|
%prep
|
|
%setup -q -n dnsdiag-%{version}
|
|
|
|
%build
|
|
%python3_build
|
|
|
|
%install
|
|
%python3_install
|
|
%fdupes %{buildroot}%{python3_sitelib}
|
|
mv %{buildroot}%{_bindir}/dnseval.py %{buildroot}%{_bindir}/dnseval
|
|
mv %{buildroot}%{_bindir}/dnstraceroute.py %{buildroot}%{_bindir}/dnstraceroute
|
|
mv %{buildroot}%{_bindir}/dnsping.py %{buildroot}%{_bindir}/dnsping
|
|
install -d -m0755 %{buildroot}%{_mandir}/man1/
|
|
install -m0644 %{SOURCE1} %{buildroot}%{_mandir}/man1/
|
|
install -m0644 %{SOURCE2} %{buildroot}%{_mandir}/man1/
|
|
install -m0644 %{SOURCE3} %{buildroot}%{_mandir}/man1/
|
|
|
|
%files
|
|
%doc README.md
|
|
%license LICENSE
|
|
%{_bindir}/dnseval
|
|
%{_bindir}/dnstraceroute
|
|
%{_bindir}/dnsping
|
|
%{_mandir}/man1/dnseval.1%{?ext_man}
|
|
%{_mandir}/man1/dnstraceroute.1%{?ext_man}
|
|
%{_mandir}/man1/dnsping.1%{?ext_man}
|
|
%{python3_sitelib}/*
|
|
|
|
%changelog
|