forked from pool/python-pythonwhois
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
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
3
python-pythonwhois-2.4.3.zip
Normal file
3
python-pythonwhois-2.4.3.zip
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7f687fab9cece80a29a8dc31dcf467c3d914d75c11af936ff696726c0ef11ca9
|
||||
size 856196
|
5
python-pythonwhois.changes
Normal file
5
python-pythonwhois.changes
Normal file
@@ -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
|
63
python-pythonwhois.spec
Normal file
63
python-pythonwhois.spec
Normal file
@@ -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
|
10
remove_argparse_req.patch
Normal file
10
remove_argparse_req.patch
Normal file
@@ -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"
|
Reference in New Issue
Block a user