public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: David Shea <david@reallylongword.org>
To: git-commits@fedoraproject.org
Subject: [rpms/python-polib] rawhide: Use the newer python build macros in the spec file
Date: Sun, 30 Aug 2026 14:39:18 GMT	[thread overview]
Message-ID: <178810075817.1.16145249579697623184.rpms-python-polib-d007485cfe5f@fedoraproject.org> (raw)

            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
 

                 reply	other threads:[~2026-08-30 14:39 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=178810075817.1.16145249579697623184.rpms-python-polib-d007485cfe5f@fedoraproject.org \
    --to=david@reallylongword.org \
    --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