[packages/libglibutil] Up to 1.0.83
arekm
arekm at pld-linux.org
Thu Nov 26 09:04:56 CET 2026
commit 36771039bed30491dcc23c0315fb53de843f5850
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu Nov 26 01:09:09 2026 +0100
Up to 1.0.83
install.patch | 14 +++++++-------
libglibutil.spec | 15 +++++++++++++--
2 files changed, 20 insertions(+), 9 deletions(-)
---
diff --git a/libglibutil.spec b/libglibutil.spec
index 712f162..57da145 100644
--- a/libglibutil.spec
+++ b/libglibutil.spec
@@ -1,13 +1,17 @@
+#
+# Conditional build:
+%bcond_without tests # build without tests
+
Summary: Library of glib utilities
Summary(pl.UTF-8): Biblioteka narzędzi glib
Name: libglibutil
-Version: 1.0.67
+Version: 1.0.83
Release: 1
License: BSD
Group: Libraries
#Source0Download: https://github.com/sailfishos/libglibutil/tags
Source0: https://github.com/sailfishos/libglibutil/archive/%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: 4cc4b99b9561edf309d89f844806c3d1
+# Source0-md5: 076f0011c7195ca368b5b58a968d58c0
Patch0: install.patch
URL: https://github.com/sailfishos/libglibutil/
BuildRequires: glib2-devel >= 2.0
@@ -45,6 +49,13 @@ Pliki nagłówkowe biblioteki glibutil.
LIBDIR=%{_libdir} \
KEEP_SYMBOLS=1
+%if %{with tests}
+%{__make} -C test test-debug \
+ CC="%{__cc}" \
+ CFLAGS="%{rpmcflags} %{rpmcppflags}" \
+ LDFLAGS="%{rpmldflags}"
+%endif
+
%install
rm -rf $RPM_BUILD_ROOT
diff --git a/install.patch b/install.patch
index dbffad8..588df8b 100644
--- a/install.patch
+++ b/install.patch
@@ -1,6 +1,6 @@
---- libglibutil-1.0.67/Makefile~ 2022-08-28 13:01:13.000000000 +0200
-+++ libglibutil-1.0.67/Makefile 2022-12-31 18:28:25.948399811 +0100
-@@ -32,9 +32,7 @@
+--- libglibutil-1.0.83/Makefile.orig
++++ libglibutil-1.0.83/Makefile
+@@ -47,9 +47,7 @@
NAME = glibutil
LIB_NAME = lib$(NAME)
LIB_DEV_SYMLINK = $(LIB_NAME).so
@@ -8,10 +8,10 @@
-LIB_SYMLINK2 = $(LIB_SYMLINK1).$(VERSION_MINOR)
-LIB_SONAME = $(LIB_SYMLINK1)
+LIB_SONAME = $(LIB_DEV_SYMLINK).$(VERSION_MAJOR)
- LIB = $(LIB_SONAME).$(VERSION_MINOR).$(VERSION_RELEASE)
+ LIB = $(LIB_SONAME).$(VERSION_MINOR).$(VERSION_MICRO)
STATIC_LIB = $(LIB_NAME).a
-@@ -106,8 +104,8 @@
+@@ -113,8 +111,8 @@
DEBUG_LIB = $(DEBUG_BUILD_DIR)/$(LIB)
RELEASE_LIB = $(RELEASE_BUILD_DIR)/$(LIB)
@@ -22,7 +22,7 @@
DEBUG_DEV_LINK = $(DEBUG_BUILD_DIR)/$(LIB_DEV_SYMLINK)
RELEASE_DEV_LINK = $(RELEASE_BUILD_DIR)/$(LIB_DEV_SYMLINK)
DEBUG_STATIC_LIB = $(DEBUG_BUILD_DIR)/$(STATIC_LIB)
-@@ -201,10 +199,10 @@
+@@ -208,10 +206,10 @@
ln -sf $(LIB) $@
$(DEBUG_DEV_LINK): $(DEBUG_LINK)
@@ -35,7 +35,7 @@
$(DEBUG_STATIC_LIB): $(DEBUG_OBJS)
$(AR) rc $@ $?
-@@ -252,13 +250,12 @@
+@@ -259,13 +257,12 @@
#
install: $(INSTALL_LIB_DIR)
$(INSTALL) -m 755 $(RELEASE_LIB) $(INSTALL_LIB_DIR)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libglibutil.git/commitdiff/36771039bed30491dcc23c0315fb53de843f5850
More information about the pld-cvs-commit
mailing list