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
This commit is contained in:
OBS User mrdocs 2017-11-12 23:37:57 +00:00 committed by Git OBS Bridge
commit 8d76557530
6 changed files with 147 additions and 0 deletions

23
.gitattributes vendored Normal file
View 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
View File

@ -0,0 +1 @@
.osc

3
cymruwhois-1.6.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b6c085e50e33133cd3718504521c780ed4d6b1e18e12c3bda6a0c949df7df254
size 4411

58
cymruwhois.1 Normal file
View File

@ -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 <n> 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<whatever>\fP and
.\" \fI<whatever>\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 <JAzoff@uamail.albany.edu>
.PP
This manual page was written by Justin Azoff <JAzoff@uamail.albany.edu>
for the Debian project (but may be used by others).

View File

@ -0,0 +1,4 @@
-------------------------------------------------------------------
Fri Nov 3 07:18:27 UTC 2017 - mardnh@gmx.de
- Initial package, version 1.6

58
python-cymruwhois.spec Normal file
View File

@ -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