Package init
This commit is contained in:
parent
3f7e36614f
commit
c9325995ce
BIN
python-gssapi-1.5.1.tar.gz
Normal file
BIN
python-gssapi-1.5.1.tar.gz
Normal file
Binary file not shown.
65
python-gssapi.spec
Normal file
65
python-gssapi.spec
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
Name: python-gssapi
|
||||||
|
Version: 1.5.1
|
||||||
|
Release: 2
|
||||||
|
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: python2-devel krb5-devel >= 1.10 krb5-libs >= 1.10 python2-Cython >= 0.21
|
||||||
|
BuildRequires: python2-setuptools 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 python2-gssapi
|
||||||
|
Summary: Python Bindings for GSSAPI (RFC 2743/2744 and extensions)
|
||||||
|
Requires: krb5-libs >= 1.10 python2-six python2-enum34 python2-decorator
|
||||||
|
Provides: python-gssapi = %{version}-%{release}
|
||||||
|
Obsoletes: python-gssapi < %{version}-%{release}
|
||||||
|
%description -n python2-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.
|
||||||
|
|
||||||
|
%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.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -S git -n %{name}-%{version} -p1
|
||||||
|
rm -rf %{py3dir}
|
||||||
|
cp -a . %{py3dir}
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
CFLAGS="%{optflags}" %{__python2} setup.py build
|
||||||
|
cd %{py3dir}
|
||||||
|
CFLAGS="%{optflags}" %{__python3} setup.py build
|
||||||
|
cd -
|
||||||
|
|
||||||
|
%install
|
||||||
|
cd %{py3dir}
|
||||||
|
%{__python3} setup.py install --skip-build --root %{buildroot}
|
||||||
|
find %{buildroot}%{python3_sitearch}/gssapi -name '*.so' \
|
||||||
|
-exec chmod 0755 {} \;
|
||||||
|
cd -
|
||||||
|
%{__python2} setup.py install --skip-build --root %{buildroot}
|
||||||
|
find %{buildroot}%{python2_sitearch}/gssapi -name '*.so' \
|
||||||
|
-exec chmod 0755 {} \;
|
||||||
|
|
||||||
|
%check
|
||||||
|
|
||||||
|
%files -n python2-gssapi
|
||||||
|
%doc README.txt LICENSE.txt
|
||||||
|
%{python2_sitearch}/*
|
||||||
|
|
||||||
|
%files -n python3-gssapi
|
||||||
|
%doc README.txt LICENSE.txt
|
||||||
|
%{python3_sitearch}/*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Tue Apr 28 2020 yanan li <liyanan032@huawei.com> - 1.5.1-2
|
||||||
|
- Package init
|
||||||
4
python-gssapi.yaml
Normal file
4
python-gssapi.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: pythongssapi/python-gssapi
|
||||||
|
tag_prefix: ^v
|
||||||
|
seperator: .
|
||||||
Loading…
x
Reference in New Issue
Block a user