Sync from SUSE:ALP:Source:Standard:1.0 python-google-crc32c revision 5a875141fd136eeaa245cd1915bbaf38

This commit is contained in:
Adrian Schröter 2024-01-05 09:53:29 +01:00
commit 17bcc8617e
4 changed files with 133 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

BIN
google-crc32c-1.5.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,44 @@
-------------------------------------------------------------------
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>
- Update to v1.5.0
* add support for Python 3.11
* drop support for python 3.6
* fix changelog header to consistent size
- from v1.4.0
* add 'py.typed' declaration
* add empty slots to CommonChecksum
-------------------------------------------------------------------
Thu Apr 7 10:36:52 UTC 2022 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to version 1.3.0
Features
* add support for Python 3.10 (#116)
- from version 1.2.0
Features
* build wheels using CIBuildWheel (#103)
Documentation
* update list of supported wheel platforms / architectures (#105)
- from version 1.1.5
Bug Fixes
* revert to silent fallback to pure-Python build (#93)
* fix segfault on MacOS 11 ("Big Sur") for Python < 3.9 (#93)
- from version 1.1.4
Bug Fixes
* advise setting 'CRC32C_PURE_PYTHON' after build failure (#84)
* restore building 'manylinux1' wheels (#87)
* use correct Python 3.10 specifier (#88)
- from version 1.1.3
Performance Improvements
* replace CFFI with a native C extension (#76)
-------------------------------------------------------------------
Fri Jun 4 08:56:19 UTC 2021 - Matej Cepl <mcepl@suse.com>
- Initial packaging effort for google-crc32c version 1.1.2.

63
python-google-crc32c.spec Normal file
View File

@ -0,0 +1,63 @@
#
# spec file for package python-google-crc32c
#
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?sle15_python_module_pythons}
%define modname google-crc32c
Name: python-google-crc32c
Version: 1.5.0
Release: 0
Summary: A python wrapper of the C library 'Google CRC32C'
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 >= 3.7}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: libcrc32c-devel
BuildRequires: python-rpm-macros
# SECTION test requirements
BuildRequires: %{python_module pytest}
# /SECTION
%python_subpackages
%description
A python wrapper of the C library 'Google CRC32C'.
%prep
%autosetup -p1 -n python-crc32c-%{version}
%build
export CFLAGS="%{optflags}"
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
%pytest_arch
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitearch}/google_crc32c
%{python_sitearch}/google_crc32c-%{version}.dist-info
%changelog