Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package stb for openSUSE:Factory checked in 
at 2025-03-10 17:57:39
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/stb (Old)
 and      /work/SRC/openSUSE:Factory/.stb.new.19136 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "stb"

Mon Mar 10 17:57:39 2025 rev:9 rq:1251487 version:20240910

Changes:
--------
--- /work/SRC/openSUSE:Factory/stb/stb.changes  2025-02-03 21:46:43.338442011 
+0100
+++ /work/SRC/openSUSE:Factory/.stb.new.19136/stb.changes       2025-03-10 
17:57:44.179542307 +0100
@@ -1,0 +2,6 @@
+Wed Mar  5 10:52:48 UTC 2025 - Callum Farmer <gm...@opensuse.org>
+
+- Move pkgconfig creation to source file with sed command to
+  hopefully avoid obs set_version breaking the pc version tag
+
+-------------------------------------------------------------------

New:
----
  stb.pc.in

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ stb.spec ++++++
--- /var/tmp/diff_new_pack.fIqHpR/_old  2025-03-10 17:57:45.659604431 +0100
+++ /var/tmp/diff_new_pack.fIqHpR/_new  2025-03-10 17:57:45.659604431 +0100
@@ -24,6 +24,7 @@
 Group:          Development/Libraries/C and C++
 URL:            https://github.com/nothings/stb
 Source0:        stb-%{version}.tar.xz
+Source1:        stb.pc.in
 # perlin.h got removed in git, breaking build
 Patch1:         fix-compile.patch
 BuildRequires:  c++_compiler
@@ -87,17 +88,11 @@
 %autosetup -p1
 
 %build
-# pkgconf
-cat > stb.pc << EOF
-prefix=%{_prefix}
-exec_prefix=\${prefix}
-includedir=%{_includedir}
-
-Name:           %{name}
-Description:    %{summary}
-Version:        20240910%{version}
-Cflags:         -I\${includedir}/stb
-EOF
+sed \
+    -e "s-@_prefix@-%{_prefix}-g" \
+    -e "s-@_includedir@-%{_includedir}-g" \
+    -e "s-@version@-%{version}-g" \
+%{SOURCE1} > stb.pc
 
 %install
 mkdir -p %buildroot%_includedir/stb

++++++ stb.pc.in ++++++
prefix=@_prefix@
includedir=@_includedir@

Name:           stb
Description:    Single-File Public Domain Libraries for C/C++
Version:        @version@
Cflags:         -I${includedir}/stb

Reply via email to