public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Mattia Verga <mattia.verga@proton.me>
To: git-commits@fedoraproject.org
Subject: [rpms/Box2D] rawhide: Add pkgconfig file
Date: Tue, 16 Jun 2026 13:39:17 GMT	[thread overview]
Message-ID: <178161715722.1.4801246053612272058.rpms-Box2D-30e868270d6e@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/Box2D
Branch : rawhide
Commit : 30e868270d6eb345cbe2ce650b8359dac80c73e9
Author : Mattia Verga <mattia.verga@proton.me>
Date   : 2026-06-13T14:18:02+02:00
Stats  : +26/-1 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/Box2D/c/30e868270d6eb345cbe2ce650b8359dac80c73e9?branch=rawhide

Log:
Add pkgconfig file

---
diff --git a/Box2D.spec b/Box2D.spec
index 2f9a057..c99e28f 100644
--- a/Box2D.spec
+++ b/Box2D.spec
@@ -1,6 +1,6 @@
 Name: Box2D
 Version:  3.1.1
-Release:  1%{?dist}
+Release:  2%{?dist}
 Summary: A 2D Physics Engine for Games
 
 License: Zlib
@@ -46,6 +46,27 @@ rm -r extern
 %install
 %cmake_install
 
+# Add pkgconfig file
+# This mimics what debian does
+# Adding the file has been requested upstream
+# https://github.com/erincatto/box2d/issues/1068
+mkdir %{buildroot}%{_libdir}/pkgconfig
+
+cat > box2d.pc << 'EOF'
+prefix=%{_prefix}
+exec_prefix=${prefix}
+libdir=%{_libdir}
+includedir=%{_includedir}
+
+Name: box2d
+Description: 2D physics engine
+Version: %{version}
+Libs: -L${libdir} -lbox2d
+Cflags: -I${includedir}/box2d
+EOF
+
+mv -f box2d.pc %{buildroot}%{_libdir}/pkgconfig/box2d.pc
+
 %files
 %license LICENSE
 %{_libdir}/*.so.3*
@@ -55,8 +76,12 @@ rm -r extern
 %{_libdir}/*.so
 %{_includedir}/box2d
 %{_libdir}/cmake/box2d/*.cmake
+%{_libdir}/pkgconfig/box2d.pc
 
 %changelog
+* Sat Jun 13 2026 Mattia Verga <mattia.verga@proton.me> - 3.1.1-2
+- Add pkgconfig file
+
 * Sat Jun 06 2026 Mattia Verga <mattia.verga@proton.me> - 3.1.1-1
 - Update to 3.1.1
 

                 reply	other threads:[~2026-06-16 13: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=178161715722.1.4801246053612272058.rpms-Box2D-30e868270d6e@fedoraproject.org \
    --to=mattia.verga@proton.me \
    --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