2016-06-21 12:28:35 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-dns-lexicon
|
|
|
|
|
#
|
2019-01-30 08:22:46 +00:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2016-06-21 12:28:35 +00:00
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
2018-11-25 13:31:45 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-06-21 12:28:35 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# See also http://en.opensuse.org/openSUSE:Specfile_guidelines
|
2017-12-13 23:14:26 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2016-06-21 12:28:35 +00:00
|
|
|
Name: python-dns-lexicon
|
2019-03-08 13:53:00 +00:00
|
|
|
Version: 3.1.6
|
2016-06-21 12:28:35 +00:00
|
|
|
Release: 0
|
2018-04-16 16:04:07 +00:00
|
|
|
Summary: DNS record manipulation utility
|
2016-06-21 12:28:35 +00:00
|
|
|
License: MIT
|
|
|
|
|
Group: Productivity/Networking/DNS/Utilities
|
2018-04-15 15:24:48 +00:00
|
|
|
URL: https://github.com/AnalogJ/lexicon
|
2018-12-19 13:35:35 +00:00
|
|
|
Source0: https://github.com/AnalogJ/lexicon/archive/v%{version}.tar.gz#/lexicon-%{version}.tar.gz
|
2019-03-08 13:53:00 +00:00
|
|
|
Patch0: ioerror.patch
|
2018-11-25 13:31:45 +00:00
|
|
|
BuildRequires: %{python_module PyNamecheap}
|
|
|
|
|
BuildRequires: %{python_module PyYAML}
|
|
|
|
|
BuildRequires: %{python_module beautifulsoup4}
|
2018-04-15 15:24:48 +00:00
|
|
|
BuildRequires: %{python_module boto3}
|
2018-11-25 13:31:45 +00:00
|
|
|
BuildRequires: %{python_module cryptography}
|
2018-04-15 15:24:48 +00:00
|
|
|
BuildRequires: %{python_module future}
|
2018-11-25 13:31:45 +00:00
|
|
|
BuildRequires: %{python_module localzone}
|
|
|
|
|
BuildRequires: %{python_module mock >= 2.0.0}
|
|
|
|
|
BuildRequires: %{python_module pytest >= 3.8.0}
|
2018-04-15 15:24:48 +00:00
|
|
|
BuildRequires: %{python_module requests}
|
2017-12-13 23:14:26 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2018-04-15 15:24:48 +00:00
|
|
|
BuildRequires: %{python_module softlayer}
|
|
|
|
|
BuildRequires: %{python_module tldextract}
|
|
|
|
|
BuildRequires: %{python_module transip >= 0.3.0}
|
2018-11-25 13:31:45 +00:00
|
|
|
BuildRequires: %{python_module vcrpy >= 1.13.0}
|
|
|
|
|
BuildRequires: %{python_module xmltodict}
|
|
|
|
|
BuildRequires: %{python_module zeep}
|
2016-06-21 12:28:35 +00:00
|
|
|
BuildRequires: fdupes
|
2017-12-13 23:14:26 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2018-11-25 13:31:45 +00:00
|
|
|
Requires: python-PyNamecheap
|
|
|
|
|
Requires: python-PyYAML
|
|
|
|
|
Requires: python-beautifulsoup4
|
2018-04-15 15:24:48 +00:00
|
|
|
Requires: python-boto3
|
2018-11-25 13:31:45 +00:00
|
|
|
Requires: python-cryptography
|
2018-04-15 15:24:48 +00:00
|
|
|
Requires: python-future
|
2018-12-24 08:59:02 +00:00
|
|
|
Requires: python-localzone
|
2016-06-21 12:28:35 +00:00
|
|
|
Requires: python-requests
|
2016-08-07 12:03:36 +00:00
|
|
|
Requires: python-setuptools
|
2018-04-15 15:24:48 +00:00
|
|
|
Requires: python-softlayer
|
2016-06-21 12:28:35 +00:00
|
|
|
Requires: python-tldextract
|
2018-04-15 15:24:48 +00:00
|
|
|
Requires: python-transip >= 0.3.0
|
|
|
|
|
Requires: python-vcrpy
|
2018-11-25 13:31:45 +00:00
|
|
|
Requires: python-xmltodict
|
|
|
|
|
Requires: python-zeep
|
2018-04-23 13:14:43 +00:00
|
|
|
# Completely different pkg but same namespace
|
|
|
|
|
Conflicts: python-lexicon
|
2018-04-15 15:24:48 +00:00
|
|
|
BuildArch: noarch
|
2017-12-13 23:14:26 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
|
2016-06-21 12:28:35 +00:00
|
|
|
%description
|
|
|
|
|
Lexicon provides a way to manipulate DNS records on multiple DNS providers
|
2018-04-16 16:04:07 +00:00
|
|
|
in a standardized way. Lexicon has a CLI, but it can also be used as a
|
|
|
|
|
Python library.
|
2016-06-21 12:28:35 +00:00
|
|
|
|
|
|
|
|
Lexicon was designed to be used in automation, specifically letsencrypt.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n lexicon-%{version}
|
2019-03-08 13:53:00 +00:00
|
|
|
%patch0 -p1
|
2018-11-25 13:31:45 +00:00
|
|
|
# remove localzone test as this test requires an internet connection
|
2019-03-08 13:53:00 +00:00
|
|
|
rm lexicon/tests/providers/test_localzone.py
|
2016-06-21 12:28:35 +00:00
|
|
|
|
|
|
|
|
# rpmlint
|
2018-04-16 16:04:07 +00:00
|
|
|
find . -type f -name ".gitignore" -delete
|
2016-06-21 12:28:35 +00:00
|
|
|
|
|
|
|
|
%build
|
2017-12-13 23:14:26 +00:00
|
|
|
%python_build
|
2016-06-21 12:28:35 +00:00
|
|
|
|
|
|
|
|
# rpmlint
|
2018-04-16 16:04:07 +00:00
|
|
|
find . -type f -name ".buildinfo" -delete
|
2016-06-21 12:28:35 +00:00
|
|
|
|
|
|
|
|
%install
|
2017-12-13 23:14:26 +00:00
|
|
|
%python_install
|
2019-03-08 13:53:00 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2018-04-15 15:24:48 +00:00
|
|
|
|
|
|
|
|
%check
|
2019-03-08 13:53:00 +00:00
|
|
|
%pytest lexicon/tests
|
2016-06-21 12:28:35 +00:00
|
|
|
|
2017-12-13 23:14:26 +00:00
|
|
|
%files %{python_files}
|
2019-03-08 13:53:00 +00:00
|
|
|
%{python_sitelib}
|
2018-04-15 15:24:48 +00:00
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.md
|
2017-12-13 23:14:26 +00:00
|
|
|
%python3_only %{_bindir}/lexicon
|
2016-06-21 12:28:35 +00:00
|
|
|
|
|
|
|
|
%changelog
|