2019-12-14 21:12:37 +08:00
|
|
|
%global _description \
|
|
|
|
|
dnspython is a DNS toolkit for Python. It supports \
|
|
|
|
|
almost all record types. It can be used for queries, \
|
|
|
|
|
zone transfers, and dynamic updates. It supports TSIG \
|
|
|
|
|
authenticated messages and EDNS0.\
|
|
|
|
|
dnspython provides both high and low level access to DNS. \
|
|
|
|
|
The high level classes perform queries for data of a given \
|
|
|
|
|
name, type, and class, and return an answer set. The low \
|
|
|
|
|
level classes allow direct manipulation of DNS zones, \
|
|
|
|
|
messages, names, and records.
|
|
|
|
|
|
|
|
|
|
%global sum DNS toolkit for Python
|
|
|
|
|
|
|
|
|
|
Name: python-dns
|
|
|
|
|
Summary: %{sum}
|
2022-10-27 11:15:16 +00:00
|
|
|
Version: 2.2.1
|
|
|
|
|
Release: 1
|
2022-07-29 16:54:43 +08:00
|
|
|
License: ISC and MIT
|
2019-12-14 21:12:37 +08:00
|
|
|
URL: http://www.dnspython.org/
|
2022-07-29 16:54:43 +08:00
|
|
|
Source0: https://github.com/rthalley/dnspython/archive/v%{version}/dnspython-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
Patch0: fix-failed-tests.patch
|
2022-10-27 11:15:16 +00:00
|
|
|
Patch1: backport-fix-missing-version-in-setup.cfg.patch
|
2019-12-14 21:12:37 +08:00
|
|
|
|
|
|
|
|
BuildArch: noarch
|
2020-11-10 14:24:04 +08:00
|
|
|
|
2022-10-27 11:15:16 +00:00
|
|
|
BuildRequires: python3-devel python3-setuptools python3-cryptography
|
2022-07-29 16:54:43 +08:00
|
|
|
BuildRequires: python3-pytest
|
2019-12-14 21:12:37 +08:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
%{_description}
|
|
|
|
|
|
|
|
|
|
%package -n python3-dns
|
|
|
|
|
Summary: %{sum}
|
|
|
|
|
%{?python_provide:%python_provide python3-dns}
|
2022-10-27 11:15:16 +00:00
|
|
|
Requires: python3-cryptography
|
2019-12-14 21:12:37 +08:00
|
|
|
|
|
|
|
|
%description -n python3-dns
|
|
|
|
|
%{_description}
|
|
|
|
|
|
|
|
|
|
%package_help
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -p1 -n dnspython-%{version}
|
|
|
|
|
find examples -type f | xargs chmod a-x
|
|
|
|
|
|
|
|
|
|
%build
|
2022-10-27 11:15:16 +00:00
|
|
|
sed -i 's/setup_requires = setuptools>=44; wheel; setuptools_scm\[toml\]>=3.4.3/setup_requires = setuptools>=44;/' setup.cfg
|
2019-12-14 21:12:37 +08:00
|
|
|
%py3_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%py3_install
|
|
|
|
|
|
|
|
|
|
%check
|
2022-07-29 16:54:43 +08:00
|
|
|
pytest
|
2019-12-14 21:12:37 +08:00
|
|
|
|
|
|
|
|
%files -n python3-dns
|
|
|
|
|
%doc LICENSE
|
|
|
|
|
%{python3_sitelib}/*egg-info
|
|
|
|
|
%{python3_sitelib}/dns
|
|
|
|
|
|
|
|
|
|
%files help
|
2020-11-10 14:24:04 +08:00
|
|
|
%doc examples
|
2019-12-14 21:12:37 +08:00
|
|
|
|
|
|
|
|
%changelog
|
2022-10-27 11:15:16 +00:00
|
|
|
* Thu Oct 27 2022 gaihuiying <eaglegai@163.com> - 2.2.1-1
|
|
|
|
|
- update to 2.2.1
|
|
|
|
|
|
2022-07-29 16:54:43 +08:00
|
|
|
* Sat Jan 08 2022 quanhongfei<quanhongfei@huawei.com> - 2.1.0-2
|
|
|
|
|
- fix tests failed
|
|
|
|
|
|
|
|
|
|
* Fri Dec 10 2021 gaihuiying<gaihuiying1@huawei.com> - 2.1.0-1
|
|
|
|
|
- update to 2.1.0
|
|
|
|
|
|
2020-11-17 11:17:22 +08:00
|
|
|
* Tue Nov 17 2020 jinzhimin<jinzhimin2@huawei.com> - 1.16.0-3
|
|
|
|
|
- fix tests failed
|
|
|
|
|
|
2020-11-10 21:21:59 +08:00
|
|
|
* Tue Nov 10 2020 jinzhimin<jinzhimin2@huawei.com> - 1.16.0-2
|
|
|
|
|
- fix the network tests failed
|
|
|
|
|
|
2020-11-10 14:24:04 +08:00
|
|
|
* Tue Nov 10 2020 jinzhimin<jinzhimin2@huawei.com> - 1.16.0-1
|
2020-11-10 21:21:59 +08:00
|
|
|
- update to 1.16.0
|
2020-11-10 14:24:04 +08:00
|
|
|
|
2020-10-29 17:33:48 +08:00
|
|
|
* Wed Oct 21 2020 jinzhimin<jinzhimin2@huawei.com> - 1.15.0-11
|
2020-11-10 21:21:59 +08:00
|
|
|
- remove python2-dns subpackage
|
2020-10-29 17:33:48 +08:00
|
|
|
|
2019-12-14 21:12:37 +08:00
|
|
|
* Fri Dec 6 2019 caomeng<caomeng5@huawei.com> - 1.15.0-10
|
2020-11-10 14:24:04 +08:00
|
|
|
- Package init
|