python-gssapi/python-gssapi.spec
2020-10-29 10:36:52 +08:00

46 lines
1.6 KiB
RPMSpec

Name: python-gssapi
Version: 1.5.1
Release: 3
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 git
BuildRequires: python3-devel python3-setuptools python3-Cython
%description
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
%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.
%{?python_provide:%python_provide python3-gssapi}
%prep
%autosetup -S git -n %{name}-%{version} -p1
%build
%py3_build
%install
%py3_install
find %{buildroot}%{python3_sitearch}/gssapi -name '*.so' \
-exec chmod 0755 {} \;
%files -n python3-gssapi
%doc README.txt LICENSE.txt
%{python3_sitearch}/*
%changelog
*Wed Oct 21 2020 leiju <leiju4@huawei.com> - 1.5.1-3
- remove python2 subpackage
* Tue Apr 28 2020 yanan li <liyanan032@huawei.com> - 1.5.1-2
- Package init