New version and modernize spec file

Signed-off-by: Simo Sorce <simo@redhat.com>
This commit is contained in:
Simo Sorce 2022-02-02 09:41:04 -05:00
parent 17b29e0b71
commit 6775bcfd4e
3 changed files with 18 additions and 17 deletions

1
.gitignore vendored
View File

@ -14,3 +14,4 @@
/python-gssapi-1.6.5.tar.gz /python-gssapi-1.6.5.tar.gz
/python-gssapi-1.6.9.tar.gz /python-gssapi-1.6.9.tar.gz
/python-gssapi-1.6.14.tar.gz /python-gssapi-1.6.14.tar.gz
/python-gssapi-1.7.2.tar.gz

View File

@ -1,22 +1,24 @@
# NOTE: tests are disabled since should_be has not yet been packaged. # NOTE: tests are disabled since should_be has not yet been packaged.
# NOTE2: we need to disable package notes as they try to use a linker script
# that does not exists
%undefine _package_note_file
Name: python-gssapi Name: python-gssapi
Version: 1.6.14 Version: 1.7.2
Release: 3%{?dist} Release: 1%{?dist}
Summary: Python Bindings for GSSAPI (RFC 2743/2744 and extensions) Summary: Python Bindings for GSSAPI (RFC 2743/2744 and extensions)
License: ISC License: ISC
URL: https://github.com/pythongssapi/python-gssapi URL: https://github.com/pythongssapi/python-gssapi
Source0: https://github.com/pythongssapi/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz Source0: https://github.com/pythongssapi/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz
# Patches BuildRequires: krb5-devel >= 1.19
BuildRequires: krb5-devel >= 1.10
BuildRequires: krb5-libs >= 1.10
BuildRequires: gcc BuildRequires: gcc
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: python3-setuptools BuildRequires: python3-setuptools
BuildRequires: python3-Cython BuildRequires: python3-Cython
BuildRequires: python3-pip
BuildRequires: python3-wheel
# For autosetup # For autosetup
BuildRequires: git BuildRequires: git
@ -31,8 +33,7 @@ RFC 2743, as well as multiple extensions.
%package -n python3-gssapi %package -n python3-gssapi
Summary: Python 3 Bindings for GSSAPI (RFC 2743/2744 and extensions) Summary: Python 3 Bindings for GSSAPI (RFC 2743/2744 and extensions)
Requires: krb5-libs >= 1.19
Requires: krb5-libs >= 1.10
Requires: python3-six Requires: python3-six
Requires: python3-decorator Requires: python3-decorator
@ -44,22 +45,21 @@ Requires: python3-decorator
%autosetup -S git -n %{name}-%{version} %autosetup -S git -n %{name}-%{version}
%build %build
%py3_build %pyproject_wheel
%install %install
%py3_install %pyproject_install
# fix permissions on shared objects (mock seems to set them %pyproject_save_files gssapi
# to 0775, whereas a normal build gives 0755)
find %{buildroot}%{python3_sitearch}/gssapi -name '*.so' \
-exec chmod 0755 {} \;
%files -n python3-gssapi %files -n python3-gssapi -f %{pyproject_files}
%doc README.txt %doc README.txt
%license LICENSE.txt %license LICENSE.txt
%{python3_sitearch}/*
%changelog %changelog
* Wed Feb 2 2022 Simo Sorce <simo@redhat.com> - 1.7.2-1
- Update to latest release and modernize spec file
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.14-3 * Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.14-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild

View File

@ -1 +1 @@
SHA512 (python-gssapi-1.6.14.tar.gz) = f35bcbfe8b1c5f2bd8772d5f5c1a57da06ccf69f9dbce8a71227c0cdae42a0e30de8ed0088a45ad778b9bbb0ad654fbf75e2dfb0b28b7d111930f0b72f728a1b SHA512 (python-gssapi-1.7.2.tar.gz) = d4d1a08a1d3850f0a3cc858f1f9037a561c320a3f9b9e4951b0c47f2107bd319f9f0eff95852ff146033153a00bac127452d581b88650a815b4b76496c61dd22