From 6e9021d1e0595a93c2208da30e339e2af401c978178e14deaf9d705b2f7e899c Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sat, 16 Dec 2023 20:04:44 +0000 Subject: [PATCH] - update to 1.5.0: * add support for Python 3.11 (#144) * drop support for python 3.6 (#145) * fix changelog header to consistent size (#136) * add 'py.typed' declaration (#119) * add empty slots to CommonChecksum (#121) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-crc32c?expand=0&rev=8 --- python-google-crc32c.changes | 5 +++++ python-google-crc32c.spec | 16 +++++++++------- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/python-google-crc32c.changes b/python-google-crc32c.changes index 11f9947..5cb6b06 100644 --- a/python-google-crc32c.changes +++ b/python-google-crc32c.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Dec 16 20:04:15 UTC 2023 - Dirk Müller + +- use modern python stack for sle15 + ------------------------------------------------------------------- Tue Sep 6 14:45:57 UTC 2022 - John Vandenberg diff --git a/python-google-crc32c.spec b/python-google-crc32c.spec index 1bd013a..f44ac5e 100644 --- a/python-google-crc32c.spec +++ b/python-google-crc32c.spec @@ -1,7 +1,7 @@ # # 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 # 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 Name: python-google-crc32c Version: 1.5.0 @@ -26,8 +26,9 @@ License: Apache-2.0 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 BuildRequires: %{python_module cffi >= 1.0.0} -BuildRequires: %{python_module devel} -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module devel >= 3.7} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: libcrc32c-devel BuildRequires: python-rpm-macros @@ -44,10 +45,10 @@ A python wrapper of the C library 'Google CRC32C'. %build export CFLAGS="%{optflags}" -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitearch} %check @@ -56,6 +57,7 @@ export CFLAGS="%{optflags}" %files %{python_files} %doc README.md %license LICENSE -%{python_sitearch}/google_crc32c*/ +%{python_sitearch}/google_crc32c +%{python_sitearch}/google_crc32c-%{version}.dist-info %changelog