public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/Box2D] rawhide: Add pkgconfig file
@ 2026-06-16 13:39 Mattia Verga
0 siblings, 0 replies; only message in thread
From: Mattia Verga @ 2026-06-16 13:39 UTC (permalink / raw)
To: git-commits
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-16 13:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-16 13:39 [rpms/Box2D] rawhide: Add pkgconfig file Mattia Verga
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox