| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184 |
- ##
- ## libgda.spec -- OpenPKG RPM Package Specification
- ## Copyright (c) 2000-2007 OpenPKG Foundation e.V. <http://openpkg.net/>
- ## Copyright (c) 2000-2007 Ralf S. Engelschall <http://engelschall.com/>
- ##
- ## Permission to use, copy, modify, and distribute this software for
- ## any purpose with or without fee is hereby granted, provided that
- ## the above copyright notice and this permission notice appear in all
- ## copies.
- ##
- ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
- ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- ## SUCH DAMAGE.
- ##
- # package version
- %define V_major 2.99
- %define V_minor 5
- # package information
- Name: libgda
- Summary: GNU Data Access Library
- URL: http://www.gnome-db.org/
- Vendor: The GNOME Project
- Packager: OpenPKG Foundation e.V.
- Distribution: OpenPKG Community
- Class: EVAL
- Group: Database
- License: GPL/LGPL
- Version: %{V_major}.%{V_minor}
- Release: 20070213
- # package options
- %option with_sqlite yes
- %option with_pgsql no
- %option with_mysql no
- %option with_mdb no
- %option with_odbc no
- %option with_db no
- %option with_ldap no
- # list of sources
- Source0: http://ftp.gnome.org/pub/GNOME/sources/libgda/%{V_major}/libgda-%{version}.tar.gz
- Patch0: libgda.patch
- # build information
- Prefix: %{l_prefix}
- BuildRoot: %{l_buildroot}
- BuildPreReq: OpenPKG, openpkg >= 20040130, make, pkgconfig
- PreReq: OpenPKG, openpkg >= 20040130
- BuildPreReq: glib2, libxml, libxslt, perl-xml
- PreReq: glib2, libxml, libxslt, perl-xml
- %if "%{with_sqlite}" == "yes"
- BuildPreReq: sqlite
- PreReq: sqlite
- %endif
- %if "%{with_pgsql}" == "yes"
- BuildPreReq: postgresql
- PreReq: postgresql
- %endif
- %if "%{with_mysql}" == "yes"
- BuildPreReq: mysql
- PreReq: mysql
- %endif
- %if "%{with_mdb}" == "yes"
- BuildPreReq: mdbtools
- PreReq: mdbtools
- %endif
- %if "%{with_odbc}" == "yes"
- BuildPreReq: ODBC
- PreReq: ODBC
- %endif
- %if "%{with_db}" == "yes"
- BuildPreReq: db
- PreReq: db
- %endif
- %if "%{with_ldap}" == "yes"
- BuildPreReq: openldap
- PreReq: openldap
- %endif
- AutoReq: no
- AutoReqProv: no
- %description
- GNU Data Access (GDA) is an attempt to provide uniform access to
- different kinds of data sources (databases, information servers,
- mail spools, etc). It is a complete architecture that provides all
- you need to access data. It is defined by a set of plugin APIs as
- generic as possible (but very powerful at the same time) so that
- any kind of data source can be accessed through them. libgda is an
- interface to the GDA architecture, providing a nice wrapper around
- the GDA interfaces, for both the client and the server parts. It
- also provides a bunch of tools to help you both in the development
- and management of your data sources, all done through the GDA
- model's interfaces.
- %track
- prog libgda = {
- version = %{version}
- url = http://ftp.gnome.org/pub/GNOME/sources/libgda/%{V_major}/
- regex = libgda-(__VER__)\.tar\.gz
- }
- %prep
- %setup -q
- %patch -p0
- %build
- export CC="%{l_cc}"
- export CFLAGS="%{l_cflags -O}"
- export CPPFLAGS="%{l_cppflags}"
- export LDFLAGS="%{l_ldflags}"
- ./configure \
- --prefix=%{l_prefix} \
- --mandir=%{l_prefix}/man \
- %if "%{with_sqlite}" == "yes"
- --with-sqlite=%{l_prefix} \
- %else
- --without-sqlite \
- %endif
- %if "%{with_pgsql}" == "yes"
- --with-postgres=%{l_prefix} \
- %else
- --without-postgres \
- %endif
- %if "%{with_mysql}" == "yes"
- --with-mysql=%{l_prefix} \
- %else
- --without-mysql \
- %endif
- %if "%{with_mdb}" == "yes"
- --with-mdb=%{l_prefix} \
- %else
- --without-mdb \
- %endif
- %if "%{with_odbc}" == "yes"
- --with-odbc=%{l_prefix} \
- %else
- --without-odbc \
- %endif
- %if "%{with_db}" == "yes"
- --with-bdb=%{l_prefix} \
- %else
- --without-bdb \
- %endif
- %if "%{with_ldap}" == "yes"
- --with-ldap=%{l_prefix} \
- %else
- --without-ldap \
- %endif
- --disable-rebuilds \
- --enable-shared \
- --enable-static
- %{l_make} %{l_mflags}
- %install
- rm -rf $RPM_BUILD_ROOT
- %{l_make} %{l_mflags} install \
- AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" \
- mkinstalldirs="%{l_shtool} mkdir -f -p -m 755"
- strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
- rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/locale
- rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/gtk-doc
- rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/*.s[ol]*
- rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/*.la
- %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
- %{l_files_std} \
- '%not %dir %{l_prefix}/lib/pkgconfig'
- %files -f files
- %clean
- rm -rf $RPM_BUILD_ROOT
|