2009-07-04 10:21:10 +02:00
|
|
|
#
|
2011-04-22 13:36:48 +02:00
|
|
|
# spec file for package gobject-introspection
|
2009-07-04 10:21:10 +02:00
|
|
|
#
|
2012-01-18 20:59:22 +01:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2009-07-04 10:21:10 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-03-11 18:45:31 +01:00
|
|
|
|
2009-07-04 10:21:10 +02:00
|
|
|
Name: gobject-introspection
|
2012-09-21 21:24:07 +02:00
|
|
|
Version: 1.33.14
|
2011-12-21 05:15:50 +01:00
|
|
|
Release: 0
|
2010-09-18 15:19:53 +02:00
|
|
|
# FIXME: when bgo#629930 gets fixed, move the appropriate pkg-config files to the main package and rename the devel package to libgirepository-devel
|
|
|
|
Summary: GObject Introspection Tools
|
2012-06-06 17:42:38 +02:00
|
|
|
License: LGPL-2.1+ and GPL-2.0+
|
2010-09-18 15:19:53 +02:00
|
|
|
Group: Development/Libraries/GNOME
|
2011-12-21 05:15:50 +01:00
|
|
|
Url: http://live.gnome.org/GObjectIntrospection
|
2012-09-07 17:51:51 +02:00
|
|
|
Source0: http://download.gnome.org/sources/gobject-introspection/1.33/%{name}-%{version}.tar.xz
|
2011-04-27 16:49:19 +02:00
|
|
|
# gi-find-deps.sh is a rpm helper for Provides and Requires. Script creates typelib()-style Provides/Requires.
|
2011-04-27 16:45:13 +02:00
|
|
|
Source1: gi-find-deps.sh
|
2011-05-27 10:44:43 +02:00
|
|
|
Source2: gobjectintrospection.attr
|
2011-05-31 10:01:33 +02:00
|
|
|
Source3: gobject-introspection-typelib.template
|
2011-04-27 16:45:13 +02:00
|
|
|
Source99: %{name}-rpmlintrc
|
2011-12-12 16:44:10 +01:00
|
|
|
# PATCH-FIX-UPSTREAM g-ir-dep-tool.patch bgo#665672 dimstar@opensuse.org -- Add g-ir-dep-tool to get further automatic dependencies.
|
|
|
|
Patch0: g-ir-dep-tool.patch
|
2009-07-04 10:21:10 +02:00
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: flex
|
|
|
|
BuildRequires: libffi-devel
|
2011-12-12 16:46:25 +01:00
|
|
|
# needed for patch0
|
2011-12-12 16:44:10 +01:00
|
|
|
BuildRequires: libtool
|
2009-07-04 10:21:10 +02:00
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: python-xml
|
2010-08-09 16:39:08 +02:00
|
|
|
BuildRequires: pkgconfig(cairo)
|
2012-09-07 17:51:51 +02:00
|
|
|
BuildRequires: pkgconfig(cairo-gobject)
|
2010-08-09 16:39:08 +02:00
|
|
|
BuildRequires: pkgconfig(gobject-2.0)
|
2011-04-22 13:36:48 +02:00
|
|
|
%if 0%{?BUILD_FROM_VCS}
|
|
|
|
BuildRequires: gnome-common
|
|
|
|
BuildRequires: gtk-doc
|
|
|
|
%endif
|
2010-08-09 16:39:08 +02:00
|
|
|
Requires: libgirepository-1_0-1 = %{version}
|
2009-09-05 01:01:23 +02:00
|
|
|
Requires: python-xml
|
2009-07-04 10:21:10 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
The goal of the project is to describe the APIs and collect them in
|
|
|
|
a uniform, machine readable format.
|
|
|
|
|
2010-08-09 16:39:08 +02:00
|
|
|
%package -n libgirepository-1_0-1
|
2009-07-04 10:21:10 +02:00
|
|
|
Summary: GObject Introspection Library
|
2012-06-06 17:42:38 +02:00
|
|
|
License: LGPL-2.1+
|
2012-05-23 16:23:03 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
Requires: girepository-1_0 >= %{version}
|
|
|
|
|
|
|
|
%description -n libgirepository-1_0-1
|
|
|
|
The goal of the project is to describe the APIs and collect them in
|
|
|
|
a uniform, machine readable format.
|
|
|
|
|
|
|
|
%package -n girepository-1_0
|
2012-05-23 16:27:32 +02:00
|
|
|
Summary: Base GObject Introspection Bindings
|
2012-06-06 17:42:38 +02:00
|
|
|
License: LGPL-2.1+
|
2012-05-23 16:23:03 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
Requires: libgirepository-1_0-1 >= %{version}
|
2011-05-31 10:01:33 +02:00
|
|
|
# Provide typelib() symbols based on gobject-introspection-typelib.template
|
2011-05-27 12:41:06 +02:00
|
|
|
# The template is checked during install if it matches the installed *.typelib files.
|
2011-05-31 10:01:33 +02:00
|
|
|
%(cat %{S:3} | awk '{ print "Provides: " $0}')
|
2009-07-04 10:21:10 +02:00
|
|
|
|
2012-05-23 16:23:03 +02:00
|
|
|
%description -n girepository-1_0
|
2009-07-04 10:21:10 +02:00
|
|
|
The goal of the project is to describe the APIs and collect them in
|
|
|
|
a uniform, machine readable format.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: GObject Introspection Development Files
|
2012-06-06 17:42:38 +02:00
|
|
|
License: LGPL-2.1+
|
2012-01-18 20:59:22 +01:00
|
|
|
Group: Development/Libraries/GNOME
|
2009-07-04 10:21:10 +02:00
|
|
|
# Note: the devel package requires the binaries, not just the library
|
|
|
|
Requires: %{name} = %{version}
|
2010-02-19 16:30:47 +01:00
|
|
|
Requires: libffi-devel
|
2009-07-04 10:21:10 +02:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
The goal of the project is to describe the APIs and collect them in
|
|
|
|
a uniform, machine readable format.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2011-12-12 16:44:10 +01:00
|
|
|
%patch0 -p1
|
2009-07-04 10:21:10 +02:00
|
|
|
|
2011-04-22 13:36:48 +02:00
|
|
|
%if 0%{?BUILD_FROM_VCS}
|
|
|
|
[ -x ./autogen.sh ] && NOCONFIGURE=1 ./autogen.sh
|
|
|
|
%endif
|
|
|
|
|
2009-07-04 10:21:10 +02:00
|
|
|
%build
|
2011-12-21 05:15:50 +01:00
|
|
|
# needed for patch0
|
2011-12-12 16:44:10 +01:00
|
|
|
autoreconf -fi
|
2009-07-04 10:21:10 +02:00
|
|
|
%configure \
|
2011-04-22 13:36:48 +02:00
|
|
|
%if 0%{?BUILD_FROM_VCS}
|
|
|
|
--enable-gtk-doc \
|
|
|
|
%endif
|
2010-10-15 12:39:41 +02:00
|
|
|
--disable-static
|
2011-05-27 12:41:06 +02:00
|
|
|
%__make %{?_smp_mflags} V=1
|
2009-07-04 10:21:10 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
%makeinstall
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2011-05-27 10:40:53 +02:00
|
|
|
install -D %{S:1} %{buildroot}%{_rpmconfigdir}/gi-find-deps.sh
|
|
|
|
install -D %{S:2} -m 0644 %{buildroot}%{_rpmconfigdir}/fileattrs/gobjectintrospection.attr
|
2011-05-27 12:41:06 +02:00
|
|
|
# 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
|
2009-07-04 10:21:10 +02:00
|
|
|
%fdupes %{buildroot}
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
2010-08-09 16:39:08 +02:00
|
|
|
%post -n libgirepository-1_0-1 -p /sbin/ldconfig
|
2009-07-04 10:21:10 +02:00
|
|
|
|
2010-08-09 16:39:08 +02:00
|
|
|
%postun -n libgirepository-1_0-1 -p /sbin/ldconfig
|
2009-07-04 10:21:10 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2010-09-18 15:19:53 +02:00
|
|
|
%doc AUTHORS CONTRIBUTORS COPYING COPYING.GPL NEWS README TODO
|
2010-10-15 12:39:41 +02:00
|
|
|
%{_bindir}/g-ir-annotation-tool
|
2010-09-18 15:19:53 +02:00
|
|
|
%{_bindir}/g-ir-compiler
|
2011-12-12 16:44:10 +01:00
|
|
|
%{_bindir}/g-ir-dep-tool
|
2010-09-18 15:19:53 +02:00
|
|
|
%{_bindir}/g-ir-generate
|
|
|
|
%{_bindir}/g-ir-scanner
|
|
|
|
%doc %{_mandir}/man1/g-ir-compiler.1*
|
|
|
|
%doc %{_mandir}/man1/g-ir-generate.1*
|
|
|
|
%doc %{_mandir}/man1/g-ir-scanner.1*
|
|
|
|
%{_datadir}/aclocal/introspection.m4
|
|
|
|
%{_datadir}/gir-1.0/*.gir
|
2010-11-01 16:38:47 +01:00
|
|
|
# We don't include directly %%{_libdir}/gobject-introspection since there might
|
2009-07-04 10:21:10 +02:00
|
|
|
# be files there in the future that belong to the library package
|
|
|
|
%dir %{_libdir}/gobject-introspection
|
2010-09-18 15:19:53 +02:00
|
|
|
%{_libdir}/gobject-introspection/giscanner/
|
|
|
|
# We explicitly list the content of the directory that is of interest to us,
|
|
|
|
# since there might be files there in the future that belong to the library
|
|
|
|
# package
|
|
|
|
%dir %{_datadir}/gobject-introspection-1.0
|
|
|
|
%{_datadir}/gobject-introspection-1.0/Makefile.introspection
|
|
|
|
%{_datadir}/gobject-introspection-1.0/tests/
|
2010-10-15 12:39:41 +02:00
|
|
|
%{_datadir}/gobject-introspection-1.0/gdump.c
|
2011-05-27 10:40:53 +02:00
|
|
|
%{_rpmconfigdir}/gi-find-deps.sh
|
2011-09-06 21:51:14 +02:00
|
|
|
%if 0%{suse_version} <= 1140
|
|
|
|
# This was not in old versions of rpm
|
2011-09-06 21:49:35 +02:00
|
|
|
%dir %{_rpmconfigdir}/fileattrs
|
|
|
|
%endif
|
2011-05-27 10:40:53 +02:00
|
|
|
%{_rpmconfigdir}/fileattrs/gobjectintrospection.attr
|
2009-07-04 10:21:10 +02:00
|
|
|
|
2010-08-09 16:39:08 +02:00
|
|
|
%files -n libgirepository-1_0-1
|
2009-07-04 10:21:10 +02:00
|
|
|
%defattr(-,root,root)
|
2010-09-18 15:19:53 +02:00
|
|
|
%doc COPYING.LGPL
|
|
|
|
# We own this directory here instead of devel to make sure other packages do
|
|
|
|
# not have to own it
|
|
|
|
%dir %{_datadir}/gir-1.0
|
|
|
|
%{_libdir}/libgirepository-1.0.so.*
|
2012-05-23 16:23:03 +02:00
|
|
|
%dir %{_libdir}/girepository-1.0
|
|
|
|
|
|
|
|
%files -n girepository-1_0
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/girepository-1.0/*.typelib
|
2009-07-04 10:21:10 +02:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2010-10-15 12:39:41 +02:00
|
|
|
%doc %{_datadir}/gtk-doc/html/gi/
|
2010-08-09 16:39:08 +02:00
|
|
|
%{_includedir}/gobject-introspection-1.0/
|
2010-09-18 15:19:53 +02:00
|
|
|
%{_libdir}/libgirepository-1.0.so
|
|
|
|
# FIXME: those two files should be moved to the main package when bgo#629930 gets fixed
|
|
|
|
%{_libdir}/pkgconfig/gobject-introspection-1.0.pc
|
|
|
|
%{_libdir}/pkgconfig/gobject-introspection-no-export-1.0.pc
|
2009-07-04 10:21:10 +02:00
|
|
|
|
|
|
|
%changelog
|