File python-cymruwhois.spec of Package python-cymruwhois

# spec file for package python-cymruwhois
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# 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

%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without test
Name:           python-cymruwhois
Version:        1.6
Release:        0
Summary:        Client for the whois.cymrucom service
License:        MIT
Group:          Development/Languages/Python
BuildRequires:  %{python_module devel}
BuildRequires:  %{python_module setuptools}
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
Provides:       cymruwhois
BuildArch:      noarch

Perform lookups by ip address and return ASN, Country Code,
and Netblock Owner.

%setup -q -n cymruwhois-%{version}


%python_expand %fdupes %{buildroot}%{$python_sitelib}
install -d -m0755 %{buildroot}%{_mandir}/man1/
install -m0644 %{SOURCE1} %{buildroot}%{_mandir}/man1/

%files %{python_files}
%python3_only %{_bindir}/cymruwhois
%python3_only %{_mandir}/man1/cymruwhois.1%{ext_man}

openSUSE Build Service is sponsored by