public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Benjamin A. Beasley <code@musicinmybrain.net>
To: git-commits@fedoraproject.org
Subject: [rpms/python-fastavro] rawhide: Use the provisional pyproject declarative buildsystem
Date: Sun, 23 Aug 2026 09:57:56 GMT	[thread overview]
Message-ID: <178747907623.1.9161808664347082226.rpms-python-fastavro-c75ff1ebc0b5@fedoraproject.org> (raw)

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.

                 reply	other threads:[~2026-08-23  9:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178747907623.1.9161808664347082226.rpms-python-fastavro-c75ff1ebc0b5@fedoraproject.org \
    --to=code@musicinmybrain.net \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox