summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2025-02-04 08:14:40 +0000
committerCoprDistGit <infra@openeuler.org>2025-02-04 08:14:40 +0000
commit073193e6dd78bdb8b4392cfec698212bdd54ac34 (patch)
tree28d89eceb405b7d28ff2e3d53450b73485bf4375
parenta9bbf9507ab7afda96f1fa49ac2d9058bcbfe8ba (diff)
automatic import of gobject-introspectionopeneuler24.03_LTS
-rw-r--r--gobject-introspection-typelib.template18
-rw-r--r--gobject-introspection.spec15
2 files changed, 31 insertions, 2 deletions
diff --git a/gobject-introspection-typelib.template b/gobject-introspection-typelib.template
new file mode 100644
index 0000000..9f8a87e
--- /dev/null
+++ b/gobject-introspection-typelib.template
@@ -0,0 +1,18 @@
+typelib(DBus) = 1.0
+typelib(DBusGLib) = 1.0
+typelib(GIRepository) = 2.0
+typelib(GL) = 1.0
+typelib(GLib) = 2.0
+typelib(GModule) = 2.0
+typelib(GObject) = 2.0
+typelib(Gio) = 2.0
+typelib(Vulkan) = 1.0
+typelib(cairo) = 1.0
+typelib(fontconfig) = 2.0
+typelib(freetype2) = 2.0
+typelib(libxml2) = 2.0
+typelib(win32) = 1.0
+typelib(xfixes) = 4.0
+typelib(xft) = 2.0
+typelib(xlib) = 2.0
+typelib(xrandr) = 1.3
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