Remove python2

This commit is contained in:
lei_ju 2020-06-30 15:18:05 +08:00
parent d62b57b7f5
commit ba47e1f55b

View File

@ -11,21 +11,12 @@ Patch0001: Use-dnspython-package-on-python3.patch
BuildArch: noarch BuildArch: noarch
BuildRequires: python2-devel python2-pytest python2-coverage python2-asn1crypto python2-dns python2-mock
BuildRequires: python3-devel python3-pytest python3-coverage python3-asn1crypto python3-dns python3-mock BuildRequires: python3-devel python3-pytest python3-coverage python3-asn1crypto python3-dns python3-mock
BuildRequires: git BuildRequires: git
%description %description
A kerberos KDC HTTP/HTTPS proxy Python WSGI module. A kerberos KDC HTTP/HTTPS proxy Python WSGI module.
%package -n python2-kdcproxy
Summary: A kerberos KDC HTTP/HTTPS proxy Python 2.x WSGI module
Requires: python2-dns python2-asn1crypto
%{?python_provide:%python_provide python2-kdcproxy}
%description -n python2-kdcproxy
A kerberos KDC HTTP/HTTPS proxy Python 2.x WSGI module.
%package -n python3-kdcproxy %package -n python3-kdcproxy
Summary: A kerberos KDC HTTP/HTTPS proxy Python 3.x WSGI module Summary: A kerberos KDC HTTP/HTTPS proxy Python 3.x WSGI module
Requires: python3-dns python3-asn1crypto Requires: python3-dns python3-asn1crypto
@ -38,22 +29,14 @@ A kerberos KDC HTTP/HTTPS proxy Python 3.x WSGI module.
%autosetup -n kdcproxy-%{version} -p1 -S git %autosetup -n kdcproxy-%{version} -p1 -S git
%build %build
%py2_build
%py3_build %py3_build
%install %install
%py2_install
%py3_install %py3_install
%check %check
KDCPROXY_ASN1MOD=asn1crypto %{__python2} -m pytest
KDCPROXY_ASN1MOD=asn1crypto %{__python3} -m pytest KDCPROXY_ASN1MOD=asn1crypto %{__python3} -m pytest
%files -n python2-kdcproxy
%doc README COPYING
%{python2_sitelib}/kdcproxy/
%{python2_sitelib}/kdcproxy-%{version}-*.egg-info
%files -n python3-kdcproxy %files -n python3-kdcproxy
%doc README COPYING %doc README COPYING
%{python3_sitelib}/kdcproxy/ %{python3_sitelib}/kdcproxy/