packages libgda2.spec
      Pages: < 1 >  DOWNLOAD      
%define pkgname libgda
%define apiver  2
%define majversion %(echo %version | cut -d. -f 1-2)

Name:          libgda2
Version:       1.2.4
Release:       3mamba
Summary:       A library implementing a free unified data access architecture
Group:         System/Libraries
Vendor:        openmamba
Distribution:  openmamba
Packager:      Davide Madrisan <davide.madrisan@...>
URL:           http://www.gnome-db.org/
Source:        http://ftp.gnome.org/pub/GNOME/sources/%{pkgname}/%{majversion}/%{pkgname}-%{version}.tar.gz
License:       LGPL
BuildRequires: intltool
BuildRequires: perl, perl-XML-Parser
BuildRequires: gettext-devel
BuildRequires: libglib-devel
BuildRequires: pkgconfig
BuildRequires: libxml2-devel
BuildRequires: libxslt-devel
BuildRequires: libmysql5-devel
BuildRequires: postgresql-devel
BuildRequires: libodbc-devel
BuildRequires: libopenldap-devel
BuildRequires: libsasl-devel
BuildRequires: libdb47-devel
BuildRequires: libsqlite3-devel
BuildRequires: popt-devel
BuildRequires: libreadline-devel
BuildRequires: libfam-devel
BuildRequires: libpopt-devel
BuildRequires: bison, flex
BuildRequires: gtk-doc
Obsoletes:     libgda1
#Provides:      libgda1 = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot:     %{_tmppath}/%{name}-%{version}-root

%description
A library implementing a free unified data access architecture.

%package devel
Group:         Development/Libraries
Summary:       Devel package for libgda
Obsoletes:     libgda1-devel
#Provides:      libgda1-devel = %{?epoch:%epoch:}%{version}-%{release}
Requires:      %{name} = %{?epoch:%epoch:}%{version}-%{release}

%description devel
A library implementing a free unified data access architecture.
This package contains static libraries and header files need for development.

%package mysql
Group:         Development/Libraries
Summary:       MySql providers for libgda
Obsoletes:     libgda1-mysql
#Provides:      libgda1-mysql = %{?epoch:%epoch:}%{version}-%{release}
Requires:      %{name} = %{?epoch:%epoch:}%{version}-%{release}

%description mysql
MySql providers for %{name}.

%package postgresql
Group:         Development/Libraries
Summary:       PostgreSQL providers for libgda
Obsoletes:     libgda1-postgresql
#Provides:      libgda1-postgresql = %{?epoch:%epoch:}%{version}-%{release}
Requires:      %{name} = %{?epoch:%epoch:}%{version}-%{release}

%description postgresql
PostgreSQL providers for %{name}.

%package odbc
Group:         Development/Libraries
Summary:       ODBC providers for libgda
Obsoletes:     libgda1-odbc
#Provides:      libgda1-odbc = %{?epoch:%epoch:}%{version}-%{release}
Requires:      %{name} = %{?epoch:%epoch:}%{version}-%{release}

%description odbc
ODBC providers for %{name}.

%package ldap
Group:         Development/Libraries
Summary:       LDAP providers for libgda
Obsoletes:     libgda1-ldap
#Provides:      libgda1-ldap = %{?epoch:%epoch:}%{version}-%{release}
Requires:      %{name} = %{?epoch:%epoch:}%{version}-%{release}

%description ldap
LDAP providers for %{name}.

%package bdb
Group:         Development/Libraries
Summary:       LDAP providers for libgda
Obsoletes:     libgda1-bdb
#Provides:      libgda1-bdb = %{?epoch:%epoch:}%{version}-%{release}
Requires:      %{name} = %{?epoch:%epoch:}%{version}-%{release}

%description bdb
Berkeley DB provider for %{name}.

%package mdb
Group:         Development/Libraries
Summary:       mdb provider for libgda
Requires:      %{name} = %{?epoch:%epoch:}%{version}-%{release}

%description mdb
mdb provider for %{name}.

%package sqlite
Group:         Development/Libraries
Summary:       SQLite providers for %{name}
Obsoletes:     libgda1-sqlite
#Provides:      libgda1-sqlite = %{?epoch:%epoch:}%{version}-%{release}
Requires:      %{name} = %{?epoch:%epoch:}%{version}-%{release}

