diff options
Diffstat (limited to 'gobject-introspection.spec')
-rw-r--r-- | gobject-introspection.spec | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/gobject-introspection.spec b/gobject-introspection.spec index d1b332d..b4f413e 100644 --- a/gobject-introspection.spec +++ b/gobject-introspection.spec @@ -2,7 +2,7 @@ Name: gobject-introspection Version: 1.76.1 -Release: 2 +Release: 3 Summary: Introspection system for GObject-based libraries License: GPL-2.0-or-later AND LGPL-2.0-or-later AND LGPL-2.1-or-later AND BSD-2-Clause URL: https://gi.readthedocs.io/ @@ -11,6 +11,7 @@ Source0: https://download.gnome.org/sources/gobject-introspection/1.76/%{ # Script creates typelib()-style Provides/Requires. Source1: gi-find-deps.sh Source2: gobjectintrospection.attr +Source3: gobject-introspection-typelib.template BuildRequires: gcc BuildRequires: meson >= 0.60.0 @@ -29,6 +30,9 @@ BuildRequires: gtk-doc BuildRequires: /usr/bin/bison BuildRequires: /usr/bin/flex Requires: glib2%{?_isa} >= %{glib2_version} +# Provide typelib() symbols based on gobject-introspection-typelib.template +# The template is checked during install if it matches the installed *.typelib files. +%(cat %{S:3} | awk '{ print "Provides: " $0}') %description GObject Introspection can scan C header and source files in order to @@ -69,6 +73,10 @@ install -D %{S:2} -m 0644 %{buildroot}%{_fileattrsdir}/gobjectintrospection.attr %check %meson_test +# comparing, if we provide all the symbols expected. +ls %{buildroot}%{_libdir}/girepository-1.0/*.typelib | bash %{S:1} -P > gobject-introspection-typelib.installed +diff -s %{S:3} gobject-introspection-typelib.installed + %files %license COPYING COPYING.GPL COPYING.LGPL %{_libdir}/lib*.so.* @@ -87,7 +95,7 @@ install -D %{S:2} -m 0644 %{buildroot}%{_fileattrsdir}/gobjectintrospection.attr %{_rpmconfigdir}/gi-find-deps.sh %{_fileattrsdir}/gobjectintrospection.attr -#%files help +%files help %doc NEWS README.rst %dir %{_datadir}/gtk-doc %dir %{_datadir}/gtk-doc/html @@ -95,6 +103,9 @@ install -D %{S:2} -m 0644 %{buildroot}%{_fileattrsdir}/gobjectintrospection.attr %{_mandir}/man1/*.1* %changelog +* Mon Oct 14 2024 Funda Wang <fundawang@yeah.net> - 1.76.1-3 +- check typelib provides against installed typelib libs + * Mon Sep 23 2024 Funda Wang <fundawang@yeah.net> - 1.76.1-2 - Add gi-find-deps script from openSUSE to ease dependency solving |