From 75ec8e061d344bbed234ef5ab27d76c488d3d759 Mon Sep 17 00:00:00 2001 From: Haïkel Guémar Date: Apr 23 2010 19:13:13 +0000 Subject: add GObject introspection support --- diff --git a/libgda.spec b/libgda.spec index 260d8e1..1270575 100644 --- a/libgda.spec +++ b/libgda.spec @@ -41,7 +41,7 @@ Name: libgda Epoch: 1 Version: 4.0.8 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Library for writing gnome database programs Group: System Environment/Libraries License: LGPLv2+ @@ -55,7 +55,10 @@ BuildRequires: glib2-devel >= 2.16 BuildRequires: libxslt-devel >= 1.0.9 BuildRequires: sqlite-devel >= 3.6.0 BuildRequires: gamin-devel >= 0.1.8 -BuildRequires: libxml2-devel readline-devel db4-devel +BuildRequires: libtool +BuildRequires: gir-repository-devel >= 0.6.5 +BuildRequires: gobject-introspection-devel >= 0.6.5 +BuildRequires: libxml2-devel readline-devel db4-devel json-glib-devel BuildRequires: gtk-doc scrollkeeper intltool gettext flex bison perl(XML::Parser) BuildRequires: gnome-vfs2-devel >= 2.20 BuildRequires: libsoup-devel @@ -351,13 +354,13 @@ This package includes the pkgconfig file for the libgda Java JDBC provider. # fix ppc64 postgres detection sed -i 's/x86_64\* | sparc64\*) lib="lib64";;/x86_64\* | sparc64\* | powerpc64\*) lib="lib64";;/' \ configure configure.in -# stop autoxxx rerunning because of our patches above -touch aclocal.m4 -touch `find -name Makefile.in` +# need to reconfigure autotools scripts against newer toolchain +autoreconf -fi %build -CONFIG="--disable-static --disable-dependency-tracking --enable-system-sqlite --with-libsoup" +CONFIG="--disable-static --disable-dependency-tracking --enable-system-sqlite --with-libsoup \ + --enable-gtk-doc --enable-introspection=yes" %if %{FREETDS} CONFIG="$CONFIG --with-tds" @@ -429,9 +432,8 @@ CONFIG="$CONFIG --without-java" # Don't use rpath! sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool -# work around gda-report-test-3.0 linking failing because of the disabling of -# rpath above -export LD_LIBRARY_PATH=`pwd`/libsql/.libs +# workaround to fix linking failure for GI +export LD_LIBRARY_PATH=`pwd`/libgda/.libs:`pwd`/libgda-report/.libs make %{?_smp_mflags} @@ -473,6 +475,7 @@ rm -rf $RPM_BUILD_ROOT # note this file really should be in its own subpackage too, but libgda # needs to have atleast one provider present to be of any use. %{_libdir}/libgda-4.0/providers/libgda-bdb.so +%{_libdir}/girepository-1.0/Gda-4.0.typelib %{_mandir}/man1/* %files devel @@ -484,6 +487,7 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/pkgconfig/libgda-bdb-4.0.pc %{_libdir}/pkgconfig/libgda-report-4.0.pc %{_libdir}/pkgconfig/libgda-xslt-4.0.pc +%{_datadir}/gir-1.0/Gda-4.0.gir %files sqlite %defattr(-,root,root,-) @@ -606,6 +610,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Thu Apr 22 2010 Haïkel Guémar - 1:4.0.8-2 +- add GObject introspection support + * Sat Mar 20 2010 Denis Leroy - 1:4.0.8-1 - Update to upstream 4.0.8