commit ec49af9d4b67ffac45b66e4e780b710b76d7c356f010c2be13e546d777be474a Author: Tomáš Chvátal Date: Mon Feb 19 08:15:13 2018 +0000 Accepting request 577778 from home:sebix now with fixed install_requires OBS-URL: https://build.opensuse.org/request/show/577778 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pythonwhois?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-pythonwhois-2.4.3.zip b/python-pythonwhois-2.4.3.zip new file mode 100644 index 0000000..c3f184f --- /dev/null +++ b/python-pythonwhois-2.4.3.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7f687fab9cece80a29a8dc31dcf467c3d914d75c11af936ff696726c0ef11ca9 +size 856196 diff --git a/python-pythonwhois.changes b/python-pythonwhois.changes new file mode 100644 index 0000000..847138d --- /dev/null +++ b/python-pythonwhois.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +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 diff --git a/python-pythonwhois.spec b/python-pythonwhois.spec new file mode 100644 index 0000000..3225a0b --- /dev/null +++ b/python-pythonwhois.spec @@ -0,0 +1,63 @@ +# +# spec file for package python-pythonwhois +# +# Copyright (c) 2018 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 http://bugs.opensuse.org/ + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define commit 60adc3acc2d59627b2e32dc36d27802942e0820d/ +Name: python-pythonwhois +Version: 2.4.3 +Release: 0 +License: WTFPL +Summary: Python whois library +Url: http://cryto.net/pythonwhois +Group: Development/Languages/Python +#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 +BuildArch: noarch + +%python_subpackages + +%description +Module for retrieving and parsing the WHOIS data for a domain. + +%prep +%setup -q -n python-whois-%{commit} +%patch0 -p1 + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} +%python_clone %{buildroot}%{_bindir}/pwhois + +%files %{python_files} +%doc README.md doc/*.html +%license LICENSE.txt +%{_bindir}/pwhois-%{python_bin_suffix} +%python3_only %{_bindir}/pwhois +%{python_sitelib}/* + +%changelog diff --git a/remove_argparse_req.patch b/remove_argparse_req.patch new file mode 100644 index 0000000..67aeae5 --- /dev/null +++ b/remove_argparse_req.patch @@ -0,0 +1,10 @@ +--- python-whois-60adc3acc2d59627b2e32dc36d27802942e0820d/setup.py 2014-07-23 01:22:50.000000000 +0200 ++++ python-whois-60adc3acc2d59627b2e32dc36d27802942e0820d/setup.py 2018-02-18 16:57:09.284672900 +0100 +@@ -9,7 +9,6 @@ + packages=['pythonwhois'], + package_dir={"pythonwhois":"pythonwhois"}, + package_data={"pythonwhois":["*.dat"]}, +- install_requires=['argparse'], + provides=['pythonwhois'], + scripts=["pwhois"], + license="WTFPL"