Remove python2
This commit is contained in:
parent
d62b57b7f5
commit
ba47e1f55b
@ -11,21 +11,12 @@ Patch0001: Use-dnspython-package-on-python3.patch
|
||||
|
||||
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: git
|
||||
|
||||
%description
|
||||
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
|
||||
Summary: A kerberos KDC HTTP/HTTPS proxy Python 3.x WSGI module
|
||||
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
|
||||
|
||||
%build
|
||||
%py2_build
|
||||
%py3_build
|
||||
|
||||
%install
|
||||
%py2_install
|
||||
%py3_install
|
||||
|
||||
%check
|
||||
KDCPROXY_ASN1MOD=asn1crypto %{__python2} -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
|
||||
%doc README COPYING
|
||||
%{python3_sitelib}/kdcproxy/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user