public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-fastavro] rawhide: Use the provisional pyproject declarative buildsystem
@ 2026-08-23  9:57 Benjamin A. Beasley
  0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-08-23  9:57 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/python-fastavro
Branch : rawhide
Commit : c75ff1ebc0b5bc04a283623d260c3edcf0bbdc52
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2026-08-23T09:35:59+01:00
Stats  : +9/-16 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/python-fastavro/c/c75ff1ebc0b5bc04a283623d260c3edcf0bbdc52?branch=rawhide

Log:
Use the provisional pyproject declarative buildsystem

---
diff --git a/python-fastavro.spec b/python-fastavro.spec
index 8ec457d..7e2c619 100644
--- a/python-fastavro.spec
+++ b/python-fastavro.spec
@@ -29,6 +29,11 @@ Source:         %{pypi_source fastavro}
 # Fedora bug: https://bugzilla.redhat.com/show_bug.cgi?id=1943932
 ExcludeArch:    %{ix86}
 
+BuildSystem:    pyproject
+# codecs includes snappy, zstandard, and lz4
+BuildOption(generate_buildrequires): --extras codecs
+BuildOption(install): --assert-license fastavro
+
 BuildRequires:  gcc
 
 BuildRequires:  make
@@ -98,9 +103,7 @@ Summary:        %{summary}
 Documentation for python-fastavro.
 
 
-%prep
-%autosetup -p1 -n fastavro-%{version}
-
+%prep -a
 # Remove the already generated C files so we generate them ourselves
 find fastavro/ -name '*.c' -print -delete
 
@@ -110,14 +113,7 @@ find fastavro/ -name '*.c' -print -delete
 echo 'intersphinx_mapping.clear()' >> docs/conf.py
 
 
-%generate_buildrequires
-# codecs includes snappy, zstandard, and lz4
-%pyproject_buildrequires --extras codecs
-
-
-%build
-%pyproject_wheel
-
+%build -a
 BLIB="${PWD}/build/lib.%{python3_platform}-cpython-%{python3_version_nodots}"
 PYTHONPATH="${BLIB}" %make_build --directory=docs man \
     SPHINXOPTS='--nitpicky --jobs=%{?_smp_build_ncpus}'
@@ -128,15 +124,12 @@ PYTHONPATH="${BLIB}" %make_build --directory=docs latex \
 %endif
 
 
-%install
-%pyproject_install
-%pyproject_save_files --assert-license fastavro
-
+%install -a
 install -D --target='%{buildroot}%{_mandir}/man1' \
     --preserve-timestamps --mode=0644 'docs/_build/man/fastavro.1'
 
 
-%check
+%check -a
 # These fail because there are no source lines in the tracebacks from Cython
 # modules, even though this works in the upstream CI. We haven’t figured out
 # the root cause, but it doesn’t seem to represent a real problem.

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-23  9:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-23  9:57 [rpms/python-fastavro] rawhide: Use the provisional pyproject declarative buildsystem Benjamin A. Beasley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox