commit 8d765575301a8c2686203a538b456ad0f9ff1a23e8dcc711afcfafaf24764dd7 Author: OBS User mrdocs Date: Sun Nov 12 23:37:57 2017 +0000 Accepting request 538609 from home:mnhauke Initial package for python-cymruwhois - needed for python-dnsdiag OBS-URL: https://build.opensuse.org/request/show/538609 OBS-URL: https://build.opensuse.org/package/show/network/python-cymruwhois?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/cymruwhois-1.6.tar.gz b/cymruwhois-1.6.tar.gz new file mode 100644 index 0000000..d7d21e3 --- /dev/null +++ b/cymruwhois-1.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b6c085e50e33133cd3718504521c780ed4d6b1e18e12c3bda6a0c949df7df254 +size 4411 diff --git a/cymruwhois.1 b/cymruwhois.1 new file mode 100644 index 0000000..c8c31c2 --- /dev/null +++ b/cymruwhois.1 @@ -0,0 +1,58 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH CYMRUWHOIS 1 "February 26, 2009" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +cymruwhois \- program to lookup ip addresses using the cymru whois service +.SH SYNOPSIS +.B cymruwhois +.RI [ options ] " files" ... +.br +.SH DESCRIPTION +This manual page documents briefly the +.B cymruwhois +command. +.PP +.\" TeX users may be more comfortable with the \fB\fP and +.\" \fI\fP escape sequences to invode bold face and italics, +.\" respectively. +\fBcymruwhois\fP is a program that... +.SH OPTIONS +This program follow the usual GNU command line syntax, with long +options starting with two dashes (`-'). +.TP +.B \-h, \-\-help +Show summary of options. +.TP +.B \-d DELIM, \-\-delim=DELIM +delimiter to use instead of justified +.TP +.B \-f FIELDS, \-\-fields=FIELDS +comma separated fields to include (asn,ip,prefix,cc,owner) +.TP +.B \-c CACHE, \-\-cache=CACHE +memcache server (default localhost) +.TP +.B \-n, \-\-no-cache +don't use memcached +.SH SEE ALSO +.BR whois (1), +.br +.SH AUTHOR +cymruwhois was written by Justin Azoff +.PP +This manual page was written by Justin Azoff +for the Debian project (but may be used by others). diff --git a/python-cymruwhois.changes b/python-cymruwhois.changes new file mode 100644 index 0000000..49e2624 --- /dev/null +++ b/python-cymruwhois.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Fri Nov 3 07:18:27 UTC 2017 - mardnh@gmx.de + +- Initial package, version 1.6 diff --git a/python-cymruwhois.spec b/python-cymruwhois.spec new file mode 100644 index 0000000..e316c56 --- /dev/null +++ b/python-cymruwhois.spec @@ -0,0 +1,58 @@ +# +# 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 http://bugs.opensuse.org/ + + +%{?!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 +URL: http://packages.python.org/cymruwhois/ +Source: https://files.pythonhosted.org/packages/source/c/cymruwhois/cymruwhois-%{version}.tar.gz +Source1: https://raw.githubusercontent.com/JustinAzoff/python-cymruwhois/master/docs/cymruwhois.1 +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Provides: cymruwhois +BuildArch: noarch +%python_subpackages + +%description +Perform lookups by ip address and return ASN, Country Code, +and Netblock Owner. + +%prep +%setup -q -n cymruwhois-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} +install -d -m0755 %{buildroot}%{_mandir}/man1/ +install -m0644 %{SOURCE1} %{buildroot}%{_mandir}/man1/ + +%files %{python_files} +%{python_sitelib}/* +%python3_only %{_bindir}/cymruwhois +%python3_only %{_mandir}/man1/cymruwhois.1%{ext_man} + +%changelog