Accepting request 71662 from home:dimstar:branches:Base:System

A little bit more advanced check to get typelib() style provides here too... checking during install if the template list matches

OBS-URL: https://build.opensuse.org/request/show/71662
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gobject-introspection?expand=0&rev=49
This commit is contained in:
Vincent Untz 2011-05-27 10:41:06 +00:00 committed by Git OBS Bridge
parent 1f1d2717b3
commit e257168b83
3 changed files with 31 additions and 1 deletions

View File

@ -0,0 +1,16 @@
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(cairo) = 1.0
typelib(fontconfig) = 2.0
typelib(freetype2) = 2.0
typelib(libxml2) = 2.0
typelib(xfixes) = 4.0
typelib(xft) = 2.0
typelib(xlib) = 2.0
typelib(xrandr) = 1.3

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri May 27 10:07:14 UTC 2011 - dimstar@opensuse.org
- Manually provide the typelib() symbols for libgirepository-1_0-1.
The rpm magic is not yet in place and can thus not automatically
detect the symbols.
-------------------------------------------------------------------
Tue May 17 09:06:56 UTC 2011 - dimstar@opensuse.org

View File

@ -29,6 +29,7 @@ Source0: %{name}-%{version}.tar.bz2
# gi-find-deps.sh is a rpm helper for Provides and Requires. Script creates typelib()-style Provides/Requires.
Source1: gi-find-deps.sh
Source2: gobjectintrospection.attr
Source3: gobject-introspection-typlib.template
Source99: %{name}-rpmlintrc
BuildRequires: bison
BuildRequires: fdupes
@ -54,6 +55,9 @@ a uniform, machine readable format.
License: LGPLv2.1+
Summary: GObject Introspection Library
Group: Development/Libraries/GNOME
# Provide typelib() symbols based on gobject-introspection-typlib.template
# The template is checked during install if it matches the installed *.typelib files.
%(cat %{S:3} | awk '{ print "Provides: " $1}')
%description -n libgirepository-1_0-1
The goal of the project is to describe the APIs and collect them in
@ -84,13 +88,16 @@ a uniform, machine readable format.
--enable-gtk-doc \
%endif
--disable-static
%__make %{?jobs:-j%jobs} V=1
%__make %{?_smp_mflags} V=1
%install
%makeinstall
find %{buildroot} -type f -name "*.la" -delete -print
install -D %{S:1} %{buildroot}%{_rpmconfigdir}/gi-find-deps.sh
install -D %{S:2} -m 0644 %{buildroot}%{_rpmconfigdir}/fileattrs/gobjectintrospection.attr
# comparing, if we provide all the symbols expected.
ls %{buildroot}%{_libdir}/girepository-1.0/*.typelib | sh %{S:1} -P > gobject-introspection-typelib.installed
diff -s %{S:3} gobject-introspection-typelib.installed
%fdupes %{buildroot}
%clean