python-gssapi/python-gssapi.spec

49 lines
1.7 KiB
RPMSpec
Raw Normal View History

2020-06-18 14:37:17 +08:00
Name: python-gssapi
Version: 1.5.1
Release: 4
2020-06-18 14:37:17 +08:00
Summary: Python Bindings for GSSAPI (RFC 2743/2744 and extensions)
License: ISC
URL: https://github.com/pythongssapi/python-gssapi
Source0: https://github.com/pythongssapi/python-gssapi/releases/download/v%{version}/python-gssapi-%{version}.tar.gz
BuildRequires: krb5-devel >= 1.10 krb5-libs >= 1.10 gcc
2020-06-18 14:37:17 +08:00
BuildRequires: python3-devel python3-setuptools python3-Cython
2020-10-29 10:36:52 +08:00
%description
2020-06-18 14:37:17 +08:00
Python-GSSAPI provides both low-level and high level wrappers around the GSSAPI C libraries.
While it focuses on the Kerberos mechanism, it should also be useable with other GSSAPI mechanisms.
%package -n python3-gssapi
Summary: Python 3 Bindings for GSSAPI (RFC 2743/2744 and extensions)
Requires: krb5-libs >= 1.10 python3-six python3-decorator
2020-10-29 10:36:52 +08:00
2020-06-18 14:37:17 +08:00
%description -n python3-gssapi
Python-GSSAPI provides both low-level and high level wrappers around the GSSAPI C libraries.
While it focuses on the Kerberos mechanism, it should also be useable with other GSSAPI mechanisms.
2020-10-29 10:36:52 +08:00
%{?python_provide:%python_provide python3-gssapi}
2020-06-18 14:37:17 +08:00
%prep
%autosetup -n %{name}-%{version} -p1
2020-06-18 14:37:17 +08:00
%build
2020-10-29 10:36:52 +08:00
%py3_build
2020-06-18 14:37:17 +08:00
%install
2020-10-29 10:36:52 +08:00
%py3_install
2020-06-18 14:37:17 +08:00
find %{buildroot}%{python3_sitearch}/gssapi -name '*.so' \
-exec chmod 0755 {} \;
%files -n python3-gssapi
%doc README.txt LICENSE.txt
%{python3_sitearch}/*
%changelog
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 1.5.1-4
- DESC: delete -S git from %autosetup, and delete BuildRequires git
2020-10-29 10:36:52 +08:00
*Wed Oct 21 2020 leiju <leiju4@huawei.com> - 1.5.1-3
- remove python2 subpackage
2020-06-18 14:37:17 +08:00
* Tue Apr 28 2020 yanan li <liyanan032@huawei.com> - 1.5.1-2
- Package init