public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/qr-code-generator] epel10.3: Convert to pyproject RPM macros
@ 2026-09-09 5:29
0 siblings, 0 replies; only message in thread
From: @ 2026-09-09 5:29 UTC (permalink / raw)
To: git-commits
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-09 5:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-09 5:29 [rpms/qr-code-generator] epel10.3: Convert to pyproject RPM macros
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox