import python-gssapi-1.5.1-5.el8
This commit is contained in:
parent
d91918a8da
commit
799f3ad038
|
@ -1,18 +1,8 @@
|
|||
# NOTE: tests are disabled since should_be has not yet been packaged.
|
||||
# To re-enable, uncomment the 'check' section and lines marked 'for tests'
|
||||
%global run_tests 0
|
||||
%global with_python3 1
|
||||
|
||||
%if 0%{?rhel} > 7
|
||||
# Disable python2 build by default
|
||||
%bcond_with python2
|
||||
%else
|
||||
%bcond_without python2
|
||||
%endif
|
||||
|
||||
Name: python-gssapi
|
||||
Version: 1.5.1
|
||||
Release: 1%{?dist}
|
||||
Release: 5%{?dist}
|
||||
Summary: Python Bindings for GSSAPI (RFC 2743/2744 and extensions)
|
||||
|
||||
License: ISC
|
||||
|
@ -24,37 +14,12 @@ Source0: https://github.com/pythongssapi/%{name}/releases/download/v%{ver
|
|||
BuildRequires: krb5-devel >= 1.10
|
||||
BuildRequires: krb5-libs >= 1.10
|
||||
BuildRequires: gcc
|
||||
|
||||
%if %{with python2}
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python2-setuptools
|
||||
BuildRequires: python2-Cython >= 0.21
|
||||
%endif # with python2
|
||||
|
||||
# For autosetup
|
||||
BuildRequires: git
|
||||
|
||||
%if 0%{?run_tests}
|
||||
%if %{with python2}
|
||||
BuildRequires: %{_bindir}/tox
|
||||
BuildRequires: python2-nose
|
||||
BuildRequires: python2-nose-parameterized
|
||||
BuildRequires: python-shouldbe
|
||||
%endif # with python2
|
||||
BuildRequires: krb5-server >= 1.10
|
||||
%endif
|
||||
|
||||
%if 0%{?with_python3}
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: python3-Cython
|
||||
|
||||
%if 0%{?run_tests}
|
||||
BuildRequires: python3-nose
|
||||
BuildRequires: python3-nose-parameterized
|
||||
BuildRequires: python3-should-be
|
||||
%endif
|
||||
%endif
|
||||
# For autosetup
|
||||
BuildRequires: git
|
||||
|
||||
%global _description\
|
||||
A set of Python bindings to the GSSAPI C library providing both\
|
||||
|
@ -64,19 +29,6 @@ RFC 2743, as well as multiple extensions.
|
|||
|
||||
%description %_description
|
||||
|
||||
%if %{with python2}
|
||||
%package -n python2-gssapi
|
||||
Summary: %summary
|
||||
Requires: krb5-libs >= 1.10
|
||||
Requires: python2-six
|
||||
Requires: python2-enum34
|
||||
Requires: python2-decorator
|
||||
%{?python_provide:%python_provide python2-gssapi}
|
||||
|
||||
%description -n python2-gssapi %_description
|
||||
%endif # with python2
|
||||
|
||||
%if 0%{?with_python3}
|
||||
%package -n python3-gssapi
|
||||
Summary: Python 3 Bindings for GSSAPI (RFC 2743/2744 and extensions)
|
||||
|
||||
|
@ -84,72 +36,46 @@ Requires: krb5-libs >= 1.10
|
|||
Requires: python3-six
|
||||
Requires: python3-decorator
|
||||
|
||||
%description -n python3-gssapi
|
||||
A set of Python 3 bindings to the GSSAPI C library providing both
|
||||
a high-level pythonic interfaces and a low-level interfaces
|
||||
which more closely matches RFC 2743. Includes support for
|
||||
RFC 2743, as well as multiple extensions.
|
||||
%endif
|
||||
%description -n python3-gssapi %_description
|
||||
|
||||
%{?python_provide:%python_provide python3-gssapi}
|
||||
|
||||
%prep
|
||||
%autosetup -S git -n %{name}-%{version}
|
||||
|
||||
%build
|
||||
%if %{with python2}
|
||||
CFLAGS="%{optflags}" %{__python2} setup.py build
|
||||
%endif # with python2
|
||||
|
||||
%if 0%{?with_python3}
|
||||
CFLAGS="%{optflags}" %{__python3} setup.py build
|
||||
%endif
|
||||
|
||||
%py3_build
|
||||
|
||||
%install
|
||||
%if 0%{?with_python3}
|
||||
%{__python3} setup.py install --skip-build --root %{buildroot}
|
||||
%py3_install
|
||||
|
||||
# fix permissions on shared objects (mock seems to set them
|
||||
# to 0775, whereas a normal build gives 0755)
|
||||
find %{buildroot}%{python3_sitearch}/gssapi -name '*.so' \
|
||||
-exec chmod 0755 {} \;
|
||||
%endif
|
||||
|
||||
%if %{with python2}
|
||||
%{__python2} setup.py install --skip-build --root %{buildroot}
|
||||
|
||||
# fix permissions on shared objects (mock seems to set them
|
||||
# to 0775, whereas a normal build gives 0755)
|
||||
find %{buildroot}%{python2_sitearch}/gssapi -name '*.so' \
|
||||
-exec chmod 0755 {} \;
|
||||
%endif # with python2
|
||||
|
||||
%check
|
||||
%if 0%{?run_tests}
|
||||
%if %{with python2}
|
||||
%{__python2} setup.py nosetests
|
||||
%endif # with python2
|
||||
|
||||
%if 0%{?with_python3}
|
||||
%{__python3} setup.py nosetests
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if %{with python2}
|
||||
%files -n python2-gssapi
|
||||
%doc README.txt
|
||||
%license LICENSE.txt
|
||||
%{python2_sitearch}/*
|
||||
%endif # with python2
|
||||
|
||||
%if 0%{?with_python3}
|
||||
%files -n python3-gssapi
|
||||
%doc README.txt
|
||||
%license LICENSE.txt
|
||||
%{python3_sitearch}/*
|
||||
%endif
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri May 31 2019 Robbie Harwood <rharwood@redhat.com> - 1.5.1-5
|
||||
- Gating can't be bothered to check my BuildRequires
|
||||
- Resolves: #1715040
|
||||
|
||||
* Thu May 30 2019 Robbie Harwood <rharwood@redhat.com> - 1.5.1-4
|
||||
- Bump NVR to re-run our useless gating
|
||||
- Resolves: #1715040
|
||||
|
||||
* Thu May 30 2019 Robbie Harwood <rharwood@redhat.com> - 1.5.1-3
|
||||
- Update spec file from Fedora
|
||||
- Resolves: #1715040
|
||||
|
||||
* Tue Mar 19 2019 Robbie Harwood <rharwood@redhat.com> - 1.5.1-2
|
||||
- Add gating tests
|
||||
- Resolves: #1682269
|
||||
|
||||
* Wed Aug 01 2018 Robbie Harwood <rharwood@redhat.com> - 1.5.1-1
|
||||
- Remove warning about collections ABCs on python3.7
|
||||
- Resolves: #1594834
|
||||
|
|
Loading…
Reference in New Issue