[packages/prometheus-cpp-lite] - added patch with missing C++ includes, disable debug packages (only static library built)

qboosh qboosh at pld-linux.org
Wed Jun 18 19:24:08 CEST 2025


commit ae47540912f7370023e8e12c637b85d4be9c1b25
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Jun 18 19:06:32 2025 +0200

    - added patch with missing C++ includes, disable debug packages (only static library built)

 prometheus-cpp-lite-includes.patch | 20 ++++++++++++++++++++
 prometheus-cpp-lite.spec           |  4 ++++
 2 files changed, 24 insertions(+)
---
diff --git a/prometheus-cpp-lite.spec b/prometheus-cpp-lite.spec
index a4cb68f..cb9d7bd 100644
--- a/prometheus-cpp-lite.spec
+++ b/prometheus-cpp-lite.spec
@@ -10,6 +10,7 @@ Source0:	https://github.com/biaks/prometheus-cpp-lite/archive/v%{version}/%{name
 # Source0-md5:	284064732a693846673b1852e75ae2cc
 # git log -p --reverse v1.0..master
 Patch0:		%{name}-git.patch
+Patch1:		%{name}-includes.patch
 URL:		https://github.com/biaks/prometheus-cpp-lite
 BuildRequires:	cmake >= 3.2
 BuildRequires:	libstdc++-devel >= 6:4.7
@@ -17,6 +18,8 @@ BuildRequires:	rpm-build >= 4.6
 BuildRequires:	rpmbuild(macros) >= 1.605
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define		_enable_debug_packages	0
+
 %description
 It is a tool for quickly adding metrics (and profiling) functionality
 to C++ projects.
@@ -111,6 +114,7 @@ Biblioteka Simple API klienta Prometheusa.
 %prep
 %setup -q
 %patch -P0 -p1
+%patch -P1 -p1
 
 %build
 install -d build
diff --git a/prometheus-cpp-lite-includes.patch b/prometheus-cpp-lite-includes.patch
new file mode 100644
index 0000000..ac0f37c
--- /dev/null
+++ b/prometheus-cpp-lite-includes.patch
@@ -0,0 +1,20 @@
+--- prometheus-cpp-lite-1.0/core/include/prometheus/family.h.orig	2025-06-18 19:00:46.835329607 +0200
++++ prometheus-cpp-lite-1.0/core/include/prometheus/family.h	2025-06-18 19:02:00.849097395 +0200
+@@ -4,6 +4,7 @@
+ #include <map>
+ #include <memory>
+ #include <mutex>
++#include <stdexcept>
+ #include <string>
+ #include <unordered_map>
+ #include <vector>
+--- prometheus-cpp-lite-1.0/core/include/prometheus/registry.h.orig	2021-08-29 15:04:00.000000000 +0200
++++ prometheus-cpp-lite-1.0/core/include/prometheus/registry.h	2025-06-18 19:02:17.605862429 +0200
+@@ -3,6 +3,7 @@
+ #include <map>
+ #include <memory>
+ #include <mutex>
++#include <stdexcept>
+ #include <string>
+ #include <vector>
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/prometheus-cpp-lite.git/commitdiff/ae47540912f7370023e8e12c637b85d4be9c1b25



More information about the pld-cvs-commit mailing list