public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/qr-code-generator] epel10.3: Convert to pyproject RPM macros
Date: Wed, 09 Sep 2026 05:29:45 GMT	[thread overview]
Message-ID: <178893178505.1.16993675658808678626.rpms-qr-code-generator-e851a853308f@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/qr-code-generator
            Branch : epel10.3
            Commit : e851a853308f0e42f41e0c6b509f01be7c2887ba
            Author : Miro Hrončok <miro@hroncok.cz>
            Date   : 2025-06-08T22:03:15+02:00
            Stats  : +12/-13 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/qr-code-generator/c/e851a853308f0e42f41e0c6b509f01be7c2887ba?branch=epel10.3

            Log:
            Convert to pyproject RPM macros

See https://fedoraproject.org/wiki/Changes/DeprecateSetuppyMacros

Also move %check after %install (it happens after %install).

---
diff --git a/qr-code-generator.spec b/qr-code-generator.spec
index e9261ed..a84a9c1 100644
--- a/qr-code-generator.spec
+++ b/qr-code-generator.spec
@@ -17,7 +17,6 @@ BuildRequires: gcc
 BuildRequires: gcc-c++
 BuildRequires: ninja-build
 BuildRequires: python3-devel
-BuildRequires: python3-setuptools
 
 %description
 This project aims to be the best, clearest QR Code generator library in
@@ -68,7 +67,6 @@ Development files and headers for high-quality QR Code generator library
 %package -n python3-qrcodegen
 Summary: High-quality QR Code generator library (Python version)
 BuildArch: noarch
-%{?python_provide:%python_provide python3-qrcodegen}
 
 %description -n python3-qrcodegen
 This project aims to be the best, clearest QR Code generator library in
@@ -84,6 +82,10 @@ comments.
 # Unpacking CMake build script and assets...
 tar -xf %{SOURCE1} %{cmakename}-%{version}-%{cmakesuffix}/cmake %{cmakename}-%{version}-%{cmakesuffix}/CMakeLists.txt --strip=1
 
+%generate_buildrequires
+pushd python >&2
+%pyproject_buildrequires
+
 %build
 # Building C and C++ versions...
 %cmake -G Ninja \
@@ -93,24 +95,24 @@ tar -xf %{SOURCE1} %{cmakename}-%{version}-%{cmakesuffix}/cmake %{cmakename}-%{v
 
 # Building Python version...
 pushd python
-%py3_build
+%pyproject_wheel
 popd
 
-%check
-%ctest
-
 %install
 # Installing C and C++ versions...
 %cmake_install
 
 # Installing Python version...
-pushd python
-%py3_install
-popd
+%pyproject_install
+%pyproject_save_files qrcodegen
 
 # Installing a legacy symlink for compatibility...
 ln -s qrcodegen.hpp %{buildroot}%{_includedir}/qrcodegencpp/QrCode.hpp
 
+%check
+%ctest
+%pyproject_check_import
+
 %files -n libqrcodegen
 %license Readme.markdown
 %{_libdir}/libqrcodegen.so.1*
@@ -131,11 +133,8 @@ ln -s qrcodegen.hpp %{buildroot}%{_includedir}/qrcodegencpp/QrCode.hpp
 %{_libdir}/libqrcodegencpp.so
 %{_libdir}/pkgconfig/qrcodegencpp.pc
 
-%files -n python3-qrcodegen
+%files -n python3-qrcodegen -f %{pyproject_files}
 %license Readme.markdown
-%{python3_sitelib}/qrcodegen.py
-%{python3_sitelib}/__pycache__/*
-%{python3_sitelib}/qrcodegen-*.egg-info/
 
 %changelog
 * Mon Jun 02 2025 Python Maint <python-maint@redhat.com> - 1.8.0-13

                 reply	other threads:[~2026-09-09  5:29 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=178893178505.1.16993675658808678626.rpms-qr-code-generator-e851a853308f@fedoraproject.org \
    --to=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