|
Nick Bebout |
657ddbd |
# Created by pyp2rpm-3.2.2
|
|
Nick Bebout |
657ddbd |
%global pypi_name dns-lexicon
|
|
Nick Bebout |
657ddbd |
|
|
Nick Bebout |
4109e79 |
%if 0%{?rhel} && 0%{?rhel} <= 7
|
|
Nick Bebout |
4109e79 |
%bcond_with python3
|
|
Nick Bebout |
4109e79 |
%else
|
|
Nick Bebout |
4109e79 |
%bcond_without python3
|
|
Nick Bebout |
4109e79 |
%endif
|
|
Nick Bebout |
4109e79 |
|
|
Nick Bebout |
657ddbd |
Name: python-%{pypi_name}
|
|
|
816cfbd |
Version: 2.2.2
|
|
Nick Bebout |
657ddbd |
Release: 1%{?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
|
|
Nick Bebout |
657ddbd |
URL: https://github.com/AnalogJ/lexicon
|
|
Nick Bebout |
657ddbd |
Source0: https://files.pythonhosted.org/packages/source/d/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
|
Nick Bebout |
657ddbd |
BuildArch: noarch
|
|
Nick Bebout |
657ddbd |
|
|
Nick Bebout |
657ddbd |
BuildRequires: python2-devel
|
|
Nick Bebout |
657ddbd |
BuildRequires: python2-setuptools
|
|
Nick Bebout |
657ddbd |
BuildRequires: python2-future
|
|
Nick Bebout |
657ddbd |
BuildRequires: python2-tldextract
|
|
Nick Bebout |
4109e79 |
|
|
Nick Bebout |
4109e79 |
%if %{with python3}
|
|
Nick Bebout |
657ddbd |
BuildRequires: python3-devel
|
|
Nick Bebout |
657ddbd |
BuildRequires: python3-setuptools
|
|
Nick Bebout |
657ddbd |
BuildRequires: python3-future
|
|
Nick Bebout |
657ddbd |
BuildRequires: python3-tldextract
|
|
Nick Bebout |
4109e79 |
%endif
|
|
Nick Bebout |
657ddbd |
|
|
Nick Bebout |
657ddbd |
%description
|
|
Nick Bebout |
657ddbd |
Manipulate DNS records on various DNS providers in
|
|
Nick Bebout |
657ddbd |
a standardized/agnostic way. Introduction Lexicon provides a way to manipulate
|
|
Nick Bebout |
657ddbd |
DNS records on multiple DNS providers in a standardized way. Lexicon has a CLI
|
|
Nick Bebout |
657ddbd |
but it can also be used as a python library.Lexicon was designed to be used
|
|
Nick Bebout |
657ddbd |
in...
|
|
Nick Bebout |
657ddbd |
|
|
Nick Bebout |
657ddbd |
%package -n python2-%{pypi_name}
|
|
Nick Bebout |
657ddbd |
Summary: %{summary}
|
|
Nick Bebout |
657ddbd |
%{?python_provide:%python_provide python2-%{pypi_name}}
|
|
Nick Bebout |
657ddbd |
|
|
Nick Bebout |
657ddbd |
Requires: python2-requests
|
|
Nick Bebout |
657ddbd |
Requires: python2-tldextract
|
|
Nick Bebout |
657ddbd |
Requires: python2-future
|
|
Nick Bebout |
657ddbd |
Requires: python2-setuptools
|
|
Nick Bebout |
657ddbd |
|
|
Nick Bebout |
657ddbd |
%description -n python2-%{pypi_name}
|
|
Nick Bebout |
657ddbd |
Manipulate DNS records on various DNS providers in
|
|
Nick Bebout |
657ddbd |
a standardized/agnostic way. Introduction Lexicon provides a way to manipulate
|
|
Nick Bebout |
657ddbd |
DNS records on multiple DNS providers in a standardized way. Lexicon has a CLI
|
|
Nick Bebout |
657ddbd |
but it can also be used as a python library.Lexicon was designed to be used
|
|
Nick Bebout |
657ddbd |
in...
|
|
Nick Bebout |
657ddbd |
|
|
Nick Bebout |
4109e79 |
%if %{with python3}
|
|
Nick Bebout |
657ddbd |
%package -n python3-%{pypi_name}
|
|
Nick Bebout |
657ddbd |
Summary: %{summary}
|
|
Nick Bebout |
657ddbd |
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
Nick Bebout |
657ddbd |
|
|
Nick Bebout |
657ddbd |
Requires: python3-requests
|
|
Nick Bebout |
657ddbd |
Requires: python3-tldextract
|
|
Nick Bebout |
657ddbd |
Requires: python3-future
|
|
Nick Bebout |
657ddbd |
Requires: python3-setuptools
|
|
Nick Bebout |
657ddbd |
|
|
Nick Bebout |
657ddbd |
%description -n python3-%{pypi_name}
|
|
Nick Bebout |
657ddbd |
Manipulate DNS records on various DNS providers in
|
|
Nick Bebout |
657ddbd |
a standardized/agnostic way. Introduction Lexicon provides a way to manipulate
|
|
Nick Bebout |
657ddbd |
DNS records on multiple DNS providers in a standardized way. Lexicon has a CLI
|
|
Nick Bebout |
657ddbd |
but it can also be used as a python library.Lexicon was designed to be used
|
|
Nick Bebout |
657ddbd |
in...
|
|
Nick Bebout |
4109e79 |
%endif
|
|
Nick Bebout |
657ddbd |
|
|
Nick Bebout |
657ddbd |
%prep
|
|
Nick Bebout |
657ddbd |
%autosetup -n %{pypi_name}-%{version}
|
|
Nick Bebout |
657ddbd |
# Remove bundled egg-info
|
|
Nick Bebout |
657ddbd |
rm -rf %{pypi_name}.egg-info
|
|
Nick Bebout |
657ddbd |
|
|
Nick Bebout |
657ddbd |
%build
|
|
Nick Bebout |
657ddbd |
%py2_build
|
|
Nick Bebout |
4109e79 |
%if %{with python3}
|
|
Nick Bebout |
657ddbd |
%py3_build
|
|
Nick Bebout |
4109e79 |
%endif
|
|
Nick Bebout |
657ddbd |
|
|
Nick Bebout |
657ddbd |
%install
|
|
Nick Bebout |
657ddbd |
# Must do the subpackages' install first because the scripts in /usr/bin are
|
|
Nick Bebout |
657ddbd |
# overwritten with every setup.py install.
|
|
Nick Bebout |
4109e79 |
|
|
|
25f330b |
%py2_install
|
|
|
25f330b |
cp %{buildroot}/%{_bindir}/lexicon %{buildroot}/%{_bindir}/lexicon-%{python2_version}
|
|
|
25f330b |
ln -s %{_bindir}/lexicon-%{python2_version} %{buildroot}/%{_bindir}/lexicon-2
|
|
|
25f330b |
|
|
Nick Bebout |
4109e79 |
%if %{with python3}
|
|
Nick Bebout |
657ddbd |
%py3_install
|
|
Nick Bebout |
657ddbd |
cp %{buildroot}/%{_bindir}/lexicon %{buildroot}/%{_bindir}/lexicon-%{python3_version}
|
|
Nick Bebout |
657ddbd |
ln -s %{_bindir}/lexicon-%{python3_version} %{buildroot}/%{_bindir}/lexicon-3
|
|
Nick Bebout |
4109e79 |
%endif
|
|
Nick Bebout |
657ddbd |
|
|
Nick Bebout |
657ddbd |
%files -n python2-%{pypi_name}
|
|
Nick Bebout |
657ddbd |
%license LICENSE
|
|
Nick Bebout |
657ddbd |
%doc README.md
|
|
|
25f330b |
%if ! %{with python3}
|
|
Nick Bebout |
657ddbd |
%{_bindir}/lexicon
|
|
|
25f330b |
%endif
|
|
Nick Bebout |
657ddbd |
%{_bindir}/lexicon-2
|
|
Nick Bebout |
657ddbd |
%{_bindir}/lexicon-%{python2_version}
|
|
Nick Bebout |
657ddbd |
%{python2_sitelib}/lexicon
|
|
Nick Bebout |
657ddbd |
%{python2_sitelib}/dns_lexicon-%{version}-py?.?.egg-info
|
|
Nick Bebout |
657ddbd |
|
|
Nick Bebout |
4109e79 |
%if %{with python3}
|
|
Nick Bebout |
657ddbd |
%files -n python3-%{pypi_name}
|
|
Nick Bebout |
657ddbd |
%license LICENSE
|
|
Nick Bebout |
657ddbd |
%doc README.md
|
|
|
25f330b |
%{_bindir}/lexicon
|
|
Nick Bebout |
657ddbd |
%{_bindir}/lexicon-3
|
|
Nick Bebout |
657ddbd |
%{_bindir}/lexicon-%{python3_version}
|
|
Nick Bebout |
657ddbd |
%{python3_sitelib}/lexicon
|
|
Nick Bebout |
657ddbd |
%{python3_sitelib}/dns_lexicon-%{version}-py?.?.egg-info
|
|
Nick Bebout |
4109e79 |
%endif
|
|
Nick Bebout |
657ddbd |
|
|
Nick Bebout |
657ddbd |
%changelog
|
|
|
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.
|