64 lines
1.9 KiB
RPMSpec
64 lines
1.9 KiB
RPMSpec
Name: python-kdcproxy
|
|
Version: 0.4
|
|
Release: 3
|
|
Summary: A kerberos KDC HTTP/HTTPS proxy Python WSGI module
|
|
License: MIT
|
|
URL: https://github.com/npmccallum/kdcproxy
|
|
Source0: https://github.com/latchset/kdcproxy/releases/download/v0.4/kdcproxy-%{version}.tar.gz
|
|
|
|
Patch0000: Make-webtest-an-optional-dependency.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
|
|
%{?python_provide:%python_provide python3-kdcproxy}
|
|
|
|
%description -n python3-kdcproxy
|
|
A kerberos KDC HTTP/HTTPS proxy Python 3.x WSGI module.
|
|
|
|
%prep
|
|
%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/
|
|
%{python3_sitelib}/kdcproxy-%{version}-*.egg-info
|
|
|
|
%changelog
|
|
* Wed Apr 22 2020 leiju <leiju4@huawei.com> - 0.4-3
|
|
- Package init
|