Accepting request 1133641 from devel:languages:python

- use modern python stack for sle15

OBS-URL: https://build.opensuse.org/request/show/1133641
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-google-crc32c?expand=0&rev=4
This commit is contained in:
Ana Guerrero 2023-12-17 20:32:19 +00:00 committed by Git OBS Bridge
commit f8406c9ac0
2 changed files with 14 additions and 7 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Dec 16 20:04:15 UTC 2023 - Dirk Müller <dmueller@suse.com>
- use modern python stack for sle15
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Sep 6 14:45:57 UTC 2022 - John Vandenberg <jayvdb@gmail.com> Tue Sep 6 14:45:57 UTC 2022 - John Vandenberg <jayvdb@gmail.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-google-crc32c # spec file for package python-google-crc32c
# #
# Copyright (c) 2022 SUSE LLC # Copyright (c) 2023 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -16,7 +16,7 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?sle15_python_module_pythons}
%define modname google-crc32c %define modname google-crc32c
Name: python-google-crc32c Name: python-google-crc32c
Version: 1.5.0 Version: 1.5.0
@ -26,8 +26,9 @@ License: Apache-2.0
URL: https://github.com/googleapis/python-crc32c URL: https://github.com/googleapis/python-crc32c
Source: https://github.com/googleapis/python-crc32c/archive/refs/tags/v%{version}.tar.gz#/google-crc32c-%{version}.tar.gz Source: https://github.com/googleapis/python-crc32c/archive/refs/tags/v%{version}.tar.gz#/google-crc32c-%{version}.tar.gz
BuildRequires: %{python_module cffi >= 1.0.0} BuildRequires: %{python_module cffi >= 1.0.0}
BuildRequires: %{python_module devel} BuildRequires: %{python_module devel >= 3.7}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module pip}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: libcrc32c-devel BuildRequires: libcrc32c-devel
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
@ -44,10 +45,10 @@ A python wrapper of the C library 'Google CRC32C'.
%build %build
export CFLAGS="%{optflags}" export CFLAGS="%{optflags}"
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitearch} %python_expand %fdupes %{buildroot}%{$python_sitearch}
%check %check
@ -56,6 +57,7 @@ export CFLAGS="%{optflags}"
%files %{python_files} %files %{python_files}
%doc README.md %doc README.md
%license LICENSE %license LICENSE
%{python_sitearch}/google_crc32c*/ %{python_sitearch}/google_crc32c
%{python_sitearch}/google_crc32c-%{version}.dist-info
%changelog %changelog