forked from pool/python-dnspython
Accepting request 493313 from devel:languages:python
1 OBS-URL: https://build.opensuse.org/request/show/493313 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dnspython?expand=0&rev=23
This commit is contained in:
commit
43e5337e4b
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue May 2 21:42:12 UTC 2017 - sor.alexei@meowr.ru
|
||||||
|
|
||||||
|
- Update for the multipython build.
|
||||||
|
- Rename python-dnspython.asc to python-dnspython.keyring.
|
||||||
|
- Spec cleanup.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Oct 9 09:40:46 UTC 2016 - sebix+novell.com@sebix.at
|
Sun Oct 9 09:40:46 UTC 2016 - sebix+novell.com@sebix.at
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-dnspython
|
# spec file for package python-dnspython
|
||||||
#
|
#
|
||||||
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -16,38 +16,49 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-dnspython
|
Name: python-dnspython
|
||||||
Version: 1.15.0
|
Version: 1.15.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Url: http://www.dnspython.org/
|
|
||||||
Summary: A DNS toolkit for Python
|
Summary: A DNS toolkit for Python
|
||||||
License: ISC
|
License: ISC
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Source: http://www.dnspython.org/kits/%{version}/dnspython-%{version}.tar.gz
|
Url: http://dnspython.org/
|
||||||
Source2: http://www.dnspython.org/kits/%{version}/dnspython-%{version}.tar.gz.asc
|
Source: http://dnspython.org/kits/%{version}/dnspython-%{version}.tar.gz
|
||||||
Source3: python-dnspython.asc
|
Source2: http://dnspython.org/kits/%{version}/dnspython-%{version}.tar.gz.asc
|
||||||
Patch0: https://github.com/rthalley/dnspython/pull/210.patch
|
Source3: python-dnspython.keyring
|
||||||
# Add the readme as patch as not included in the tarball
|
# PATCH-FIX-UPSTREAM 210.patch git_hub@avram.us -- https://github.com/rthalley/dnspython/pull/210.patch
|
||||||
|
Patch0: 210.patch
|
||||||
|
# PATCH-FEATURE-OPENSUSE readme.patch -- Add the readme as patch as not included in the tarball.
|
||||||
Patch1: readme.patch
|
Patch1: readme.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRequires: %{python_module devel}
|
||||||
|
BuildRequires: %{python_module ecdsa}
|
||||||
|
BuildRequires: %{python_module idna}
|
||||||
|
BuildRequires: %{python_module pycrypto}
|
||||||
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: fdupes
|
||||||
BuildRequires: netcfg
|
BuildRequires: netcfg
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: python-ecdsa
|
|
||||||
BuildRequires: python-idna
|
|
||||||
BuildRequires: python-pycrypto
|
|
||||||
BuildRequires: python-setuptools
|
|
||||||
BuildRequires: unzip
|
|
||||||
Recommends: python-ecdsa
|
Recommends: python-ecdsa
|
||||||
Recommends: python-idna
|
Recommends: python-idna
|
||||||
Recommends: python-pycrypto
|
Recommends: python-pycrypto
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
dnspython is a DNS toolkit for Python. It supports almost all record types. It can be used for queries, zone transfers, and dynamic updates. It supports TSIG authenticated messages and EDNS0.
|
dnspython is a DNS toolkit for Python. It supports almost all
|
||||||
|
record types. It can be used for queries, zone transfers, and
|
||||||
|
dynamic updates. It supports TSIG authenticated messages and EDNS0.
|
||||||
|
|
||||||
dnspython provides both high and low level access to DNS. The high level classes perform queries for data of a given name, type, and class, and return an answer set. The low level classes allow direct manipulation of DNS zones, messages, names, and records.
|
dnspython provides both high and low level access to DNS. The high
|
||||||
|
level classes perform queries for data of a given name, type, and
|
||||||
|
class, and return an answer set. The low level classes allow direct
|
||||||
|
manipulation of DNS zones, messages, names, and records.
|
||||||
|
|
||||||
dnspython originated at Nominum where it was developed to facilitate the testing of DNS software. Nominum has generously allowed it to be open sourced under a BSD-style license.
|
dnspython originated at Nominum where it was developed to
|
||||||
|
facilitate the testing of DNS software. Nominum has generously
|
||||||
|
allowed it to be opened under a BSD-style licence.
|
||||||
|
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n dnspython-%{version}
|
%setup -q -n dnspython-%{version}
|
||||||
@ -56,19 +67,21 @@ chmod -x examples/*
|
|||||||
%patch1
|
%patch1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python setup.py build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
%python_install
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}/
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# skip the resolver test suite as it requires an internet connection
|
# Skip the resolver test suite as it requires Internet connection.
|
||||||
test -f tests/test_resolver.py && rm tests/test_resolver.py
|
test -f tests/test_resolver.py && rm tests/test_resolver.py
|
||||||
python setup.py test
|
%python_exec setup.py test
|
||||||
|
|
||||||
%files
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root)
|
||||||
%doc ChangeLog LICENSE README.md examples
|
%doc ChangeLog LICENSE README.md examples/
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/dns/
|
||||||
|
%{python_sitelib}/dnspython-%{version}-py%{python_version}.egg-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user