public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Vitaly Zaitsev <vitaly@easycoding.org>
To: git-commits@fedoraproject.org
Subject: [rpms/qr-code-generator] epel10.3: Enabled pkgconfig and CMake configs support.
Date: Wed, 09 Sep 2026 05:29:37 GMT	[thread overview]
Message-ID: <178893177705.1.11078741633731153425.rpms-qr-code-generator-f5888fc302de@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/qr-code-generator
            Branch : epel10.3
            Commit : f5888fc302de27a7fae196f379a1656dedc81093
            Author : Vitaly Zaitsev <vitaly@easycoding.org>
            Date   : 2021-09-02T18:39:44+02:00
            Stats  : +24/-6 in 3 file(s)
            URL    : https://src.fedoraproject.org/rpms/qr-code-generator/c/f5888fc302de27a7fae196f379a1656dedc81093?branch=epel10.3

            Log:
            Enabled pkgconfig and CMake configs support.

Enabled unit tests.
Added a legacy symlink for compatibility.

---
diff --git a/.gitignore b/.gitignore
index b8dd9b4..4433d87 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@
 /qr-code-generator-1.6.0.tar.gz
 /qr-code-generator-1.7.0.tar.gz
 /qrcodegen-cmake-1.7.0.tar.gz
+/qrcodegen-cmake-1.7.0-cmake1.tar.gz

diff --git a/qr-code-generator.spec b/qr-code-generator.spec
index 57b3880..019c88e 100644
--- a/qr-code-generator.spec
+++ b/qr-code-generator.spec
@@ -1,15 +1,16 @@
 %global richname QR-Code-generator
 %global cmakename qrcodegen-cmake
+%global cmakesuffix cmake1
 
 Name: qr-code-generator
 Version: 1.7.0
-Release: 1%{?dist}
+Release: 2%{?dist}
 
 License: MIT
 Summary: High-quality QR Code generator library
 URL: https://github.com/nayuki/%{richname}
 Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
-Source1: https://github.com/EasyCoding/%{cmakename}/archive/v%{version}/%{cmakename}-%{version}.tar.gz
+Source1: https://github.com/EasyCoding/%{cmakename}/archive/v%{version}-%{cmakesuffix}/%{cmakename}-%{version}-%{cmakesuffix}.tar.gz
 
 BuildRequires: cmake
 BuildRequires: gcc
@@ -80,13 +81,14 @@ comments.
 %prep
 %autosetup -n %{richname}-%{version}
 
-# Unpacking CMake build script...
-tar -xf %{SOURCE1} %{cmakename}-%{version}/CMakeLists.txt --strip=1
+# Unpacking CMake build script and assets...
+tar -xf %{SOURCE1} %{cmakename}-%{version}-%{cmakesuffix}/cmake %{cmakename}-%{version}-%{cmakesuffix}/CMakeLists.txt --strip=1
 
 %build
 # Building C and C++ versions...
 %cmake -G Ninja \
-    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_BUILD_TYPE=Release \
+    -DBUILD_TESTS:BOOL=ON
 %cmake_build
 
 # Building Python version...
@@ -94,6 +96,9 @@ pushd python
 %py3_build
 popd
 
+%check
+%ctest
+
 %install
 # Installing C and C++ versions...
 %cmake_install
@@ -103,13 +108,18 @@ pushd python
 %py3_install
 popd
 
+# Installing a legacy symlink for compatibility...
+ln -s qrcodegen.hpp %{buildroot}%{_includedir}/qrcodegencpp/QrCode.hpp
+
 %files -n libqrcodegen
 %license Readme.markdown
 %{_libdir}/libqrcodegen.so.1*
 
 %files -n libqrcodegen-devel
 %{_includedir}/qrcodegen/
+%{_libdir}/cmake/qrcodegen/
 %{_libdir}/libqrcodegen.so
+%{_libdir}/pkgconfig/qrcodegen.pc
 
 %files -n libqrcodegencpp
 %license Readme.markdown
@@ -117,7 +127,9 @@ popd
 
 %files -n libqrcodegencpp-devel
 %{_includedir}/qrcodegencpp/
+%{_libdir}/cmake/qrcodegencpp/
 %{_libdir}/libqrcodegencpp.so
+%{_libdir}/pkgconfig/qrcodegencpp.pc
 
 %files -n python3-qrcodegen
 %license Readme.markdown
@@ -126,6 +138,11 @@ popd
 %{python3_sitelib}/qrcodegen-*.egg-info/
 
 %changelog
+* Thu Sep 02 2021 Vitaly Zaitsev <vitaly@easycoding.org> - 1.7.0-2
+- Enabled pkgconfig and CMake configs support.
+- Enabled unit tests.
+- Added a legacy symlink for compatibility.
+
 * Mon Aug 09 2021 Vitaly Zaitsev <vitaly@easycoding.org> - 1.7.0-1
 - Updated to version 1.7.0.
 - Switched to CMake build system.

diff --git a/sources b/sources
index 9fd7d0d..c6d4a2b 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
 SHA512 (qr-code-generator-1.7.0.tar.gz) = 34efa40c382b6e7d060a764936c4e2faa4fbbecd5ea4730492a2cb1960656ed67242d84e20a42400ffdee063ed6bcf3b860fef309d09ee71303f44abaafe9328
-SHA512 (qrcodegen-cmake-1.7.0.tar.gz) = 54f3e5463c1e9d1d8a74ff832dad6f4ba27888e1bcd298f252fa8d85818a74e67ac27c7093be786c97b1da3c04f0d7b19e26ccf1b37f71eb0f5b66adecc752fa
+SHA512 (qrcodegen-cmake-1.7.0-cmake1.tar.gz) = 8c7a109e2a0ca9e090692a669e0e94937b5e1e245a8aa74562a4d683dae442eb735cd8339acce2e1461374b6b0341421a3ffba6cb071887c0a856b9450531ae0

                 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=178893177705.1.11078741633731153425.rpms-qr-code-generator-f5888fc302de@fedoraproject.org \
    --to=vitaly@easycoding.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