public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-polib] rawhide: Use the newer python build macros in the spec file
@ 2026-08-30 14:39 David Shea
  0 siblings, 0 replies; only message in thread
From: David Shea @ 2026-08-30 14:39 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/python-polib
            Branch : rawhide
            Commit : d007485cfe5f969ded66b38e9d0cb1a68d9e554f
            Author : David Shea <david@reallylongword.org>
            Date   : 2026-08-30T10:25:18-04:00
            Stats  : +12/-7 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-polib/c/d007485cfe5f969ded66b38e9d0cb1a68d9e554f?branch=rawhide

            Log:
            Use the newer python build macros in the spec file

Resolves: rhbz#2378003

---
diff --git a/python-polib.spec b/python-polib.spec
index b138253..19ee7a4 100644
--- a/python-polib.spec
+++ b/python-polib.spec
@@ -2,7 +2,7 @@
 
 Name:           python-%{srcname}
 Version:        1.2.0
-Release:        16%{?dist}
+Release:        17%{?dist}
 Summary:        A library to parse and manage gettext catalogs
 
 License:        MIT
@@ -24,8 +24,6 @@ POFile, MOFile, POEntry and MOEntry for creating new files/entries.
 %package -n python3-%{srcname}
 Summary:        A library to parse and manage gettext catalogs
 BuildRequires:  python3-devel
-BuildRequires:  python3-setuptools
-%{?python_provide:%python_provide python3-%{srcname}}
 
 %description -n python3-%{srcname}
 polib allows you to manipulate, create, modify gettext files (pot, po and
@@ -37,24 +35,31 @@ polib provides a simple and pythonic API, exporting only three convenience
 functions 'pofile', 'mofile' and 'detect_encoding', and the 4 core classes:
 POFile, MOFile, POEntry and MOEntry for creating new files/entries.
 
+%generate_buildrequires
+%pyproject_buildrequires
+
 %prep
 %autosetup -n %{srcname}-%{version}
 
 %build
-%py3_build
+%pyproject_wheel
 
 %install
-%py3_install
+%pyproject_install
+%pyproject_save_files polib
 
 %check
 %{__python3} tests/tests.py
 
-%files -n python3-%{srcname}
+%files -n python3-%{srcname} -f %{pyproject_files}
 %doc README.rst
 %license LICENSE
-%{python3_sitelib}/*
 
 %changelog
+* Sun Aug 30 2026 David Shea <reallylongword@gmail.com> - 1.2.0-17
+- Use the newer python build macros in the spec file
+  Resolves: rhbz#2378003
+
 * Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-16
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
 

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

only message in thread, other threads:[~2026-08-30 14:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-30 14:39 [rpms/python-polib] rawhide: Use the newer python build macros in the spec file David Shea

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