Some further cleanup for python3 only.
This commit is contained in:
parent
d6535f2042
commit
5412e7523d
@ -1,15 +1,6 @@
|
|||||||
%global pypi_name dnspython
|
%global pypi_name dnspython
|
||||||
%global py_package_name dns
|
%global py_package_name dns
|
||||||
%global summary DNS toolkit for Python
|
%python_provide python-$module
|
||||||
%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. \
|
|
||||||
|
|
||||||
# Disable dependency generator until it has test code
|
# Disable dependency generator until it has test code
|
||||||
%{?python_disable_dependency_generator}
|
%{?python_disable_dependency_generator}
|
||||||
@ -17,7 +8,7 @@ manipulation of DNS zones, messages, names, and records. \
|
|||||||
Name: python-%{py_package_name}
|
Name: python-%{py_package_name}
|
||||||
Version: 1.16.0
|
Version: 1.16.0
|
||||||
Release: 9%{?dist}
|
Release: 9%{?dist}
|
||||||
Summary: %{summary}
|
Summary: DNS toolkit for Python
|
||||||
|
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: http://www.dnspython.org
|
URL: http://www.dnspython.org
|
||||||
@ -33,37 +24,20 @@ Patch0: unicode_label_escapify.patch
|
|||||||
Patch1: collections_abc.patch
|
Patch1: collections_abc.patch
|
||||||
Patch2: python-dns-1.16-base64.patch
|
Patch2: python-dns-1.16-base64.patch
|
||||||
|
|
||||||
%if %{with python3}
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python%{python3_pkgversion}-devel
|
BuildRequires: python3-setuptools
|
||||||
BuildRequires: python%{python3_pkgversion}-setuptools
|
Recommends: python3-ecdsa
|
||||||
Recommends: python%{python3_pkgversion}-ecdsa
|
Recommends: python3-pycryptodomex
|
||||||
Recommends: python%{python3_pkgversion}-pycryptodomex
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
%description
|
||||||
BuildRequires: python%{python3_pkgversion}-devel
|
dnspython is a DNS toolkit for Python. It supports almost all record
|
||||||
BuildRequires: python%{python3_pkgversion}-setuptools
|
types. It can be used for queries, zone transfers, and dynamic
|
||||||
BuildRequires: python%{python3_pkgversion}-ecdsa
|
updates. It supports TSIG authenticated messages and EDNS0.
|
||||||
BuildRequires: python%{python3_pkgversion}-pycryptodomex
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?with_python3_other}
|
dnspython provides both high and low level access to DNS. The high
|
||||||
BuildRequires: python%{python3_other_pkgversion}-devel
|
level classes perform queries for data of a given name, type, and
|
||||||
BuildRequires: python%{python3_other_pkgversion}-setuptools
|
class, and return an answer set. The low level classes allow direct
|
||||||
BuildRequires: python%{python3_other_pkgversion}-ecdsa
|
manipulation of DNS zones, messages, names, and records.
|
||||||
BuildRequires: python%{python3_other_pkgversion}-pycryptodomex
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%description %{_description}
|
|
||||||
|
|
||||||
%package -n python%{python3_pkgversion}-%{py_package_name}
|
|
||||||
Summary: %{summary}
|
|
||||||
%{?python_provide:%python_provide python%{python3_pkgversion}-%{py_package_name}}
|
|
||||||
|
|
||||||
Requires: python%{python3_pkgversion}-ecdsa
|
|
||||||
Requires: python%{python3_pkgversion}-pycryptodomex
|
|
||||||
|
|
||||||
%description -n python%{python3_pkgversion}-%{py_package_name} %{_description}
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n %{pypi_name}-%{version}
|
%autosetup -p1 -n %{pypi_name}-%{version}
|
||||||
@ -71,7 +45,6 @@ Requires: python%{python3_pkgversion}-pycryptodomex
|
|||||||
# strip exec permissions so that we don't pick up dependencies from docs
|
# strip exec permissions so that we don't pick up dependencies from docs
|
||||||
find examples -type f | xargs chmod a-x
|
find examples -type f | xargs chmod a-x
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user