15
0

- Update to 3.1.6:

* Various changes, no upstream changelog
- Add patch to fix network detection:
  * ioerror.patch
- Drop merged patch:
  * multiple-fixes-to-test_hetzner.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dns-lexicon?expand=0&rev=17
This commit is contained in:
Tomáš Chvátal
2019-03-08 13:53:00 +00:00
committed by Git OBS Bridge
parent 8a69c1108e
commit 514b5fa289
6 changed files with 43 additions and 365 deletions

View File

@@ -19,16 +19,14 @@
# See also http://en.opensuse.org/openSUSE:Specfile_guidelines
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-dns-lexicon
Version: 3.0.7
Version: 3.1.6
Release: 0
Summary: DNS record manipulation utility
License: MIT
Group: Productivity/Networking/DNS/Utilities
URL: https://github.com/AnalogJ/lexicon
Source0: https://github.com/AnalogJ/lexicon/archive/v%{version}.tar.gz#/lexicon-%{version}.tar.gz
# PATCH-FIX-UPSTREAM Collected from upstream to master as of 66daddf
# Fixes for upstream bugs gh#AnalogJ/lexicon#332 and gh#AnalogJ/lexicon#333
Patch0: multiple-fixes-to-test_hetzner.patch
Patch0: ioerror.patch
BuildRequires: %{python_module PyNamecheap}
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module beautifulsoup4}
@@ -77,9 +75,9 @@ Lexicon was designed to be used in automation, specifically letsencrypt.
%prep
%setup -q -n lexicon-%{version}
%autopatch -p1
%patch0 -p1
# remove localzone test as this test requires an internet connection
rm -f tests/providers/test_localzone.py
rm lexicon/tests/providers/test_localzone.py
# rpmlint
find . -type f -name ".gitignore" -delete
@@ -92,15 +90,13 @@ find . -type f -name ".buildinfo" -delete
%install
%python_install
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# Python2 incompatible, only py3 syntax in tests
py.test3 tests
%pytest lexicon/tests
%files %{python_files}
%{python_sitelib}/lexicon
%{python_sitelib}/dns_lexicon-*
%{python_sitelib}
%license LICENSE
%doc README.md
%python3_only %{_bindir}/lexicon