public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Filipe Rosset <rosset.filipe@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/python-gsd] rawhide: Update to 5.0.1 + spec cleanup and modernization + fix build requirements
Date: Sun, 01 Nov 2026 23:25:09 GMT	[thread overview]
Message-ID: <179357550968.1.1277330745403756250.rpms-python-gsd-f0f1705d0aef@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/python-gsd
            Branch : rawhide
            Commit : f0f1705d0aef53ab56e3d18ab725d72864df1cc7
            Author : Filipe Rosset <rosset.filipe@gmail.com>
            Date   : 2026-08-08T18:33:22-03:00
            Stats  : +23/-13 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-gsd/c/f0f1705d0aef53ab56e3d18ab725d72864df1cc7?branch=rawhide

            Log:
            Update to 5.0.1 + spec cleanup and modernization + fix build requirements

Resolves: rhbz#2374993

---
diff --git a/python-gsd.spec b/python-gsd.spec
index 137a515..f0dbefc 100644
--- a/python-gsd.spec
+++ b/python-gsd.spec
@@ -1,5 +1,5 @@
 %global forgeurl https://github.com/glotzerlab/gsd
-Version:        4.2.0
+Version:        5.0.1
 %forgemeta
 
 Name:           python-gsd
@@ -10,8 +10,10 @@ License:        BSD-2-Clause
 URL:            %{forgeurl}
 Source0:        %{forgesource}
 
-BuildRequires:  python3-devel
 BuildRequires:  gcc
+BuildRequires:  python3-devel
+BuildRequires:  %{py3_dist cython}
+BuildRequires:  %{py3_dist numpy}
 BuildRequires:  %{py3_dist pytest}
 
 BuildSystem:    pyproject
@@ -34,21 +36,29 @@ Summary:        %{summary}
 
 %description -n python3-gsd %_description
 
+%prep
+%autosetup -p1 -n gsd-%{version}
+
+%install
+%pyproject_install
+%pyproject_save_files gsd
+# Remove development source files
+find %{buildroot}%{python3_sitearch}/gsd/ -name "*.c" -delete
+find %{buildroot}%{python3_sitearch}/gsd/ -name "*.h" -delete
+# Filter out these deleted files from pyproject_files
+sed -i -E '\#(gsd/fl\.c|gsd/gsd\.c|gsd/gsd\.h)$#d' %{pyproject_files}
+
 %check
-ln -s %{buildroot}%{python3_sitearch}/gsd/fl.abi3.so gsd/
+# Remove local gsd directory to prevent pytest from importing the uncompiled local source files
+rm -rf gsd
 # reading little-endian files on big-endian is unsupported
 # https://github.com/glotzerlab/gsd/issues/12
-%pytest -v gsd \
-    --basetemp=$(mktemp -d -p %{_tmppath}) \
-%ifarch s390x
--k "not test_gsd_v1_read \
-and not test_gsd_v1_upgrade_read \
-and not test_gsd_v1_write \
-and not test_gsd_v1_upgrade_write"
-%endif
+%pytest -v --pyargs gsd \
+    --basetemp=$(mktemp -d -p /tmp) \
+    -k "not test_gsd_v1_read and not test_gsd_v1_upgrade_read and not test_gsd_v1_write and not test_gsd_v1_upgrade_write"
 
 %files -n python3-gsd -f %{pyproject_files}
 %{_bindir}/gsd
 
 %changelog
-%autochangelog
\ No newline at end of file
+%autochangelog

diff --git a/sources b/sources
index 1f5234e..72b8874 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (gsd-4.2.0.tar.gz) = c31666c62a0df24119bd93965cd4e3c254e5c53ce1916508f842b5a64e9f0bde2c5f3bd6b13ef78c394f84f4d81c9b4245baa0fa4c03bae8687b2bf4be2524a6
+SHA512 (gsd-5.0.1.tar.gz) = c87a58d15575812375a4bb730803b58ec4fd20211cba8fe344f9f9cc204f12301fec70a0685363c51539d467050ac34932d1dfb03a1caa4a9fbf43a2543f2354

                 reply	other threads:[~2026-11-01 23:25 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=179357550968.1.1277330745403756250.rpms-python-gsd-f0f1705d0aef@fedoraproject.org \
    --to=rosset.filipe@gmail.com \
    --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