15
0

- Add patch pycryptodome.patch to work with pycryptodome:

* pycryptodome.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dnspython?expand=0&rev=40
This commit is contained in:
Tomáš Chvátal
2018-05-09 13:46:46 +00:00
committed by Git OBS Bridge
parent faf3b28fdd
commit ad27d482f0
3 changed files with 476 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-dnspython
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2018 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
@@ -23,7 +23,7 @@ Release: 0
Summary: A DNS toolkit for Python
License: ISC
Group: Development/Languages/Python
Url: http://dnspython.org/
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
@@ -31,17 +31,19 @@ Source3: python-dnspython.keyring
Patch0: 210.patch
# PATCH-FEATURE-OPENSUSE readme.patch -- Add the readme as patch as not included in the tarball.
Patch1: readme.patch
# PATCH-FIX-UPSTREAM pycryptodome.patch tchvatal@suse.com -- use pycryptodome https://github.com/rthalley/dnspython/pull/290
Patch2: pycryptodome.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module ecdsa}
BuildRequires: %{python_module idna}
BuildRequires: %{python_module pycrypto}
BuildRequires: %{python_module pycryptodome}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: netcfg
BuildRequires: python-rpm-macros
Recommends: python-ecdsa
Recommends: python-idna
Recommends: python-pycrypto
Recommends: python-pycryptodome
BuildArch: noarch
%description
@@ -65,6 +67,7 @@ allowed it to be opened under a BSD-style licence.
chmod -x examples/*
%patch0
%patch1
%patch2 -p1
%build
%python_build
@@ -79,8 +82,8 @@ test -f tests/test_resolver.py && rm tests/test_resolver.py
%python_exec setup.py test
%files %{python_files}
%defattr(-,root,root)
%doc ChangeLog LICENSE README.md examples/
%license LICENSE
%doc ChangeLog README.md examples/
%{python_sitelib}/dns/
%{python_sitelib}/dnspython-%{version}-py%{python_version}.egg-info