Sebastian Wagner 2017-05-07 12:18:28 +00:00 committed by Git OBS Bridge
parent 45e3067bc6
commit faf3b28fdd
3 changed files with 45 additions and 25 deletions

View File

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

View File

@ -1,7 +1,7 @@
#
# 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
# remain the property of their copyright owners, unless otherwise agreed
@ -16,38 +16,49 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-dnspython
Version: 1.15.0
Release: 0
Url: http://www.dnspython.org/
Summary: A DNS toolkit for Python
License: ISC
Group: Development/Languages/Python
Source: http://www.dnspython.org/kits/%{version}/dnspython-%{version}.tar.gz
Source2: http://www.dnspython.org/kits/%{version}/dnspython-%{version}.tar.gz.asc
Source3: python-dnspython.asc
Patch0: https://github.com/rthalley/dnspython/pull/210.patch
# Add the readme as patch as not included in the tarball
Url: http://dnspython.org/
Source: http://dnspython.org/kits/%{version}/dnspython-%{version}.tar.gz
Source2: http://dnspython.org/kits/%{version}/dnspython-%{version}.tar.gz.asc
Source3: python-dnspython.keyring
# 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
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: python-devel
BuildRequires: python-ecdsa
BuildRequires: python-idna
BuildRequires: python-pycrypto
BuildRequires: python-setuptools
BuildRequires: unzip
BuildRequires: python-rpm-macros
Recommends: python-ecdsa
Recommends: python-idna
Recommends: python-pycrypto
BuildArch: noarch
%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
%setup -q -n dnspython-%{version}
@ -56,19 +67,21 @@ chmod -x examples/*
%patch1
%build
python setup.py build
%python_build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}/
%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
python setup.py test
%python_exec setup.py test
%files
%defattr(-,root,root,-)
%doc ChangeLog LICENSE README.md examples
%{python_sitelib}/*
%files %{python_files}
%defattr(-,root,root)
%doc ChangeLog LICENSE README.md examples/
%{python_sitelib}/dns/
%{python_sitelib}/dnspython-%{version}-py%{python_version}.egg-info
%changelog