|
|
f575ec |
%global with_python3 0
|
|
|
f575ec |
|
|
|
f575ec |
Name: python-dns
|
|
|
f575ec |
Version: 1.15.0
|
|
|
f575ec |
Release: 10%{?dist}
|
|
|
f575ec |
Summary: DNS toolkit for Python
|
|
|
f575ec |
|
|
|
f575ec |
Group: Development/Languages
|
|
|
f575ec |
License: MIT
|
|
|
f575ec |
URL: http://www.dnspython.org/
|
|
|
f575ec |
|
|
|
f575ec |
Source0: http://www.dnspython.org/kits/%{version}/dnspython-%{version}.tar.gz
|
|
|
f575ec |
|
|
|
f575ec |
BuildArch: noarch
|
|
|
f575ec |
Patch0: test_fails_on_missing_file.patch
|
|
|
f575ec |
|
|
|
f575ec |
Provides: python2-dns = %{version}-%{release}
|
|
|
f575ec |
BuildRequires: python2-devel
|
|
|
f575ec |
BuildRequires: python2-setuptools
|
|
|
f575ec |
|
|
|
f575ec |
%if 0%{?with_python3}
|
|
|
f575ec |
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
f575ec |
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
f575ec |
%endif
|
|
|
f575ec |
|
|
|
f575ec |
%description
|
|
|
f575ec |
dnspython is a DNS toolkit for Python. It supports almost all record
|
|
|
f575ec |
types. It can be used for queries, zone transfers, and dynamic
|
|
|
f575ec |
updates. It supports TSIG authenticated messages and EDNS0.
|
|
|
f575ec |
|
|
|
f575ec |
dnspython provides both high and low level access to DNS. The high
|
|
|
f575ec |
level classes perform queries for data of a given name, type, and
|
|
|
f575ec |
class, and return an answer set. The low level classes allow direct
|
|
|
f575ec |
manipulation of DNS zones, messages, names, and records.
|
|
|
f575ec |
|
|
|
f575ec |
%package -n python2-dns
|
|
|
f575ec |
Summary: DNS toolkit for Python 2
|
|
|
f575ec |
Group: Development/Languages
|
|
|
f575ec |
%{?python_provide:%python_provide python2-dns}
|
|
|
f575ec |
|
|
|
f575ec |
%description -n python2-dns
|
|
|
f575ec |
dnspython is a DNS toolkit for Python. It supports almost all record
|
|
|
f575ec |
types. It can be used for queries, zone transfers, and dynamic
|
|
|
f575ec |
updates. It supports TSIG authenticated messages and EDNS0.
|
|
|
f575ec |
|
|
|
f575ec |
dnspython provides both high and low level access to DNS. The high
|
|
|
f575ec |
level classes perform queries for data of a given name, type, and
|
|
|
f575ec |
class, and return an answer set. The low level classes allow direct
|
|
|
f575ec |
manipulation of DNS zones, messages, names, and records.
|
|
|
f575ec |
|
|
|
f575ec |
%if 0%{?with_python3}
|
|
|
f575ec |
%package -n python%{python3_pkgversion}-dns
|
|
|
f575ec |
Summary: DNS toolkit for Python 3
|
|
|
f575ec |
Group: Development/Languages
|
|
|
f575ec |
%{?python_provide:%python_provide python%{python3_pkgversion}-dns}
|
|
|
f575ec |
|
|
|
f575ec |
%description -n python%{python3_pkgversion}-dns
|
|
|
f575ec |
dnspython3 is a DNS toolkit for Python 3. It supports almost all
|
|
|
f575ec |
record types. It can be used for queries, zone transfers, and dynamic
|
|
|
f575ec |
updates. It supports TSIG authenticated messages and EDNS0.
|
|
|
f575ec |
|
|
|
f575ec |
dnspython3 provides both high and low level access to DNS. The high
|
|
|
f575ec |
level classes perform queries for data of a given name, type, and
|
|
|
f575ec |
class, and return an answer set. The low level classes allow direct
|
|
|
f575ec |
manipulation of DNS zones, messages, names, and records.
|
|
|
f575ec |
%endif
|
|
|
f575ec |
|
|
|
f575ec |
%prep
|
|
|
f575ec |
%setup -q -n dnspython-%{version}
|
|
|
f575ec |
%patch0 -p1
|
|
|
f575ec |
|
|
|
f575ec |
# strip exec permissions so that we don't pick up dependencies from docs
|
|
|
f575ec |
find examples -type f | xargs chmod a-x
|
|
|
f575ec |
|
|
|
f575ec |
%build
|
|
|
f575ec |
%py2_build
|
|
|
f575ec |
|
|
|
f575ec |
%if 0%{?with_python3}
|
|
|
f575ec |
%py3_build
|
|
|
f575ec |
%endif
|
|
|
f575ec |
|
|
|
f575ec |
%install
|
|
|
f575ec |
%py2_install
|
|
|
f575ec |
|
|
|
f575ec |
%if 0%{?with_python3}
|
|
|
f575ec |
%py3_install
|
|
|
f575ec |
%endif
|
|
|
f575ec |
|
|
|
f575ec |
%check
|
|
|
f575ec |
%{__python2} setup.py test
|
|
|
f575ec |
|
|
|
f575ec |
%if 0%{?with_python3}
|
|
|
f575ec |
%{__python3} setup.py test
|
|
|
f575ec |
%endif
|
|
|
f575ec |
|
|
|
f575ec |
%files -n python2-dns
|
|
|
f575ec |
%defattr(-,root,root,-)
|
|
|
f575ec |
# Add README.* when it is included with the source (commit a906279)
|
|
|
f575ec |
%doc {ChangeLog,LICENSE,examples}
|
|
|
f575ec |
%{python2_sitelib}/*egg-info
|
|
|
f575ec |
%{python2_sitelib}/dns
|
|
|
f575ec |
|
|
|
f575ec |
%if 0%{?with_python3}
|
|
|
f575ec |
%files -n python%{python3_pkgversion}-dns
|
|
|
f575ec |
%defattr(-,root,root,-)
|
|
|
f575ec |
# Add README.* when it is included with the source (commit a906279)
|
|
|
f575ec |
%doc {ChangeLog,LICENSE,examples}
|
|
|
f575ec |
%{python3_sitelib}/*egg-info
|
|
|
f575ec |
%{python3_sitelib}/dns
|
|
|
f575ec |
%endif
|
|
|
f575ec |
|
|
|
f575ec |
%changelog
|
|
|
f575ec |
* Thu Apr 25 2019 Tomas Orsava <torsava@redhat.com> - 1.15.0-10
|
|
|
f575ec |
- Bumping due to problems with modular RPM upgrade path
|
|
|
f575ec |
- Resolves: rhbz#1695587
|
|
|
f575ec |
|
|
|
f575ec |
* Thu Apr 25 2019 Tomas Orsava <torsava@redhat.com> - 1.15.0-9
|
|
|
f575ec |
- Bumping due to problems with modular RPM upgrade path
|
|
|
f575ec |
- Resolves: rhbz#1695587
|
|
|
f575ec |
|
|
|
f575ec |
* Wed Jul 18 2018 LumÃr Balhar <lbalhar@redhat.com> - 1.15.0-8
|
|
|
f575ec |
- First version for python27 module
|