From 81b37407debb487196fd6dec942ef09897e78357 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: May 27 2007 21:10:24 +0000 Subject: - New upstream release 3.0.1 - Remove mono bindings sub-package as upstream no longer includes them --- diff --git a/.cvsignore b/.cvsignore index 1d4c9ab..8e5f552 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -libgda-1.9.100.tar.bz2 +libgda-3.0.1.tar.bz2 diff --git a/libgda-1.9.100-64bit.patch b/libgda-1.9.100-64bit.patch deleted file mode 100644 index 955839d..0000000 --- a/libgda-1.9.100-64bit.patch +++ /dev/null @@ -1,93 +0,0 @@ ---- libgda-1.9.100/libgda/gda-data-model-hash.c~ 2006-05-03 23:04:11.000000000 +0200 -+++ libgda-1.9.100/libgda/gda-data-model-hash.c 2006-05-03 23:04:11.000000000 +0200 -@@ -70,7 +70,7 @@ - return GDA_DATA_MODEL_HASH (model)->priv->number_of_columns; - } - --static GdaRow * -+GdaRow * - gda_data_model_hash_get_row (GdaDataModelBase *model, gint row) - { - gint hash_entry; ---- libgda-1.9.100/libgda/gda-data-model-array.c~ 2006-05-03 22:48:02.000000000 +0200 -+++ libgda-1.9.100/libgda/gda-data-model-array.c 2006-05-03 22:48:02.000000000 +0200 -@@ -26,6 +26,7 @@ - #include - #include - #include -+#include - - #define PARENT_TYPE GDA_TYPE_DATA_MODEL_BASE - -@@ -430,7 +431,7 @@ - } - - if (! cur) { -- g_set_error (error, 0, 0, _("No specified in "), node->name); -+ g_set_error (error, 0, 0, _("No specified in ")); - clean_field_specs (fields); - return NULL; - } ---- libgda-1.9.100/libgda/gda-data-model-hash.h~ 2006-05-03 23:03:48.000000000 +0200 -+++ libgda-1.9.100/libgda/gda-data-model-hash.h 2006-05-03 23:03:48.000000000 +0200 -@@ -60,6 +60,7 @@ - gint rownum, - GdaRow *row); - -+GdaRow *gda_data_model_hash_get_row (GdaDataModelBase *model, gint row); - - G_END_DECLS - ---- libgda-1.9.100/providers/postgres/utils.c~ 2006-05-03 23:08:57.000000000 +0200 -+++ libgda-1.9.100/providers/postgres/utils.c 2006-05-03 23:08:57.000000000 +0200 -@@ -289,7 +289,7 @@ - break; - case GDA_VALUE_TYPE_BLOB : - blob = gda_postgres_blob_new (cnc); -- gda_postgres_blob_set_id (GDA_POSTRES_BLOB (blob), atoi (thevalue)); -+ gda_postgres_blob_set_id (GDA_POSTGRES_BLOB (blob), atoi (thevalue)); - gda_value_set_blob (value, blob); - break; - default : ---- libgda-1.9.100/providers/odbc/gda-odbc-provider.c~ 2006-05-03 23:06:12.000000000 +0200 -+++ libgda-1.9.100/providers/odbc/gda-odbc-provider.c 2006-05-03 23:06:12.000000000 +0200 -@@ -502,7 +502,7 @@ - return FALSE; - } - -- rc = SQLSetConnectOption( priv_data->hdbc, SQL_CURRENT_QUALIFIER, (UDWORD) name ); -+ rc = SQLSetConnectOption( priv_data->hdbc, SQL_CURRENT_QUALIFIER, (unsigned long) name ); - - if ( SQL_SUCCEEDED( rc )) { - return TRUE; ---- libgda-1.9.100/providers/sqlite/gda-sqlite-provider.c~ 2006-05-03 22:49:54.000000000 +0200 -+++ libgda-1.9.100/providers/sqlite/gda-sqlite-provider.c 2006-05-03 22:49:54.000000000 +0200 -@@ -882,7 +882,7 @@ - { - GdaDataModel *model = NULL; - gchar *sql; -- gchar reference = NULL; -+ gchar *reference = NULL; - GList *reclist; - - /* use the SQLite PRAGMA command to get the list of FK keys for the table */ ---- libgda-1.9.100/providers/sqlite/gda-sqlite-recordset.c~ 2006-05-03 22:50:39.000000000 +0200 -+++ libgda-1.9.100/providers/sqlite/gda-sqlite-recordset.c 2006-05-03 22:50:39.000000000 +0200 -@@ -24,6 +24,7 @@ - - #include - #include -+#include - #include "gda-sqlite.h" - #include "gda-sqlite-recordset.h" - #include "gda-sqlite-provider.h" ---- libgda-1.9.100/providers/bdb/libmain.c~ 2006-05-04 22:41:59.000000000 +0200 -+++ libgda-1.9.100/providers/bdb/libmain.c 2006-05-04 22:41:59.000000000 +0200 -@@ -20,6 +20,7 @@ - */ - - #include -+#include - #include "gda-bdb.h" - - const gchar *plugin_get_name (void); diff --git a/libgda-1.9.100-sharp.patch b/libgda-1.9.100-sharp.patch deleted file mode 100644 index c9e344e..0000000 --- a/libgda-1.9.100-sharp.patch +++ /dev/null @@ -1,25 +0,0 @@ ---- libgda-1.9.100/gda-sharp/gda-sharp.dll.config.in.sharp 2006-01-16 22:59:40.000000000 +0100 -+++ libgda-1.9.100/gda-sharp/gda-sharp.dll.config.in 2006-01-16 23:00:11.000000000 +0100 -@@ -1,3 +1,3 @@ - -- -+ - ---- libgda-1.9.100/gda-sharp/gda-sharp-2.0.pc.in~ 2006-02-13 21:43:19.000000000 +0100 -+++ libgda-1.9.100/gda-sharp/gda-sharp-2.0.pc.in 2006-02-13 21:59:35.000000000 +0100 -@@ -2,11 +2,13 @@ - exec_prefix=@exec_prefix@ - libdir=@libdir@ - pkglibdir=${libdir}/libgda -+gapidir=${prefix}/share/gapi-2.0 -+ - - Name: gda-sharp-2.0 - Description: GDA (GNOME Data Access) library C# binding - Requires: gtk-sharp-2.0 - Version: @VERSION@ --Cflags: -I:${pkglibdir}/gda-api.xml -+Cflags: -I:${gapidir}/gda-api.xml - Libraries=${pkglibdir}/gda-sharp.dll ${pkglibdir}/gda-sharp.dll.config --Libs: -r:gda-sharp.dll -+Libs: -r:${pkglibdir}/gda-sharp.dll diff --git a/libgda-1.9.100-syslibs.patch b/libgda-1.9.100-syslibs.patch deleted file mode 100644 index 0667cf7..0000000 --- a/libgda-1.9.100-syslibs.patch +++ /dev/null @@ -1,144 +0,0 @@ ---- libgda-1.9.100/libgda/gda-data-model-private.h.syslibs 2005-09-21 22:06:54.000000000 +0200 -+++ libgda-1.9.100/libgda/gda-data-model-private.h 2006-02-13 23:01:32.000000000 +0100 -@@ -21,8 +21,8 @@ - * Boston, MA 02111-1307, USA. - */ - --#if !defined(__gda_data_model_h__) --# define __gda_data_model_h__ -+#if !defined(__gda_data_model_private_h__) -+# define __gda_data_model_private_h__ - - #include - #include ---- libgda-1.9.100/providers/sqlite/utils.c.syslibs 2006-02-13 23:04:39.000000000 +0100 -+++ libgda-1.9.100/providers/sqlite/utils.c 2006-02-13 23:06:30.000000000 +0100 -@@ -25,8 +25,8 @@ - #include - #include - #include -+#include - #include "gda-sqlite.h" --#include "sqliteInt.h" - - void - gda_sqlite_update_types_hash (SQLITEcnc *scnc) -@@ -38,6 +38,7 @@ - scnc->types = types; - } - -+#if 0 - if (SQLITE_VERSION_NUMBER >= 3000000) { - Db *db; - gint i; -@@ -86,6 +87,7 @@ - } - } - } -+#endif - } - - void ---- libgda-1.9.100/providers/sqlite/gda-sqlite-provider.c.syslibs 2005-09-28 13:39:45.000000000 +0200 -+++ libgda-1.9.100/providers/sqlite/gda-sqlite-provider.c 2006-02-13 23:01:32.000000000 +0100 -@@ -26,6 +26,8 @@ - #endif - - #include -+#include -+#include - #include - #include - #include -@@ -33,7 +35,6 @@ - #include "gda-sqlite.h" - #include "gda-sqlite-provider.h" - #include "gda-sqlite-recordset.h" --#include "sqliteInt.h" - - static void gda_sqlite_provider_class_init (GdaSqliteProviderClass *klass); - static void gda_sqlite_provider_init (GdaSqliteProvider *provider, -@@ -260,6 +261,7 @@ - } - } - -+#if 0 - if (0) { - /* show all databases in this handle */ - Db *db; -@@ -270,6 +272,7 @@ - g_print ("/// %s\n", db->zName); - } - } -+#endif - - return TRUE; - } -@@ -1054,6 +1057,7 @@ - - /* extra attributes */ - nvalue = NULL; -+#if 0 - if (SQLITE_VERSION_NUMBER >= 3000000) { - Table *table; - -@@ -1066,6 +1070,7 @@ - if ((table->iPKey == i) && table->autoInc) - nvalue = gda_value_new_string ("AUTO_INCREMENT"); - } -+#endif - - if (!nvalue) - nvalue = gda_value_new_null (); -@@ -1155,7 +1160,7 @@ - gda_connection_add_event_string (cnc, _("Invalid SQLITE handle")); - return NULL; - } -- g_assert ((scnc->connection->flags & SQLITE_Initialized) || scnc->connection->init.busy); -+/* g_assert ((scnc->connection->flags & SQLITE_Initialized) || scnc->connection->init.busy); */ - - /* create the recordset */ - recset = GDA_DATA_MODEL_ARRAY (gda_data_model_array_new -@@ -1204,6 +1209,7 @@ - g_assert (gda_provider_init_schema_model (GDA_DATA_MODEL (recset), GDA_CONNECTION_SCHEMA_PROCEDURES)); - } - -+#if 0 - if (SQLITE_VERSION_NUMBER >= 3000000) { - Hash *func_hash; - HashElem *func_elem; -@@ -1290,6 +1296,7 @@ - g_list_foreach (list, add_g_list_row, recset); - g_list_free (list); - } -+#endif - - return GDA_DATA_MODEL (recset); - } ---- libgda-1.9.100/providers/sqlite/Makefile.am.syslibs 2005-06-01 21:14:12.000000000 +0200 -+++ libgda-1.9.100/providers/sqlite/Makefile.am 2006-02-13 23:01:32.000000000 +0100 -@@ -1,4 +1,4 @@ --SUBDIRS = sqlite-src -+SUBDIRS = - - providerdir=$(libdir)/libgda-$(GDA_MAJOR_VERSION).$(GDA_MINOR_VERSION)/providers - provider_LTLIBRARIES = libgda-sqlite.la -@@ -27,7 +27,6 @@ - libgda_sqlite_la_LDFLAGS = -export-dynamic -module -avoid-version - libgda_sqlite_la_LIBADD = \ - $(LIBGDA_LIBS) \ -- $(top_builddir)/libgda/libgda-3.la \ -- $(top_builddir)/providers/sqlite/sqlite-src/libsqlite.la -+ $(top_builddir)/libgda/libgda-3.la -lsqlite3 - - EXTRA_DIST = $(config_DATA) ---- libgda-1.9.100/configure.in.syslibs 2006-02-13 23:01:32.000000000 +0100 -+++ libgda-1.9.100/configure.in 2006-02-13 23:01:32.000000000 +0100 -@@ -981,7 +981,6 @@ - providers/oracle/Makefile - providers/postgres/Makefile - providers/sqlite/Makefile --providers/sqlite/sqlite-src/Makefile - providers/sybase/Makefile - providers/xbase/Makefile - report/Makefile diff --git a/libgda-3.0.0-man.patch b/libgda-3.0.0-man.patch new file mode 100644 index 0000000..c1f40d6 --- /dev/null +++ b/libgda-3.0.0-man.patch @@ -0,0 +1,121 @@ +--- libgda-3.0.0/tools/gda-config-3.0.5.man 2007-04-24 09:42:36.000000000 +0200 ++++ libgda-3.0.0/tools/gda-config-3.0.5 2007-04-24 09:42:05.000000000 +0200 +@@ -0,0 +1,52 @@ ++.\" ++.\" gda-config man page ++.\" (C) 2003 GNOME Foundation ++.\" Author: ++.\" Gonzalo Paniagua Javier (gonzalo@gnome-db.org) ++.\" ++.TH gda-config-3.0 "5" "January 2003" "libgda" "File Formats" ++.SH NAME ++$(sysconfdir)/libgda/config \- libgda global configuration file. ++$(HOME)/.libgda/config \- libgda user configuration file. ++.SH DESCRIPTION ++The config file of libgda is an XML file. The document starts with ++ tag, which contains sections that hold the configured ++database providers for libgda. ++.PP ++The values in the global configuration file are overriden by the ones in the ++user configuration file. ++.PP ++Each
has a 'path' attribute whose value \fImust\fP be something like ++"/apps/libgda/Datasources/XXXXXXXX", where XXXXXXXX is the name of the ++database backend (i.e., postgres, mysql,...) ++.PP ++Inside each
you can have for tags with 'name', 'type' and 'value' ++attributes. Valid values for 'name' are: \fIProvider\fP, ++\fIUsername\fP, \fIDSN\fP and \fIDescription\fP. 'type' value is always ++"string" and 'value' contains the value for the given 'name'. ++.SH EXAMPLE ++This is a sample file. You may modify it manually, add/remove sections,... ++.RS ++.sp ++.nf ++ ++ ++
++ ++ ++ ++ ++
++
++.fi ++.sp ++.RE ++You can also use \fBgda-config-tool-3.0\fR or \fBmergeant\fR (recommended) to modify ++this file. ++.SH SEE ALSO ++.BR mergeant (1), ++.BR gda-config-tool-3.0 (1) ++ ++ +--- libgda-3.0.0/tools/gda-config-tool-3.0.1.man 2007-04-24 09:42:41.000000000 +0200 ++++ libgda-3.0.0/tools/gda-config-tool-3.0.1 2007-04-24 09:41:43.000000000 +0200 +@@ -0,0 +1,63 @@ ++.\" ++.\" gda-config-tool man page ++.\" (C) 2002 GNOME Foundation ++.\" Author: ++.\" Gonzalo Paniagua Javier (gonzalo@gnome-db.org) ++.\" ++.TH gda-config-tool-3.0 "1" "October 2002" "gda-config-tool-3.0 (libgda)" "User Commands" ++.SH NAME ++gda-config-tool-3.0 \- Tool for managing libgda configuration file. ++.SH SYNOPSIS ++.PP ++.B gda-config-tool-3.0 [OPTIONS] ++.SH DESCRIPTION ++The \fIgda-config-tool-3.0\fP program can be used create/edit/remove a libgda ++provider. It can be used both as a command line program and an interactive ++program. ++.SH OPTIONS ++.PP ++The following options are supported: ++.TP ++\fB\-?\fR, \fB\-\-help\fR ++Displays command line options. ++.TP ++\fB--usage\fR ++Display brief usage message. ++.TP ++\fB--l\fR, \fB\-\-list\-providers\fR ++Lists installed providers. ++.TP ++\fB--L\fR, \fB\-\-list\-datasources\fR ++Lists configured data sources. ++.TP ++\fB--n\fR, \fB\-\-name=NAME\fR ++User-assigned name for the provider and connection settings. ++.TP ++\fB--u\fR, \fB\-\-user=NAME\fR ++User name to pass to the provider when connecting. ++.TP ++\fB--p\fR, \fB\-\-password=NAME\fR ++Password for the given user to pass to the DB backend. ++.TP ++\fB--P\fR, \fB\-\-provider=NAME\fR ++Provider name. ++.TP ++\fB--d\fR, \fB\-\-DSN="NAME=VALUE;..."\fR ++Semi-colon separated list of parameter=value option to pass to the provider. ++.SH ENVIRONMENT VARIABLES ++.TP ++NONE ++.SH FILES ++.PP ++$(sysconfdir)/libgda/config ++.IP ++Global configurations settings read for every user. ++.PP ++${HOME}/.libgda/config ++.IP ++User settings. Override global settings. ++.SH SEE ALSO ++.BR mergeant(1), ++.BR gda-config-3.0(5) ++ ++ diff --git a/libgda-3.0.1-ldap.patch b/libgda-3.0.1-ldap.patch new file mode 100644 index 0000000..c5a2c3c --- /dev/null +++ b/libgda-3.0.1-ldap.patch @@ -0,0 +1,11 @@ +--- libgda-3.0.1/providers/ldap/gda-ldap.h~ 2007-05-27 21:03:31.000000000 +0200 ++++ libgda-3.0.1/providers/ldap/gda-ldap.h 2007-05-27 21:03:31.000000000 +0200 +@@ -32,6 +32,8 @@ + #include + #include + #include "gda-ldap-provider.h" ++/* we use the old API (time to update) */ ++#define LDAP_DEPRECATED 1 + #include + #include + diff --git a/libgda.spec b/libgda.spec index 6e70b47..7a4657a 100644 --- a/libgda.spec +++ b/libgda.spec @@ -32,25 +32,28 @@ %{?_without_odbc:%define ODBC 0} %{?_without_postgres:%define POSTGRES 0} -Summary: Library for writing gnome database programs Name: libgda -Version: 1.9.100 -Release: 12%{?dist} Epoch: 1 -Source: http://ftp.gnome.org/pub/GNOME/sources/%{name}/1.9/%{name}-%{version}.tar.bz2 -URL: http://www.gnome-db.org/ +Version: 3.0.1 +Release: 1%{?dist} +Summary: Library for writing gnome database programs Group: System Environment/Libraries License: LGPL -BuildRoot: %{_tmppath}/%{name}-%{version}-root +URL: http://www.gnome-db.org/ +Source: http://ftp.gnome.org/pub/GNOME/sources/%{name}/3.0/%{name}-%{version}.tar.bz2 +Patch0: libgda-1.9.100-configure.patch +Patch1: libgda-3.0.0-man.patch +Patch2: libgda-3.0.1-ldap.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: pkgconfig >= 0.8 BuildRequires: glib2-devel >= 2.0.0 BuildRequires: libxslt-devel >= 1.0.9 BuildRequires: libxml2-devel ncurses-devel sqlite-devel readline-devel BuildRequires: db4-devel gamin-devel gtk-doc scrollkeeper groff gettext BuildRequires: flex bison intltool automake libtool -%ifnarch ppc64 -BuildRequires: mono-devel gtk-sharp2-devel gtk-sharp2-gapi -%endif +# note we do not provide these, they no longer exist +Obsoletes: %{name}-sharp < %{epoch}:%{version}-%{release} +Obsoletes: %{name}-sharp-devel < %{epoch}:%{version}-%{release} %if %{FREETDS} BuildRequires: freetds-devel @@ -76,11 +79,6 @@ BuildRequires: mdbtools-devel BuildRequires: openldap-devel %endif -Patch0: libgda-1.9.100-configure.patch -Patch1: libgda-1.9.100-sharp.patch -Patch2: libgda-1.9.100-syslibs.patch -Patch3: libgda-1.9.100-64bit.patch - %description libgda is a library that eases the task of writing gnome database programs. @@ -91,7 +89,7 @@ Summary: Development libraries and header files for libgda Group: Development/Libraries Requires: glib2-devel >= 2.0.0 Requires: libxslt-devel >= 1.0.9 -Requires: db4-devel libxml2-devel +Requires: db4-devel libxml2-devel pkgconfig Requires: %{name} = %{epoch}:%{version}-%{release} %description devel @@ -99,137 +97,201 @@ This package contains the header files and libraries needed to write or compile programs that use libgda. -%ifnarch ppc64 - -%package sharp -Summary: Mono bindings for libgda -Group: System Environment/Libraries -Requires: %{name} = %{epoch}:%{version}-%{release} - -%description sharp -This package contains the dll files needed to run (and compile) Mono -applications which use libgda. - - -%package sharp-devel -Summary: Development files for the Mono bindings for libgda -Group: Development/Libraries -Requires: %{name}-sharp = %{epoch}:%{version}-%{release} -Requires: pkgconfig - -%description sharp-devel -Development files for the Mono bindings for libgda - -%endif - - %package sqlite Summary: SQLite provider for libgda Group: System Environment/Libraries +Requires: %{name} = %{epoch}:%{version}-%{release} Obsoletes: gda-sqlite < %{epoch}:%{version}-%{release} Provides: gda-sqlite = %{epoch}:%{version}-%{release} %description sqlite This package includes the libgda SQLite provider. +%package sqlite-devel +Summary: SQLite provider for libgda pkgconfig file +Group: Development/Libraries +Requires: pkgconfig +Requires: %{name}-sqlite = %{epoch}:%{version}-%{release} +%description sqlite-devel +This package includes the pkgconfig file for the libgda SQLite provider. + %if %{FREETDS} %package freetds Summary: FreeTDS provider for libgda Group: System Environment/Libraries +Requires: %{name} = %{epoch}:%{version}-%{release} Obsoletes: gda-freetds < %{epoch}:%{version}-%{release} Provides: gda-freetds = %{epoch}:%{version}-%{release} %description freetds This package includes the libgda FreeTDS provider. + +%package freetds-devel +Summary: FreeTDS provider for libgda pkgconfig file +Group: Development/Libraries +Requires: pkgconfig +Requires: %{name}-freetds = %{epoch}:%{version}-%{release} +%description freetds-devel +This package includes the pkgconfig file for the libgda FreeTDS provider. %endif %if %{IBMDB2} %package ibmdb2 Summary: IBM DB2 provider for libgda Group: System Environment/Libraries +Requires: %{name} = %{epoch}:%{version}-%{release} Obsoletes: gda-ibmdb2 < %{epoch}:%{version}-%{release} Provides: gda-ibmdb2 = %{epoch}:%{version}-%{release} %description ibmdb2 This package includes the libgda IBM DB2 provider. + +%package ibmdb2-devel +Summary: IBM DB2 provider for libgda pkgconfig file +Group: Development/Libraries +Requires: pkgconfig +Requires: %{name}-ibmdb2 = %{epoch}:%{version}-%{release} +%description ibmdb2-devel +This package includes the pkgconfig file for the libgda IBM DB2 provider. %endif %if %{MYSQL} %package mysql Summary: MySQL provider for libgda Group: System Environment/Libraries +Requires: %{name} = %{epoch}:%{version}-%{release} Obsoletes: gda-mysql < %{epoch}:%{version}-%{release} Provides: gda-mysql = %{epoch}:%{version}-%{release} %description mysql This package includes the libgda MySQL provider. + +%package mysql-devel +Summary: MySQL provider for libgda pkgconfig file +Group: Development/Libraries +Requires: pkgconfig +Requires: %{name}-mysql = %{epoch}:%{version}-%{release} +%description mysql-devel +This package includes the pkgconfig file for the libgda MySQL provider. %endif %if %{ODBC} %package odbc Summary: ODBC provider for libgda Group: System Environment/Libraries +Requires: %{name} = %{epoch}:%{version}-%{release} Obsoletes: gda-odbc < %{epoch}:%{version}-%{release} Provides: gda-odbc = %{epoch}:%{version}-%{release} %description odbc This package includes the libgda ODBC provider. + +%package odbc-devel +Summary: ODBC provider for libgda pkgconfig file +Group: Development/Libraries +Requires: pkgconfig +Requires: %{name}-odbc = %{epoch}:%{version}-%{release} +%description odbc-devel +This package includes the pkgconfig file for the libgda ODBC provider. %endif %if %{ORACLE} %package oracle Summary: Oracle provider for libgda Group: System Environment/Libraries +Requires: %{name} = %{epoch}:%{version}-%{release} Obsoletes: gda-oracle < %{epoch}:%{version}-%{release} Provides: gda-oracle = %{epoch}:%{version}-%{release} %description oracle This package includes the libgda Oracle provider. + +%package oracle-devel +Summary: Oracle provider for libgda pkgconfig file +Group: Development/Libraries +Requires: pkgconfig +Requires: %{name}-oracle = %{epoch}:%{version}-%{release} +%description oracle-devel +This package includes the pkgconfig file for the libgda Oracle provider. %endif %if %{POSTGRES} %package postgres Summary: PostgreSQL provider for libgda Group: System Environment/Libraries +Requires: %{name} = %{epoch}:%{version}-%{release} Obsoletes: gda-postgres < %{epoch}:%{version}-%{release} Provides: gda-postgres = %{epoch}:%{version}-%{release} %description postgres This package includes the libgda PostgreSQL provider. + +%package postgres-devel +Summary: PostgreSQL provider for libgda pkgconfig file +Group: Development/Libraries +Requires: pkgconfig +Requires: %{name}-postgres = %{epoch}:%{version}-%{release} +%description postgres-devel +This package includes the pkgconfig file for the libgda PostgreSQL provider. %endif %if %{SYBASE} %package sybase Summary: Sybase provider for libgda Group: System Environment/Libraries +Requires: %{name} = %{epoch}:%{version}-%{release} Obsoletes: gda-sybase < %{epoch}:%{version}-%{release} Provides: gda-sybase = %{epoch}:%{version}-%{release} %description sybase This package includes the libgda Sybase provider. + +%package sybase-devel +Summary: Sybase provider for libgda pkgconfig file +Group: Development/Libraries +Requires: pkgconfig +Requires: %{name}-sybase = %{epoch}:%{version}-%{release} +%description sybase-devel +This package includes the pkgconfig file for the libgda Sybase provider. %endif %if %{MDB} %package mdb Summary: MDB provider for libgda Group: System Environment/Libraries +Requires: %{name} = %{epoch}:%{version}-%{release} Obsoletes: gda-mdb < %{epoch}:%{version}-%{release} Provides: gda-mdb = %{epoch}:%{version}-%{release} %description mdb This package includes the libgda MDB provider. + +%package mdb-devel +Summary: MDB provider for libgda pkgconfig file +Group: Development/Libraries +Requires: pkgconfig +Requires: %{name}-mdb = %{epoch}:%{version}-%{release} +%description mdb-devel +This package includes the pkgconfig file for the libgda MDB provider. %endif %if %{LDAP} %package ldap Summary: LDAP provider for libgda Group: System Environment/Libraries +Requires: %{name} = %{epoch}:%{version}-%{release} Obsoletes: gda-ldap < %{epoch}:%{version}-%{release} Provides: gda-ldap = %{epoch}:%{version}-%{release} %description ldap This package includes the libgda LDAP provider. + +%package ldap-devel +Summary: LDAP provider for libgda pkgconfig file +Group: Development/Libraries +Requires: pkgconfig +Requires: %{name}-ldap = %{epoch}:%{version}-%{release} +%description ldap-devel +This package includes the pkgconfig file for the libgda LDAP provider. %endif %prep %setup -q -rm -fr providers/sqlite/sqlite-src %patch0 -p1 -b .configure -%patch1 -p1 -b .sharp -%patch2 -p1 -b .syslibs -%patch3 -p1 -b .64bit +%patch1 -p1 -b .man +%patch2 -p1 -b .ldap # fix ppc64 postgres detection sed -i 's/x86_64\* | sparc64\*) lib="lib64";;/x86_64\* | sparc64\* | powerpc64\*) lib="lib64";;/' \ configure.in @@ -239,6 +301,8 @@ autoconf %build +CONFIG="--disable-static --disable-dependency-tracking" + %if %{FREETDS} CONFIG="$CONFIG --with-tds" %else @@ -294,25 +358,19 @@ CONFIG="$CONFIG --without-ldap" %endif %configure $CONFIG -make +make %{?_smp_mflags} %install -rm -rf %{buildroot} -%makeinstall - -%ifnarch ppc64 -#fixup mono / sharp related files install -mkdir -p %{buildroot}/%{_datadir}/gapi-2.0 -mv %{buildroot}/%{_libdir}/libgda/gda-api.xml %{buildroot}/%{_datadir}/gapi-2.0 -%endif +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT # Cleanup unnecessary, unpackaged files -rm -f %{buildroot}/%{_libdir}/libgda-1.9/providers/*.{a,la} -rm -f %{buildroot}/%{_libdir}/*.{a,la} -rm -f %{buildroot}/%{_sysconfdir}/libgda/sales_test.db +rm $RPM_BUILD_ROOT/%{_libdir}/libgda-3.0/providers/*.la +rm $RPM_BUILD_ROOT/%{_libdir}/*.la +rm $RPM_BUILD_ROOT/%{_sysconfdir}/libgda-3.0/sales_test.db -%find_lang libgda-3 +%find_lang libgda-3.0 %post -p /sbin/ldconfig @@ -325,106 +383,138 @@ if which scrollkeeper-update >/dev/null 2>&1; then scrollkeeper-update; fi %postun devel if which scrollkeeper-update >/dev/null 2>&1; then scrollkeeper-update; fi + %clean -rm -rf %{buildroot} +rm -rf $RPM_BUILD_ROOT -%files -f libgda-3.lang -%defattr(-,root,root) + +%files -f libgda-3.0.lang +%defattr(-,root,root,-) %doc AUTHORS COPYING ChangeLog README NEWS -#%doc %{_datadir}/gnome/help/libgda -%dir %{_sysconfdir}/libgda -%config(noreplace) %{_sysconfdir}/libgda/config +%config(noreplace) %{_sysconfdir}/libgda-3.0 %{_bindir}/* -%{_datadir}/libgda +%{_datadir}/libgda-3.0 %{_libdir}/*.so.* -%dir %{_libdir}/libgda-1.9 -%dir %{_libdir}/libgda-1.9/providers +%dir %{_libdir}/libgda-3.0 +%dir %{_libdir}/libgda-3.0/providers # 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-1.9/providers/libgda-bdb.so +%{_libdir}/libgda-3.0/providers/libgda-bdb.so %{_mandir}/man1/* %{_mandir}/man5/* %files devel -%defattr(-,root,root) -%doc %{_datadir}/gtk-doc/html/libgda +%defattr(-,root,root,-) +%doc %{_datadir}/gtk-doc/html/libgda-3.0 %{_includedir}/* %{_libdir}/*.so -%{_libdir}/pkgconfig/libgda-2.0.pc - -%ifnarch ppc64 - -%files sharp -%defattr(-,root,root) -%{_libdir}/libgda - -%files sharp-devel -%defattr(-,root,root) -%{_datadir}/gapi-2.0 -%{_libdir}/pkgconfig/gda-sharp-2.0.pc - -%endif +%{_libdir}/pkgconfig/libgda-3.0.pc +%{_libdir}/pkgconfig/libgda-bdb-3.0.pc %files sqlite -%defattr(-,root,root) -%{_libdir}/libgda-1.9/providers/libgda-sqlite.so +%defattr(-,root,root,-) +%{_libdir}/libgda-3.0/providers/libgda-sqlite.so + +%files sqlite-devel +%defattr(-,root,root,-) +%{_libdir}/pkgconfig/libgda-sqlite-3.0.pc %if %{FREETDS} %files freetds -%defattr(-,root,root) -%{_libdir}/libgda-1.9/providers/libgda-freetds.so +%defattr(-,root,root,-) +%{_libdir}/libgda-3.0/providers/libgda-freetds.so + +%files freetds-devel +%defattr(-,root,root,-) +%{_libdir}/pkgconfig/libgda-freetds-3.0.pc %endif %if %{IBMDB2} %files ibmdb2 -%defattr(-,root,root) -%{_libdir}/libgda-1.9/providers/libgda-ibmdb2.so +%defattr(-,root,root,-) +%{_libdir}/libgda-3.0/providers/libgda-ibmdb2.so + +%files ibmdb2-devel +%defattr(-,root,root,-) +%{_libdir}/pkgconfig/libgda-imdb2-3.0.pc %endif %if %{MYSQL} %files mysql -%defattr(-,root,root) -%{_libdir}/libgda-1.9/providers/libgda-mysql.so +%defattr(-,root,root,-) +%{_libdir}/libgda-3.0/providers/libgda-mysql.so + +%files mysql-devel +%defattr(-,root,root,-) +%{_libdir}/pkgconfig/libgda-mysql-3.0.pc %endif %if %{ODBC} %files odbc -%defattr(-,root,root) -%{_libdir}/libgda-1.9/providers/libgda-odbc.so +%defattr(-,root,root,-) +%{_libdir}/libgda-3.0/providers/libgda-odbc.so + +%files odbc-devel +%defattr(-,root,root,-) +%{_libdir}/pkgconfig/libgda-odbc-3.0.pc %endif %if %{ORACLE} %files oracle -%defattr(-,root,root) -%{_libdir}/libgda-1.9/providers/libgda-oracle.so +%defattr(-,root,root,-) +%{_libdir}/libgda-3.0/providers/libgda-oracle.so + +%files oracle-devel +%defattr(-,root,root,-) +%{_libdir}/pkgconfig/libgda-oracle-3.0.pc %endif %if %{POSTGRES} %files postgres -%defattr(-,root,root) -%{_libdir}/libgda-1.9/providers/libgda-postgres.so +%defattr(-,root,root,-) +%{_libdir}/libgda-3.0/providers/libgda-postgres.so + +%files postgres-devel +%defattr(-,root,root,-) +%{_libdir}/pkgconfig/libgda-postgres-3.0.pc %endif %if %{SYBASE} %files sybase -%defattr(-,root,root) -%{_libdir}/libgda-1.9/providers/libgda-sybase.so +%defattr(-,root,root,-) +%{_libdir}/libgda-3.0/providers/libgda-sybase.so + +%files sybase-devel +%defattr(-,root,root,-) +%{_libdir}/pkgconfig/libgda-sybase-3.0.pc %endif %if %{MDB} %files mdb -%defattr(-,root,root) -%{_libdir}/libgda-1.9/providers/libgda-mdb.so +%defattr(-,root,root,-) +%{_libdir}/libgda-3.0/providers/libgda-mdb.so + +%files mdb-devel +%defattr(-,root,root,-) +%{_libdir}/pkgconfig/libgda-mdb-3.0.pc %endif %if %{LDAP} %files ldap -%defattr(-,root,root) -%{_libdir}/libgda-1.9/providers/libgda-ldap.so +%defattr(-,root,root,-) +%{_libdir}/libgda-3.0/providers/libgda-ldap.so + +%files ldap-devel +%defattr(-,root,root,-) +%{_libdir}/pkgconfig/libgda-ldap-3.0.pc %endif %changelog +* Sun May 27 2007 Hans de Goede 1:3.0.1-1 +- New upstream release 3.0.1 +- Remove mono bindings sub-package as upstream no longer includes them + * Thu May 10 2007 Hans de Goede 1:1.9.100-12 - Don't build mono/sharp bits on ppc64 - Fixup packaging of sharp bindings to match the mono packaging guidelines diff --git a/sources b/sources index 6c30987..7d23d12 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -c943610dc4c9c286bb14d6ce3c6e549b libgda-1.9.100.tar.bz2 +1aaf23c27ba94d0b231f2b123350110a libgda-3.0.1.tar.bz2