python-dns/python-dns.spec

72 lines
1.7 KiB
RPMSpec
Raw Normal View History

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}
2020-11-10 14:24:04 +08:00
Version: 1.16.0
Release: 1
2019-12-14 21:12:37 +08:00
License: MIT
URL: http://www.dnspython.org/
2020-11-10 14:24:04 +08:00
Source0: http://www.dnspython.org/kits/%{version}/dnspython-%{version}.tar.gz
2019-12-14 21:12:37 +08:00
BuildArch: noarch
2020-11-10 14:24:04 +08:00
Patch0: unicode_label_escapify.patch
Patch1: collections_abc.patch
Patch2: base64.patch
BuildRequires: python3-devel python3-setuptools python3-pycryptodome python3-ecdsa
2019-12-14 21:12:37 +08:00
%description
%{_description}
%package -n python3-dns
Summary: %{sum}
%{?python_provide:%python_provide python3-dns}
2020-11-10 14:24:04 +08:00
Requires: python3-pycryptodome python3-ecdsa
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
%py3_build
%install
%py3_install
%check
%{__python3} setup.py test
%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
2020-11-10 14:24:04 +08:00
* Tue Nov 10 2020 jinzhimin<jinzhimin2@huawei.com> - 1.16.0-1
* update to 1.16.0
2020-10-29 17:33:48 +08:00
* Wed Oct 21 2020 jinzhimin<jinzhimin2@huawei.com> - 1.15.0-11
* remove python2-dns subpackage
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