diff options
author | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2025-08-14 11:11:22 +0000 |
---|---|---|
committer | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2025-08-14 11:11:22 +0000 |
commit | 375993f7bef0c0d05985a63a73f30e66a1ab92c5 (patch) | |
tree | 297f812739e98b95c778061541bf1d9066f02ab8 | |
parent | e741cf1001aa070a6da04e3c02f00f4013ed07c6 (diff) |
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-indexed_gzip.spec | 66 | ||||
-rw-r--r-- | sources | 2 |
3 files changed, 39 insertions, 30 deletions
@@ -1,2 +1,3 @@ /indexed_gzip-1.9.1.tar.gz /indexed_gzip-1.9.5.tar.gz +/indexed_gzip-1.10.1.tar.gz diff --git a/python-indexed_gzip.spec b/python-indexed_gzip.spec index 64865a3..f7522dc 100644 --- a/python-indexed_gzip.spec +++ b/python-indexed_gzip.spec @@ -1,8 +1,8 @@ ## START: Set by rpmautospec -## (rpmautospec version 0.7.3) +## (rpmautospec version 0.8.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: - release_number = 1; + release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} @@ -16,7 +16,7 @@ %bcond nibabel 1 Name: python-indexed_gzip -Version: 1.9.5 +Version: 1.10.1 Release: %autorelease Summary: Fast random access of gzip files in Python @@ -24,6 +24,23 @@ License: Zlib URL: https://github.com/pauldmccarthy/indexed_gzip Source: %{pypi_source indexed_gzip} +BuildSystem: pyproject +BuildOption(install): -l indexed_gzip + +BuildRequires: gcc +BuildRequires: zlib-devel + +%if %{with tests} +# tests_require in setup.py: +BuildRequires: %{py3_dist pytest} +BuildRequires: %{py3_dist numpy} +%if %{with nibabel} +BuildRequires: %{py3_dist nibabel} +%endif +# added downstream to run tests in parallel: +BuildRequires: %{py3_dist pytest-xdist} +%endif + %global desc %{expand: The indexed_gzip project is a Python extension which aims to provide a drop-in replacement for the built-in Python gzip.GzipFile class, the IndexedGzipFile. @@ -47,23 +64,9 @@ decompress (on average) 512KB of data to read from any location in the file.} %description %{desc} + %package -n python3-indexed-gzip Summary: %{summary} -BuildRequires: python3-devel - -BuildRequires: gcc -BuildRequires: zlib-devel - -%if %{with tests} -# tests_require in setup.py: -BuildRequires: %{py3_dist pytest} -BuildRequires: %{py3_dist numpy} -%if %{with nibabel} -BuildRequires: %{py3_dist nibabel} -%endif -# added downstream to run tests in parallel: -BuildRequires: %{py3_dist pytest-xdist} -%endif # The binary subpackage was renamed to match the project canonical name # (https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_canonical_project_name). @@ -74,11 +77,8 @@ Obsoletes: python3-indexed_gzip < 1.7.0-4 %description -n python3-indexed-gzip %{desc} -%generate_buildrequires -%pyproject_buildrequires -%prep -%autosetup -n indexed_gzip-%{version} -p1 +%prep -a # Remove shebangs from non-script sources find indexed_gzip -type f -name '*.py' \ -exec gawk '/^#!/ { print FILENAME }; { nextfile }' '{}' '+' | @@ -87,23 +87,31 @@ find indexed_gzip -type f -name '*.py' \ # be regenerated. Retain “hand-written” C sources. find indexed_gzip -type f -name '*.pyx' | sed -r 's/\.pyx$/.c/' | xargs -r rm -vf -%build -%pyproject_wheel - -%install -%pyproject_install -%pyproject_save_files -l indexed_gzip -%check +%check -a %if %{with tests} %pytest %{buildroot}%{python3_sitearch}/indexed_gzip -n auto -k "${k-}" %endif + %files -n python3-indexed-gzip -f %{pyproject_files} %doc README.md + %changelog ## START: Generated by rpmautospec +* Wed Aug 13 2025 Benjamin A. Beasley <code@musicinmybrain.net> - 1.10.1-2 +- Use the provisional pyproject declarative buildsystem + +* Wed Aug 13 2025 Benjamin A. Beasley <code@musicinmybrain.net> - 1.10.1-1 +- Update to 1.10.1 (close RHBZ#2388203) + +* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.5-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + +* Fri Jun 06 2025 Python Maint <python-maint@redhat.com> - 1.9.5-2 +- Rebuilt for Python 3.14 + * Fri May 30 2025 Benjamin A. Beasley <code@musicinmybrain.net> - 1.9.5-1 - Update to 1.9.5 (close RHBZ#2329140) @@ -1 +1 @@ -d4d58441ab998329102ec3bc46c9d65a indexed_gzip-1.9.5.tar.gz +045af38435fd410417d47adfc2a4df5f indexed_gzip-1.10.1.tar.gz |