diff --git a/python-pythonwhois.changes b/python-pythonwhois.changes index 847138d..8d1a602 100644 --- a/python-pythonwhois.changes +++ b/python-pythonwhois.changes @@ -1,5 +1,10 @@ +------------------------------------------------------------------- +Mon Feb 19 09:59:24 UTC 2018 - sebix+novell.com@sebix.at + +- add conflict for perl-Net-Whois-Raw because of /usr/bin/pwhois + ------------------------------------------------------------------- Sun Feb 18 14:13:21 UTC 2018 - sebix+novell.com@sebix.at - initial package for version 2.4.3 -- add remove_argparse_req.patch to fix package installation \ No newline at end of file +- add remove_argparse_req.patch to fix package installation diff --git a/python-pythonwhois.spec b/python-pythonwhois.spec index 3225a0b..a064b69 100644 --- a/python-pythonwhois.spec +++ b/python-pythonwhois.spec @@ -13,6 +13,7 @@ # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ +# %{?!python_module:%define python_module() python-%{**} python3-%{**}} @@ -20,20 +21,23 @@ Name: python-pythonwhois Version: 2.4.3 Release: 0 -License: WTFPL Summary: Python whois library -Url: http://cryto.net/pythonwhois +License: WTFPL Group: Development/Languages/Python +Url: http://cryto.net/pythonwhois #Source: https://files.pythonhosted.org/packages/source/p/pythonwhois/pythonwhois-%%{version}.tar.gz # github tarball includes docs and tests (which require network) Source: https://github.com/joepie91/python-whois/archive/%{commit}.zip#/%{name}-%{version}.zip # PATCH-FIX-UPSTREAM remove_argparse_req.patch -- argparse is not a package Patch0: remove_argparse_req.patch -BuildRequires: python-rpm-macros -BuildRequires: unzip BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: unzip +%ifpython3 +Conflicts: perl-Net-Whois-Raw +%endif BuildArch: noarch %python_subpackages