%description sqlite
SQLite provider for %{name}.

%package apidocs
Summary:       %{pkgname} API documentation
Group:         Documentation
Obsoletes:     libgda1-apidocs
#Provides:      libgda1-apidocs = %{?epoch:%epoch:}%{version}-%{release}
Requires:      gtk-doc

%description apidocs
%{pkgname} API documentation.

%prep
%setup -q -n %{pkgname}-%{version}

%build
%configure \
   --enable-shared \
   --disable-static \
   --enable-gtk-doc \
   --enable-csharp \
   --disable-debug \
   --with-mysql \
   --with-postgres \
   --with-odbc \
   --with-ldap \
   --with-bdb \
   --with-gnome

%make -j1

%install
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%makeinstall

%find_lang libgda-%{apiver}

# remove unpackaged files
rm -f %{buildroot}/%{_libdir}/libgda-%{majversion}/providers/*.la

%clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot}

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%files -f libgda-%{apiver}.lang
%defattr(-,root,root)
%{_bindir}/gda-*
%{_libdir}/libgda-%{apiver}.so.*
%{_libdir}/libgda-report-%{apiver}.so.*
%{_libdir}/libgdasql.so.*
%{_libdir}/libgda/providers/libgda-xml.la
%{_libdir}/libgda/providers/libgda-xml.so
%{_datadir}/libgda/xml/*.dtd
%{_datadir}/libgda/xml/*.xsl
%{_datadir}/omf/libgda/*
%{_sysconfdir}/libgda/config
%{_mandir}/man1/*
%{_mandir}/man5/*

%files bdb
%defattr(-,root,root)
%{_libdir}/libgda/providers/libgda-bdb.*

%files ldap
%defattr(-,root,root)
%{_libdir}/libgda/providers/libgda-ldap.*

%files mdb
%defattr(-,root,root)
%{_libdir}/libgda/providers/libgda-mdb.*

%files mysql
%defattr(-,root,root)
%{_libdir}/libgda/providers/libgda-mysql.*

%files odbc
%defattr(-,root,root)
%{_libdir}/libgda/providers/libgda-odbc.*

%files postgresql
%defattr(-,root,root)
%{_libdir}/libgda/providers/libgda-postgres.*

%files sqlite
%defattr(-,root,root)
%{_libdir}/libgda/providers/libgda-sqlite.*

%files devel
%defattr(-,root,root)
%{_includedir}/libgda-%{majversion}/
%{_libdir}/*.la
%{_libdir}/*.so
%{_libdir}/pkgconfig/libgda.pc

%files apidocs
%defattr(-,root,root)
%{_datadir}/gtk-doc/html/%{pkgname}/

%changelog
* Sat Jun 13 2009 Silvan Calarco <silvan.calarco@...> 1.2.4-3mamba
- rebuilt after mdbtools update

* Fri Mar 20 2009 Silvan Calarco <silvan.calarco@...> 1.2.4-2mamba
- automatic rebuild by autodist

* Mon Apr 23 2007 Davide Madrisan <davide.madrisan@...> 1.2.4-1mamba
- update to version 1.2.4
- new subpackage apidocs with API documentation
- added missing build requirements
- do not build static libraries
- use %%find_lang macro to package l18n files
- obsolete package libgda1 and related subpackages

* Mon Dec 19 2005 Silvan Calarco <silvan.calarco@...> 1.2.3-1qilnx
- update to version 1.2.3 by autospec

* Fri Oct 28 2005 Davide Madrisan <davide.madrisan@...> 1.2.2-2qilnx
- security fix QSA-2005-129 (CAN-2005-2958) [QiLinux bug#56]

* Wed Oct 26 2005 Davide Madrisan <davide.madrisan@...> 1.2.2-1qilnx
- update to version 1.2.2 by autospec
- specfile fixes
- added SQLite provider package

* Thu Oct 07 2004 Silvan Calarco <silvan.calarco@...> 1.1.6-1qilnx
- update to version 1.1.6 by autospec
- added bdb provider

* Tue May 18 2004 Silvan Calarco <silvan.calarco@...> 1.0.4-1qilnx
- added missing .so in devel package
- database package split

* Tue May 18 2004 Silvan Calarco <silvan.calarco@...> 1.0.4-1qilnx
- first build