diff --git a/snapd-glib-1.67-upstream-install-snapdqt_global_h.patch.patch b/snapd-glib-1.67-upstream-install-snapdqt_global_h.patch.patch new file mode 100644 index 0000000..131af2d --- /dev/null +++ b/snapd-glib-1.67-upstream-install-snapdqt_global_h.patch.patch @@ -0,0 +1,22 @@ +From 6620406c7280a1f56b53151131350050df8d24af Mon Sep 17 00:00:00 2001 +From: Aleix Pol +Date: Mon, 7 Apr 2025 23:45:35 +0200 +Subject: [PATCH] Install the globals file, otherwise we can't build the rest + of headers + +--- + snapd-qt/meson.build | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/snapd-qt/meson.build b/snapd-qt/meson.build +index 9eab6766..6c3ac15e 100644 +--- a/snapd-qt/meson.build ++++ b/snapd-qt/meson.build +@@ -113,6 +113,7 @@ source_h = [ + 'Snapd/task-data.h', + 'Snapd/user-information.h', + 'Snapd/wrapped-object.h', ++ 'Snapd/snapdqt_global.h', + ] + + source_alias_h = [ diff --git a/snapd-glib.spec b/snapd-glib.spec index 8d4837d..b4aeeb0 100644 --- a/snapd-glib.spec +++ b/snapd-glib.spec @@ -1,6 +1,6 @@ Name: snapd-glib Version: 1.67 -Release: 1mamba +Release: 2mamba Summary: A library to allow GLib and Qt based applications access to snapd Group: System/Libraries Vendor: openmamba @@ -8,6 +8,7 @@ Distribution: openmamba Packager: Silvan Calarco URL: https://snapcraft.io/ Source: https://github.com/snapcore/snapd-glib.git/%{version}/snapd-glib-%{version}.tar.bz2 +Patch0: snapd-glib-1.67-upstream-install-snapdqt_global_h.patch.patch License: LGPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel @@ -57,9 +58,9 @@ Requires: pkg-config %description -n libsnapd-qt-devel This package contains libraries and header files for developing applications that use %{name}. - %prep %setup -q +%patch 0 -p1 -b .upstream-install-snapdqt_global_h.patch %build %meson @@ -72,8 +73,6 @@ This package contains libraries and header files for developing applications tha %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" - - %files -n lib%{name} %defattr(-,root,root) %{_libdir}/libsnapd-glib-2.so.* @@ -117,6 +116,9 @@ This package contains libraries and header files for developing applications tha %{_libdir}/pkgconfig/snapd-qt-2.pc %changelog +* Sun May 11 2025 Silvan Calarco 1.67-2mamba +- added upstream patch to install required header snapdqt_global.h + * Wed Apr 02 2025 Automatic Build System 1.67-1mamba - automatic version update by autodist