diff --git a/dnspython-2.2.1.tar.gz b/dnspython-2.2.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..13e739f540d03da5e1bb17173b3c969003bf2da9 Binary files /dev/null and b/dnspython-2.2.1.tar.gz differ diff --git a/python-dnspython.spec b/python-dnspython.spec index 97b118c67affaf80735822f04edf6fa9165743ba..95c0d653fb200c4664aaab1ce3caad4b56cb56ac 100644 --- a/python-dnspython.spec +++ b/python-dnspython.spec @@ -1,53 +1,93 @@ -Name: python-dnspython -Version: 2.1.0 -Release: 1 -Summary: DNS toolkit -License: ISC -URL: http://www.dnspython.org -Source0: https://github.com/rthalley/dnspython/archive/refs/tags/v2.1.0.tar.gz -BuildArch: noarch +%global _empty_manifest_terminate_build 0 +Name: python-dnspython +Version: 2.2.1 +Release: 1 +Summary: DNS toolkit +License: ISC +URL: https://www.dnspython.org +Source0: https://files.pythonhosted.org/packages/99/fb/e7cd35bba24295ad41abfdff30f6b4c271fd6ac70d20132fa503c3e768e0/dnspython-2.2.1.tar.gz +BuildArch: noarch + +Requires: python3-cryptography +Requires: python3-curio +Requires: python3-h2 +Requires: python3-httpx +Requires: python3-idna +Requires: python3-requests +Requires: python3-requests-toolbelt +Requires: python3-sniffio +Requires: python3-trio +Requires: python3-wmi %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 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. %package -n python3-dnspython -Summary: DNS toolkit -Provides: python-dnspython -Requires: python3-cryptography python3-requests python3-requests-toolbelt -Requires: python3-idna python3-curio python3-sniffio python3-trio python3-sniffio -BuildRequires: python3-devel python3-setuptools - +Summary: DNS toolkit +Provides: python-dnspython +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pbr +BuildRequires: python3-pip +BuildRequires: python3-wheel %description -n python3-dnspython -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 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. %package help -Summary: Development documents and examples for dnspython -Provides: python3-dnspython-doc -Requires: python3-dnspython - +Summary: Development documents and examples for dnspython +Provides: python3-dnspython-doc %description help -Documentation for python3-dnspython. +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. %prep -%autosetup -n dnspython-2.1.0 +%autosetup -n dnspython-%{version} %build %py3_build %install %py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . -%files -n python3-dnspython -%{python3_sitelib}/dns -%{python3_sitelib}/dnspython-2.1.0-py%{python3_version}.egg-info +%files -n python3-dnspython -f filelist.lst +%dir %{python3_sitelib}/* -%files help -%doc doc examples +%files help -f doclist.lst +%{_docdir}/* %changelog +* Tue Nov 01 2022 guozhengxin - 2.2.1-1 +- Upgrade package to version 2.2.1 + * Fri Jul 16 2021 Kou Wenqi - 2.1.0-1 - Init package diff --git a/v2.1.0.tar.gz b/v2.1.0.tar.gz deleted file mode 100644 index 3991c894d1d1c0fb2c6d65b3919bbda808d74a20..0000000000000000000000000000000000000000 Binary files a/v2.1.0.tar.gz and /dev/null differ