|
|
6e7d48d |
|
|
|
6e7d48d |
%global forgeurl https://github.com/AnalogJ/lexicon
|
|
|
f0aef2d |
Version: 3.5.3
|
|
|
6e7d48d |
%forgemeta
|
|
|
6e7d48d |
|
|
Nick Bebout |
657ddbd |
%global pypi_name dns-lexicon
|
|
Nick Bebout |
657ddbd |
|
|
|
7172684 |
%if 0%{?rhel} && 0%{?rhel} == 7
|
|
|
a5e4545 |
%global rhel7 1
|
|
|
7172684 |
%endif
|
|
|
7172684 |
|
|
|
c41af87 |
%if 0%{?rhel} >= 8
|
|
|
c41af87 |
# EPEL8 is currently missing dependencies used by the extras metapackages
|
|
|
c41af87 |
%bcond_with extras
|
|
|
c41af87 |
%else
|
|
|
c41af87 |
%bcond_without extras
|
|
|
c41af87 |
%endif
|
|
|
c41af87 |
|
|
Nick Bebout |
657ddbd |
Name: python-%{pypi_name}
|
|
|
81286e0 |
Release: 2%{?dist}
|
|
Nick Bebout |
657ddbd |
Summary: Manipulate DNS records on various DNS providers in a standardized/agnostic way
|
|
Nick Bebout |
657ddbd |
|
|
Nick Bebout |
657ddbd |
License: MIT
|
|
|
6e7d48d |
URL: %{forgeurl}
|
|
|
6e7d48d |
# pypi releases don't contain necessary data to run the tests
|
|
|
6e7d48d |
Source0: %{forgesource}
|
|
Nick Bebout |
657ddbd |
BuildArch: noarch
|
|
|
2366c6d |
|
|
|
929d07f |
Patch0: 0000-remove-shebang.patch
|
|
|
2459b20 |
|
|
|
2459b20 |
BuildRequires: pyproject-rpm-macros
|
|
|
2459b20 |
BuildRequires: poetry >= 0.12
|
|
|
2459b20 |
BuildRequires: python3-pyparsing >= 2.0.2
|
|
|
2459b20 |
BuildRequires: python3-six
|
|
|
2459b20 |
|
|
|
6e7d48d |
# required to run the test suite
|
|
|
6e7d48d |
BuildRequires: python3-mock
|
|
|
2459b20 |
BuildRequires: python3-pytest
|
|
|
6e7d48d |
BuildRequires: python3-pytest-vcr
|
|
|
2740ab1 |
|
|
|
a5e4545 |
# Extras requirements
|
|
|
a5e4545 |
# {{{
|
|
|
c41af87 |
%if %{with extras}
|
|
|
a5e4545 |
BuildRequires: python3-boto3
|
|
|
c41af87 |
%endif
|
|
|
a5e4545 |
# }}}
|
|
|
a5e4545 |
|
|
|
2459b20 |
|
|
Nick Bebout |
657ddbd |
%description
|
|
|
4d33d4c |
Lexicon provides a way to manipulate DNS records on multiple DNS providers in a
|
|
|
4d33d4c |
standardized way. Lexicon has a CLI but it can also be used as a python
|
|
|
4d33d4c |
library.
|
|
Nick Bebout |
657ddbd |
|
|
Nick Bebout |
657ddbd |
%package -n python3-%{pypi_name}
|
|
Nick Bebout |
657ddbd |
Summary: %{summary}
|
|
Nick Bebout |
657ddbd |
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
2366c6d |
|
|
|
b535777 |
Requires: python3-cryptography
|
|
Nick Bebout |
657ddbd |
Requires: python3-future
|
|
|
b535777 |
Requires: python3-requests
|
|
Nick Bebout |
657ddbd |
Requires: python3-setuptools
|
|
|
929d07f |
Requires: python3-pyOpenSSL
|
|
|
b535777 |
Requires: python3-tldextract
|
|
|
2740ab1 |
Requires: python3-pyyaml
|
|
|
2740ab1 |
|
|
|
407a789 |
# Both packages install a Python module named lexicon
|
|
|
407a789 |
# TODO: Remove this once resolved upstream (see upstream #222)
|
|
|
407a789 |
Conflicts: python3-lexicon
|
|
|
407a789 |
|
|
|
2459b20 |
# These "extras" were previously present in upstream lexicon but are not there
|
|
|
2459b20 |
# anymore.
|
|
|
a5e4545 |
# {{{
|
|
|
c41af87 |
%if %{with extras}
|
|
|
2459b20 |
Obsoletes: python3-%{pypi_name}+easyname < 3.4
|
|
|
2459b20 |
Provides: python3dist(%{pypi_name}[easyname]) = %{version}
|
|
|
2459b20 |
Provides: python%{python3_version}dist(%{pypi_name}[easyname]) = %{version}
|
|
|
a5e4545 |
|
|
|
2459b20 |
Obsoletes: python3-%{pypi_name}+gratisdns < 3.4
|
|
|
2459b20 |
Provides: python3dist(%{pypi_name}[gratisdns]) = %{version}
|
|
|
2459b20 |
Provides: python%{python3_version}dist(%{pypi_name}[gratisdns]) = %{version}
|
|
|
a5e4545 |
|
|
|
2459b20 |
Obsoletes: python3-%{pypi_name}+henet < 3.4
|
|
|
2459b20 |
Provides: python3dist(%{pypi_name}[henet]) = %{version}
|
|
|
2459b20 |
Provides: python%{python3_version}dist(%{pypi_name}[henet]) = %{version}
|
|
|
a5e4545 |
|
|
|
2459b20 |
Obsoletes: python3-%{pypi_name}+hetzner < 3.4
|
|
|
2459b20 |
Provides: python3dist(%{pypi_name}[hetzner]) = %{version}
|
|
|
2459b20 |
Provides: python%{python3_version}dist(%{pypi_name}[hetzner]) = %{version}
|
|
|
2459b20 |
%endif
|
|
|
2459b20 |
# }}}
|
|
|
a5e4545 |
|
|
|
2459b20 |
%description -n python3-%{pypi_name}
|
|
|
2459b20 |
Lexicon provides a way to manipulate DNS records on multiple DNS providers in a
|
|
|
2459b20 |
standardized way. Lexicon has a CLI but it can also be used as a python
|
|
|
2459b20 |
library.
|
|
|
a5e4545 |
|
|
|
2459b20 |
This is the Python 3 version of the package.
|
|
|
a5e4545 |
|
|
|
a5e4545 |
|
|
|
a5e4545 |
%package -n python3-%{pypi_name}+plesk
|
|
|
a5e4545 |
Summary: Meta-package for python3-%{pypi_name} and Plesk provider
|
|
|
a5e4545 |
%{?python_provide:%python_provide python3-%{pypi_name}+plesk}
|
|
|
a5e4545 |
|
|
|
a5e4545 |
Requires: python3-%{pypi_name} = %{version}-%{release}
|
|
|
a5e4545 |
Requires: python3-xmltodict
|
|
|
a5e4545 |
|
|
|
a5e4545 |
%description -n python3-%{pypi_name}+plesk
|
|
|
a5e4545 |
This package installs no files. It requires python3-%{pypi_name} and all
|
|
|
a5e4545 |
dependencies necessary to use the Plesk provider.
|
|
|
a5e4545 |
|
|
|
a5e4545 |
|
|
|
a5e4545 |
%package -n python3-%{pypi_name}+route53
|
|
|
a5e4545 |
Summary: Meta-package for python3-%{pypi_name} and Route 53 provider
|
|
|
a5e4545 |
%{?python_provide:%python_provide python3-%{pypi_name}+route53}
|
|
|
a5e4545 |
|
|
|
a5e4545 |
Requires: python3-%{pypi_name} = %{version}-%{release}
|
|
|
a5e4545 |
Requires: python3-boto3
|
|
|
a5e4545 |
|
|
|
a5e4545 |
%description -n python3-%{pypi_name}+route53
|
|
|
a5e4545 |
This package installs no files. It requires python3-%{pypi_name} and all
|
|
|
a5e4545 |
dependencies necessary to use the Route 53 provider.
|
|
|
a5e4545 |
|
|
Nick Bebout |
657ddbd |
%prep
|
|
|
2459b20 |
%autosetup -n lexicon-%{version} -p1
|
|
Nick Bebout |
657ddbd |
# Remove bundled egg-info
|
|
Nick Bebout |
657ddbd |
rm -rf %{pypi_name}.egg-info
|
|
|
2459b20 |
rm setup.py
|
|
|
2459b20 |
|
|
|
2459b20 |
%generate_buildrequires
|
|
|
2459b20 |
%pyproject_buildrequires -r -t -e light -x route53,plesk
|
|
|
2459b20 |
|
|
Nick Bebout |
657ddbd |
|
|
Nick Bebout |
657ddbd |
%build
|
|
|
2459b20 |
%pyproject_wheel
|
|
Nick Bebout |
657ddbd |
|
|
|
6e7d48d |
%check
|
|
|
6e7d48d |
# AutoProviderTests: unknown failure - exclude to get suite passing for now
|
|
|
2459b20 |
# GoDaddyProviderTests: unknown failure - just get the suite passing for now
|
|
|
2459b20 |
# TypeError: __init__() got an unexpected keyword argument 'allowed_methods'
|
|
|
2459b20 |
#
|
|
|
6e7d48d |
# lexicon providers which do not work in Fedora due to missing dependencies:
|
|
|
6e7d48d |
# - TransipProviderTests
|
|
|
6e7d48d |
# - SoftLayerProviderTests
|
|
|
6e7d48d |
# - NamecheapProviderTests
|
|
|
6e7d48d |
# - NamecheapManagedProviderTests
|
|
|
6e7d48d |
# - GransyProviderTests
|
|
|
6e7d48d |
# - LocalzoneProviderTests
|
|
|
2459b20 |
TEST_SELECTOR="not AutoProviderTests and not GoDaddyProviderTests and not TransipProviderTests and not SoftLayerProviderTests and not NamecheapProviderTests and not NamecheapManagedProviderTests and not GransyProviderTests and not LocalzoneProviderTests"
|
|
|
6e7d48d |
# EPEL 8 does not provide the python3-pytest-vcr package
|
|
|
2459b20 |
%if 0%{?fedora}
|
|
|
2459b20 |
# The %%tox macro lacks features so we need to use pytest directly:
|
|
|
2459b20 |
# Miro Hrončok, 2020-09-11:
|
|
|
2459b20 |
# > I am afraid the %%tox macro can only work with "static" deps declaration,
|
|
|
2459b20 |
# > not with arbitrary installers invoked as commands, sorry about that.
|
|
|
6e7d48d |
py.test-3 -v -k "${TEST_SELECTOR}" lexicon
|
|
|
6e7d48d |
%endif
|
|
|
6e7d48d |
|
|
Nick Bebout |
657ddbd |
%install
|
|
|
2459b20 |
%pyproject_install
|
|
|
4d33d4c |
install -pm 0755 %{buildroot}/%{_bindir}/lexicon %{buildroot}/%{_bindir}/lexicon-%{python3_version}
|
|
|
2459b20 |
cd %{buildroot}/%{_bindir}
|
|
|
2459b20 |
ln -s lexicon-%{python3_version} lexicon-3
|
|
|
2459b20 |
rm -rf %{buildroot}%{python3_sitelib}/lexicon/tests
|
|
|
2459b20 |
|
|
Nick Bebout |
657ddbd |
|
|
Nick Bebout |
657ddbd |
%files -n python3-%{pypi_name}
|
|
Nick Bebout |
657ddbd |
%license LICENSE
|
|
|
2459b20 |
%doc README.rst
|
|
|
25f330b |
%{_bindir}/lexicon
|
|
Nick Bebout |
657ddbd |
%{_bindir}/lexicon-3
|
|
Nick Bebout |
657ddbd |
%{_bindir}/lexicon-%{python3_version}
|
|
Nick Bebout |
657ddbd |
%{python3_sitelib}/lexicon
|
|
|
2459b20 |
%{python3_sitelib}/dns_lexicon-%{version}.dist-info
|
|
|
a5e4545 |
|
|
|
a5e4545 |
# Extras meta-packages
|
|
|
a5e4545 |
# {{{
|
|
|
c41af87 |
%if %{with extras}
|
|
|
a5e4545 |
%files -n python3-%{pypi_name}+plesk
|
|
|
2459b20 |
%{?python_extras_subpkg:%ghost %{python3_sitelib}/dns_lexicon-%{version}.dist-info}
|
|
|
2c1eb2c |
|
|
|
a5e4545 |
%files -n python3-%{pypi_name}+route53
|
|
|
2459b20 |
%{?python_extras_subpkg:%ghost %{python3_sitelib}/dns_lexicon-%{version}.dist-info}
|
|
|
2c1eb2c |
|
|
|
c41af87 |
%endif
|
|
|
a5e4545 |
# }}}
|
|
Nick Bebout |
657ddbd |
|
|
Nick Bebout |
657ddbd |
%changelog
|
|
|
81286e0 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.3-2
|
|
|
81286e0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
81286e0 |
|
|
|
f0aef2d |
* Tue Jan 5 2021 Felix Schwarz <fschwarz@fedoraproject.org> - 3.5.3-1
|
|
|
f0aef2d |
- update to 3.5.3
|
|
|
f0aef2d |
|
|
|
3041462 |
* Tue Nov 24 2020 Felix Schwarz <fschwarz@fedoraproject.org> - 3.5.2-1
|
|
|
3041462 |
- update to 3.5.2
|
|
|
3041462 |
|
|
|
2459b20 |
* Mon Nov 16 2020 Felix Schwarz <fschwarz@fedoraproject.org> - 3.5.1-1
|
|
|
2459b20 |
- update to 3.5.1
|
|
|
2459b20 |
|
|
|
b444fb7 |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.17-5
|
|
|
b444fb7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
b444fb7 |
|
|
|
2c1eb2c |
* Fri Jul 10 2020 Miro Hrončok <mhroncok@redhat.com> - 3.3.17-4
|
|
|
2c1eb2c |
- Add metadata for Python extras subpackages
|
|
|
2c1eb2c |
|
|
|
99a200b |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 3.3.17-3
|
|
|
99a200b |
- Rebuilt for Python 3.9
|
|
|
99a200b |
|
|
|
2f7b79a |
* Wed Mar 04 2020 Felix Schwarz <fschwarz@fedoraproject.org> - 3.3.17-2
|
|
|
2f7b79a |
- add missing sources
|
|
|
2f7b79a |
|
|
|
721e6c7 |
* Tue Mar 03 2020 Felix Schwarz <fschwarz@fedoraproject.org> - 3.3.17-1
|
|
|
721e6c7 |
- Update to 3.3.17 (#1764339)
|
|
|
721e6c7 |
|
|
|
4084220 |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.4-3
|
|
|
4084220 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
4084220 |
|
|
|
bdbe509 |
* Tue Oct 08 2019 Eli Young <elyscape@gmail.com> - 3.3.4-2
|
|
|
bdbe509 |
- Rebuild due to Koji issues
|
|
|
bdbe509 |
|
|
|
c388df9 |
* Mon Oct 07 2019 Eli Young <elyscape@gmail.com> - 3.3.4-1
|
|
|
c388df9 |
- Update to 3.3.4 (#1725208)
|
|
|
c41af87 |
- Support EPEL8 builds
|
|
|
c388df9 |
|
|
|
7121828 |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 3.2.8-4
|
|
|
7121828 |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
7121828 |
|
|
|
a08bace |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 3.2.8-3
|
|
|
a08bace |
- Rebuilt for Python 3.8
|
|
|
a08bace |
|
|
|
1493905 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.8-2
|
|
|
1493905 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
1493905 |
|
|
|
7ce3bb9 |
* Thu Jun 27 2019 Eli Young <elyscape@gmail.com> - 3.2.8-1
|
|
|
7ce3bb9 |
- Update to 3.2.8 (#1722190)
|
|
|
7ce3bb9 |
|
|
|
d3c2798 |
* Tue May 28 2019 Eli Young <elyscape@gmail.com> - 3.2.6-1
|
|
|
d3c2798 |
- Update to 3.2.6 (#1685778)
|
|
|
d3c2798 |
|
|
|
f15bc48 |
* Fri Feb 15 2019 Eli Young <elyscape@gmail.com> - 3.1.5-1
|
|
|
f15bc48 |
- Update to 3.1.5 (#1671162)
|
|
|
a5e4545 |
- Add meta-subpackages for specific providers
|
|
|
f15bc48 |
|
|
|
3089b76 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.6-2
|
|
|
3089b76 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
3089b76 |
|
|
|
2ac3612 |
* Fri Dec 14 2018 Eli Young <elyscape@gmail.com> - 3.0.6-1
|
|
|
2ac3612 |
- Update to 3.0.6
|
|
|
407a789 |
- Declare conflict with python-lexicon
|
|
|
125b3d7 |
- Remove Python 2 package in Fedora 30+
|
|
|
2ac3612 |
|
|
|
2740ab1 |
* Wed Nov 14 2018 Eli Young <elyscape@gmail.com> - 3.0.2-2
|
|
|
2740ab1 |
- Fix dependencies on Fedora 28
|
|
|
2740ab1 |
|
|
|
929d07f |
* Wed Nov 14 2018 Eli Young <elyscape@gmail.com> - 3.0.2-1
|
|
|
929d07f |
- Update to 3.0.2
|
|
|
929d07f |
|
|
|
1ce3f1b |
* Mon Oct 08 2018 Eli Young <elyscape@gmail.com> - 2.7.9-1
|
|
|
1ce3f1b |
- Update to 2.7.9 (#1637142)
|
|
|
1ce3f1b |
|
|
|
b535777 |
* Mon Aug 27 2018 Eli Young <elyscape@gmail.com> - 2.7.0-2
|
|
|
b535777 |
- Add dependency on python-cryptography (#1622418)
|
|
|
b535777 |
|
|
Nick Bebout |
4c1fcbd |
* Mon Jul 23 2018 Nick Bebout <nb@fedoraproject.org> - 2.7.0-1
|
|
Nick Bebout |
4c1fcbd |
- Update to 2.7.0
|
|
Nick Bebout |
4c1fcbd |
|
|
|
0a5ff54 |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.5-2
|
|
|
0a5ff54 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
0a5ff54 |
|
|
|
6a8dd08 |
* Tue Jul 10 2018 Eli Young <elyscape@gmail.com> - 2.4.5-1
|
|
|
6a8dd08 |
- Update to 2.4.5 (#1599479)
|
|
|
6a8dd08 |
|
|
|
a4669ac |
* Mon Jul 02 2018 Miro Hrončok <mhroncok@redhat.com> - 2.4.4-3
|
|
|
a4669ac |
- Rebuilt for Python 3.7
|
|
|
a4669ac |
|
|
|
2366c6d |
* Tue Jun 26 2018 Eli Young <elyscape@gmail.com> - 2.4.4-2
|
|
|
2366c6d |
- Remove unnecessary shebang
|
|
|
2366c6d |
|
|
|
c265004 |
* Tue Jun 26 2018 Eli Young <elyscape@gmail.com> - 2.4.4-1
|
|
|
c265004 |
- Update to 2.4.4 (#1594777)
|
|
|
c265004 |
|
|
|
341f422 |
* Tue Jun 19 2018 Eli Young <elyscape@gmail.com> - 2.4.3-1
|
|
|
341f422 |
- Update to 2.4.3 (#1592158)
|
|
|
341f422 |
|
|
|
b7cefb2 |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.4.0-2
|
|
|
b7cefb2 |
- Rebuilt for Python 3.7
|
|
|
b7cefb2 |
|
|
|
890d6e9 |
* Mon Jun 11 2018 Eli Young <elyscape@gmail.com> - 2.4.0-1
|
|
|
890d6e9 |
- Update to 2.4.0 (#1589596)
|
|
|
890d6e9 |
|
|
|
40411b5 |
* Tue May 29 2018 Eli Young <elyscape@gmail.com> - 2.3.0-1
|
|
|
40411b5 |
- Update to 2.3.0 (#1582799)
|
|
|
40411b5 |
|
|
|
59999db |
* Mon May 07 2018 Eli Young <elyscape@gmail.com> - 2.2.3-1
|
|
|
59999db |
- Update to 2.2.3 (#1575598)
|
|
|
59999db |
|
|
|
816cfbd |
* Thu May 03 2018 Eli Young <elyscape@gmail.com> - 2.2.2-1
|
|
|
816cfbd |
- Update to 2.2.2 (#1574265)
|
|
|
816cfbd |
|
|
|
97227dd |
* Sat Mar 24 2018 Eli Young <elyscape@gmail.com> - 2.2.1-1
|
|
|
97227dd |
- Update to 2.2.1
|
|
|
25f330b |
- Use Python 3 by default when available
|
|
|
97227dd |
|
|
Nick Bebout |
657ddbd |
* Mon Feb 19 2018 Nick Bebout <nb@fedoraproject.org> - 2.1.19-1
|
|
Nick Bebout |
657ddbd |
- Initial package.
|