python-kdcproxy/python-kdcproxy.spec

55 lines
1.7 KiB
RPMSpec
Raw Normal View History

2020-06-30 16:21:31 +08:00
%global realname kdcproxy
Name: python-%{realname}
2022-06-29 19:28:19 +08:00
Version: 1.0.0
Release: 1
2020-06-30 16:21:31 +08:00
Summary: MS-KKDCP (kerberos proxy) WSGI module
2020-06-19 18:35:43 +08:00
License: MIT
2020-06-30 16:21:31 +08:00
URL: https://github.com/npmccallum/%{realname}
2022-06-29 19:28:19 +08:00
Source0: https://github.com/latchset/kdcproxy/releases/download/v1.0.0/kdcproxy-%{version}.tar.gz
2020-06-19 18:35:43 +08:00
BuildArch: noarch
2020-06-30 16:21:31 +08:00
BuildRequires: python3-devel python3-pytest python3-coverage python3-asn1crypto python3-dns
2022-06-29 19:28:19 +08:00
BuildRequires: python3-mock python3-pyasn1
2020-06-19 18:35:43 +08:00
%description
2020-06-30 16:21:31 +08:00
This package contains a Python WSGI module for proxying KDC requests over
HTTP by following the MS-KKDCP protocol. It aims to be simple to deploy, with
minimal configuration.
2020-06-19 18:35:43 +08:00
2020-06-30 16:21:31 +08:00
%package -n python3-%{realname}
Summary: MS-KKDCP (kerberos proxy) WSGI module
2020-06-19 18:35:43 +08:00
Requires: python3-dns python3-asn1crypto
2020-06-30 16:21:31 +08:00
%{?python_provide:%python_provide python3-%{realname}}
2020-06-19 18:35:43 +08:00
2020-06-30 16:21:31 +08:00
%description -n python3-%{realname}
This package contains a Python 3.x WSGI module for proxying KDC requests over
HTTP by following the MS-KKDCP protocol. It aims to be simple to deploy, with
minimal configuration.
2020-06-19 18:35:43 +08:00
%prep
%autosetup -n %{realname}-%{version} -p1
2020-06-19 18:35:43 +08:00
%build
%py3_build
%install
%py3_install
%check
KDCPROXY_ASN1MOD=asn1crypto %{__python3} -m pytest
2020-06-30 16:21:31 +08:00
%files -n python3-%{realname}
%doc README
%license COPYING
%{python3_sitelib}/%{realname}/
%{python3_sitelib}/%{realname}-%{version}-*.egg-info
2020-06-19 18:35:43 +08:00
%changelog
2022-06-29 19:28:19 +08:00
* Wed Jun 29 2022 SimpleUpdate Robot <tc@openeuler.org> - 1.0.0-1
- Upgrade to version 1.0.0
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 0.4.2-5
- DESC: delete -S git from %autosetup, and delete BuildRequires git
2020-06-30 16:21:31 +08:00
* Tue Jun 30 2020 leiju <leiju4@huawei.com> - 0.4.2-4
2020-06-19 18:35:43 +08:00
- Package init