https://bugzilla.redhat.com/show_bug.cgi?id=2324539



--- Comment #2 from Benson Muite <[email protected]> ---
cymruwhois is not available in Fedora, so would need to be packaged
https://pypi.org/project/cymruwhois/

dnspython is not available in Fedora, so would need to be packaged
https://pypi.org/project/dnspython/

Can the new packaging guidelines be used? May need to relax some of the
dependency version requirements.
Would expect something similar to:

%global pypi_name dnsdiag
%global pypi_version 2.6.0

Name:           python-%{pypi_name}
Version:        %{pypi_version}
Release:        %autorelease
Summary:        DNS Measurement, Troubleshooting and Security Auditing Toolset
(ping, traceroute)

License:        BSD-2-Clause
URL:            https://dnsdiag.org/
Source:         %{pypi_source}
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)

%description
DNSDiag provides a handful of tools to measure and diagnose your DNS
performance and integrity. Using dnsping, dnstraceroute and dnseval tools you
can measure your DNS response quality from delay and loss perspective as well
as tracing the path your DNS query takes to get to DNS server.

%package -n     python3-%{pypi_name}
Summary:        %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}

%description -n python3-%{pypi_name}
DNSDiag provides a handful of tools to measure and diagnose your DNS
performance and integrity. Using dnsping, dnstraceroute and dnseval tools you
can measure your DNS response quality from delay and loss perspective as well
as tracing the path your DNS query takes to get to DNS server.


%prep
%autosetup -n %{pypi_name}-%{pypi_version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%generate_buildrequires
%pyproject_buildrequires

%build
%pyproject_wheel

%install
%pyproject_install

for BIN in dns{eval,ping,traceroute}; do
  # replace easyinstall wrappers by scripts itself
  mv %{buildroot}%{_bindir}/$BIN{.py,}
done

%pyproject_save_files %{pypi_name} -L

%check
%pyproject_check_import

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.md
%{_bindir}/dnseval
%{_bindir}/dnsping
%{_bindir}/dnstraceroute

%changelog
%autochangelog


-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
https://bugzilla.redhat.com/show_bug.cgi?id=2324539

Report this comment as SPAM: 
https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-spam&short_desc=Report%20of%20Bug%202324539%23c2

-- 
_______________________________________________
package-review mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to