From 55368c754ea154bd784329cdebef7b910394a7b4 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Aug 16 2007 15:25:24 +0000 Subject: - Enable microsoft access (mdb) support now that mdbtools is in Fedora - Enable xBase (dBase, Clipper, FoxPro) support, it seems that xbase has been available for quite a while now - Switch from using mysqlclient10 to using mysql-libs for the msql provider --- diff --git a/libgda.spec b/libgda.spec index e1eccbb..3200738 100644 --- a/libgda.spec +++ b/libgda.spec @@ -10,17 +10,19 @@ # --without odbc # --without postgres # --without tds +# --without xbase # -%define FREETDS 1 %define IBMDB2 0 -%define MYSQL 1 -%define ODBC 1 %define ORACLE 0 -%define POSTGRES 1 %define SYBASE 0 -%define MDB 1 %define LDAP 1 +%define MDB 1 +%define MYSQL 1 +%define ODBC 1 +%define POSTGRES 1 +%define FREETDS 1 +%define XBASE 1 %{?_with_db2:%define IBMDB2 1} %{?_with_oracle:%define ORACLE 1} @@ -31,6 +33,7 @@ %{?_without_odbc:%define ODBC 0} %{?_without_postgres:%define POSTGRES 0} %{?_without_tds:%define FREETDS 0} +%{?_without_xbase:%define XBASE 0} Name: libgda Epoch: 1 @@ -80,6 +83,10 @@ BuildRequires: mdbtools-devel BuildRequires: openldap-devel %endif +%if %{XBASE} +BuildRequires: xbase-devel +%endif + %description libgda is a library that eases the task of writing gnome database programs. @@ -287,6 +294,22 @@ Requires: %{name}-ldap = %{epoch}:%{version}-%{release} This package includes the pkgconfig file for the libgda LDAP provider. %endif +%if %{XBASE} +%package xbase +Summary: XBASE provider for libgda +Group: System Environment/Libraries +Requires: %{name} = %{epoch}:%{version}-%{release} +%description xbase +This package includes the GDA XBASE provider. + +%package xbase-devel +Summary: XBASE provider for libgda pkgconfig file +Group: Development/Libraries +Requires: %{name}-xbase = %{epoch}:%{version}-%{release}, pkgconfig +%description xbase-devel +This package includes the pkgconfig file for the libgda XBASE provider. +%endif + %prep %setup -q @@ -359,6 +382,12 @@ CONFIG="$CONFIG --with-ldap" CONFIG="$CONFIG --without-ldap" %endif +%if %{XBASE} +CONFIG="$CONFIG --with-xbase" +%else +CONFIG="$CONFIG --without-xbase" +%endif + %configure $CONFIG # Don't use rpath! sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool @@ -517,10 +546,22 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/pkgconfig/libgda-ldap-3.0.pc %endif +%if %{XBASE} +%files xbase +%defattr(-,root,root) +%{_libdir}/libgda-3.0/providers/libgda-xbase.so + +%files xbase-devel +%defattr(-,root,root,-) +%{_libdir}/pkgconfig/libgda-xbase-3.0.pc +%endif + %changelog * Wed Aug 15 2007 Hans de Goede 1:3.0.1-3 - Enable microsoft access (mdb) support now that mdbtools is in Fedora +- Enable xBase (dBase, Clipper, FoxPro) support, it seems that xbase has been + available for quite a while now - Switch from using mysqlclient10 to using mysql-libs for the msql provider * Wed Aug 8 2007 Hans de Goede 1:3.0.1-2