From faf3b28fdd3a6e86a9e6cfbbd9923a3b4bad6ba3256c0eba085bcab1c6ef054a Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Sun, 7 May 2017 12:18:28 +0000 Subject: [PATCH] Accepting request 493310 from home:XRevan86 OBS-URL: https://build.opensuse.org/request/show/493310 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dnspython?expand=0&rev=38 --- python-dnspython.changes | 7 +++ ...-dnspython.asc => python-dnspython.keyring | 0 python-dnspython.spec | 63 +++++++++++-------- 3 files changed, 45 insertions(+), 25 deletions(-) rename python-dnspython.asc => python-dnspython.keyring (100%) diff --git a/python-dnspython.changes b/python-dnspython.changes index 07104d2..249e689 100644 --- a/python-dnspython.changes +++ b/python-dnspython.changes @@ -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 diff --git a/python-dnspython.asc b/python-dnspython.keyring similarity index 100% rename from python-dnspython.asc rename to python-dnspython.keyring diff --git a/python-dnspython.spec b/python-dnspython.spec index 6d21445..1504ec9 100644 --- a/python-dnspython.spec +++ b/python-dnspython.spec @@ -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