## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: python-xxhash Version: 4.0.1 Release: %autorelease Summary: Python Binding for xxHash License: BSD-2-Clause URL: https://github.com/ifduyue/python-xxhash # If the PyPI sdist were used (vs. the GitHub archive), a bundled copy of # portions of the xxhash C library would also be present in the source archive; # it is under the same license and should be removed in %%prep. Source: %{url}/archive/v%{version}/python-xxhash-%{version}.tar.gz BuildSystem: pyproject BuildOption(install): --assert-license xxhash BuildRequires: gcc BuildRequires: pkgconfig(libxxhash) >= 0.8.3 BuildRequires: %{py3_dist pytest} %global common_description %{expand: xxhash is a Python binding for the xxHash library by Yann Collet.} %description %{common_description} %package -n python3-xxhash Summary: %{summary} %description -n python3-xxhash %{common_description} %build -p # Normally, no extra flags are required to link the xxhash shared library, but # we are prepared: export CFLAGS="${CFLAGS} $(pkgconf --cflags libxxhash)" export LDFLAGS="${LDFLAGS} $(pkgconf --libs-only-L libxxhash)" export LDFLAGS="${LDFLAGS} $(pkgconf --libs-only-other libxxhash)" export XXHASH_LINK_SO='1' %check -a # https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters ignore="${ignore-} --ignore=tests/test_stubs_pyright.py" # Avoid importing the “unbuilt” source copy of the package. Simply passing # --import-mode=append would handle this almost everywhere, but tests involving # subprocesses and subinterpreters assume “in-tree” testing. We emulate that by # carefully preparing a directory with just the tests and the “built” package. # Note that symlinking the tests into the empty directory is not enough: import # paths are constructed relative to the tests, so we must copy them. mkdir _empty ln --symbolic '%{buildroot}%{python3_sitearch}/xxhash' _empty/ cp --preserve --recursive tests _empty/ cd _empty # Benchmarks are not useful to run downstream, and they would not print results # when run with the test suite anyway. %pytest --verbose ${ignore-} -m 'not benchmark' %files -n python3-xxhash -f %{pyproject_files} %doc CHANGELOG.rst %doc README.rst %changelog ## START: Generated by rpmautospec * Mon Aug 17 2026 Benjamin A. Beasley - 4.0.1-1 - Update to 4.0.1 upstream release - Resolves: rhbz#2514824 * Wed Jul 22 2026 Python Maint - 3.8.1-3 - Rebuilt for Python 3.15.0b4 ABI change * Thu Jul 16 2026 Fedora Release Engineering - 3.8.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild * Tue Jul 07 2026 Benjamin A. Beasley - 3.8.1-1 - Update to 3.8.1 upstream release - Resolves: rhbz#2497360 * Sun Jun 28 2026 Benjamin A. Beasley - 3.8.0-1 - Update to 3.8.0 (close RHBZ#2492139) - Run tests with pytest, as upstream is gradually adopting it * Wed Jun 03 2026 Python Maint - 3.7.0-3 - Rebuilt for Python 3.15 * Wed May 20 2026 Benjamin A. Beasley - 3.7.0-2 - Use long pyproject and other options * Sun Apr 26 2026 Benjamin A. Beasley - 3.7.0-1 - Update to version 3.7.0; Fixes RHBZ#2461823 * Sat Jan 17 2026 Fedora Release Engineering - 3.6.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Wed Oct 08 2025 Benjamin A. Beasley - 3.6.0-1 - Update to 3.6.0 (close RHBZ#2402506) * Fri Sep 19 2025 Python Maint - 3.5.0-7 - Rebuilt for Python 3.14.0rc3 bytecode * Fri Aug 15 2025 Python Maint - 3.5.0-6 - Rebuilt for Python 3.14.0rc2 bytecode * Fri Jul 25 2025 Fedora Release Engineering - 3.5.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Mon Jun 02 2025 Python Maint - 3.5.0-4 - Rebuilt for Python 3.14 * Fri May 09 2025 Benjamin A. Beasley - 3.5.0-3 - F41+: Use the provisional pyproject declarative buildsystem * Sat Jan 18 2025 Fedora Release Engineering - 3.5.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Thu Aug 22 2024 Benjamin A. Beasley - 3.5.0-1 - Update to 3.5.0 (close RHBZ#2307449) * Fri Jul 19 2024 Fedora Release Engineering - 3.4.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 3.4.1-6 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 3.4.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 3.4.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Tue Dec 19 2023 Benjamin A. Beasley - 3.4.1-3 - Assert that %%pyproject_files contains a license file * Thu Oct 12 2023 Benjamin A. Beasley - 3.4.1-2 - F38+: Use %%{py3_test_envvars} to run the tests * Thu Oct 05 2023 Benjamin A. Beasley - 3.4.1-1 - Update to 3.4.1 (close RHBZ#2242295) * Sun Jul 30 2023 Benjamin A. Beasley - 3.3.0-1 - Update to 3.3.0 (close RHBZ#2227488) * Fri Jul 21 2023 Fedora Release Engineering - 3.2.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jun 13 2023 Python Maint - 3.2.0-5 - Rebuilt for Python 3.12 * Sat Jun 03 2023 Benjamin A. Beasley - 3.2.0-4 - Remove explicit %%set_build_flags, not needed since F36 * Fri Jan 20 2023 Fedora Release Engineering - 3.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Dec 29 2022 Benjamin A. Beasley - 3.2.0-1 - Update to 3.2.0 (close RHBZ#2156793) * Fri Oct 21 2022 Benjamin A. Beasley - 3.1.0-1 - Update to 3.1.0 (close RHBZ#2136692) - Convert License to SPDX * Fri Jul 22 2022 Fedora Release Engineering - 3.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 3.0.0-2 - Rebuilt for Python 3.11 * Sat Feb 26 2022 Benjamin A. Beasley - 3.0.0-1 - Update to 3.0.0 (close RHBZ#2058811) * Fri Jan 21 2022 Fedora Release Engineering - 2.0.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Mon Oct 25 2021 Benjamin A. Beasley - 2.0.2-2 - Use %%%%python3 macro instead of %%%%__python3 * Fri Sep 17 2021 Benjamin A. Beasley - 2.0.2-1 - Initial package ## END: Generated by rpmautospec