head	1.27;
access;
symbols
	OPENPKG_E1_MP_HEAD:1.4
	OPENPKG_E1_MP:1.4
	OPENPKG_E1_MP_2_STABLE:1.1.2.2
	OPENPKG_E1_FP:1.1.2.2
	OPENPKG_2_STABLE_MP:1.1
	OPENPKG_2_STABLE_20061018:1.1.2.2
	OPENPKG_2_STABLE:1.1.0.2;
locks; strict;
comment	@-- @;


1.27
date	2009.10.02.11.05.33;	author rse;	state Exp;
branches;
next	1.26;
commitid	NYXq4JgliVnpZW5u;

1.26
date	2009.09.03.18.48.36;	author rse;	state Exp;
branches;
next	1.25;
commitid	qszeM6gr2O83ug2u;

1.25
date	2009.08.07.14.32.41;	author rse;	state Exp;
branches;
next	1.24;
commitid	lIjKzZlprSh4WLYt;

1.24
date	2009.06.26.17.19.56;	author rse;	state Exp;
branches;
next	1.23;
commitid	uJoXNIrfZoZ8doTt;

1.23
date	2009.04.18.13.13.27;	author rse;	state Exp;
branches;
next	1.22;
commitid	4pHXU27WTIGCZuKt;

1.22
date	2009.03.03.19.50.49;	author rse;	state Exp;
branches;
next	1.21;
commitid	ZK5nTLmNldR5KCEt;

1.21
date	2008.10.23.19.13.38;	author rse;	state Exp;
branches;
next	1.20;
commitid	xx1a2OZNsHspKMnt;

1.20
date	2008.06.13.06.02.12;	author rse;	state Exp;
branches;
next	1.19;
commitid	Rx09aP7VhUmXBK6t;

1.19
date	2008.05.23.08.41.27;	author rse;	state Exp;
branches;
next	1.18;
commitid	ngSJLZsfGxxra44t;

1.18
date	2008.05.03.08.14.24;	author rse;	state Exp;
branches;
next	1.17;
commitid	2pHOhilHlnB1Fu1t;

1.17
date	2008.04.13.15.52.27;	author rse;	state Exp;
branches;
next	1.16;
commitid	jDJXPebW6OH0QXYs;

1.16
date	2008.02.25.06.58.15;	author rse;	state Exp;
branches;
next	1.15;
commitid	sNL4MmN63lSpqKSs;

1.15
date	2008.02.05.19.56.07;	author rse;	state Exp;
branches;
next	1.14;
commitid	QuNeJPkCJjA8nfQs;

1.14
date	2008.01.01.15.00.38;	author rse;	state Exp;
branches;
next	1.13;
commitid	B8esaHJHoduuKILs;

1.13
date	2007.08.07.05.29.06;	author cs;	state Exp;
branches;
next	1.12;
commitid	oTbCTcwXHCMoqMss;

1.12
date	2007.07.09.07.07.04;	author cs;	state Exp;
branches;
next	1.11;
commitid	gza70GrC6KINT3ps;

1.11
date	2007.06.08.06.56.17;	author rse;	state Exp;
branches;
next	1.10;
commitid	Z2IghmqhpRBSP4ls;

1.10
date	2007.05.08.07.37.43;	author rse;	state Exp;
branches;
next	1.9;
commitid	JAdCiInhvqcS36hs;

1.9
date	2007.03.29.05.44.41;	author cs;	state Exp;
branches;
next	1.8;
commitid	XTsMy4jRB8DOIWbs;

1.8
date	2007.03.13.07.11.58;	author rse;	state Exp;
branches;
next	1.7;
commitid	KN7N445zIk0EIT9s;

1.7
date	2007.02.27.07.31.20;	author rse;	state Exp;
branches;
next	1.6;
commitid	PGPxPe5yz6Gbh68s;

1.6
date	2007.02.11.10.37.35;	author rse;	state Exp;
branches;
next	1.5;
commitid	BXmiD1TZOddYO36s;

1.5
date	2007.01.20.08.42.45;	author rse;	state Exp;
branches;
next	1.4;
commitid	nN67kydrsSaqTd3s;

1.4
date	2007.01.01.17.40.16;	author rse;	state Exp;
branches;
next	1.3;
commitid	BicZD6VUl7GuqP0s;

1.3
date	2006.12.22.08.19.01;	author rse;	state Exp;
branches;
next	1.2;
commitid	joHWAmOUIvl4HuZr;

1.2
date	2006.12.10.16.05.01;	author rse;	state Exp;
branches;
next	1.1;
commitid	jePcBQNHWenQEZXr;

1.1
date	2006.10.16.09.07.59;	author rse;	state Exp;
branches
	1.1.2.1;
next	;
commitid	W4LYWfimmZCo7TQr;

1.1.2.1
date	2006.10.16.09.07.59;	author rse;	state dead;
branches;
next	1.1.2.2;
commitid	iZxwRSmmWscPXUQr;

1.1.2.2
date	2006.10.16.14.53.32;	author rse;	state Exp;
branches;
next	;
commitid	iZxwRSmmWscPXUQr;


desc
@@


1.27
log
@upgrading package: opendbx 1.4.3 -> 1.4.4
@
text
@##
##  opendbx.spec -- OpenPKG RPM Package Specification
##  Copyright (c) 2000-2009 OpenPKG Foundation e.V. <http://openpkg.net/>
##
##  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 information
Name:         opendbx
Summary:      Database Access Abstraction Library
URL:          http://www.linuxnetworks.de/opendbx/
Vendor:       Norbert Sendetzky
Packager:     OpenPKG Foundation e.V.
Distribution: OpenPKG Community
Class:        EVAL
Group:        Database
License:      LGPL
Version:      1.4.4
Release:      20091002

#   package options
%option       with_sqlite  yes
%option       with_mysql   yes
%option       with_pgsql   yes

#   list of sources
Source0:      http://www.linuxnetworks.de/opendbx/download/opendbx-%{version}.tar.gz
Patch0:       opendbx.patch

#   build information
Prefix:       %{l_prefix}
BuildRoot:    %{l_buildroot}
BuildPreReq:  OpenPKG, openpkg >= 20040130, gcc
PreReq:       OpenPKG, openpkg >= 20040130
%if "%{with_sqlite}" == "yes"
BuildPreReq:  sqlite, pkgconfig
PreReq:       sqlite
%endif
%if "%{with_mysql}" == "yes"
BuildPreReq:  mysql
PreReq:       mysql
%endif
%if "%{with_pgsql}" == "yes"
BuildPreReq:  postgresql
PreReq:       postgresql
%endif
AutoReq:      no
AutoReqProv:  no

%description
    OpenDBX is an extremely lightweight but extensible C library for
    accessing databases with a single API. It provides a clean and
    simple interface across all supported databases that leads to an
    elegant code design automatically.

%track
    prog opendbx = {
        version   = %{version}
        url       = http://www.linuxnetworks.de/doc/index.php/OpenDBX_Download
        regex     = opendbx-(__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}"
    export LIBS=""
    backends=""
%if "%{with_sqlite}" == "yes"
    backends="$backends sqlite3"
    CPPFLAGS="$CPPFLAGS `pkg-config sqlite3 --cflags`"
    LDFLAGS="$LDFLAGS `pkg-config sqlite3 --libs-only-L`"
    LIBS="$LIBS `pkg-config sqlite3 --libs-only-l`"
%endif
%if "%{with_mysql}" == "yes"
    backends="$backends mysql"
    CPPFLAGS="$CPPFLAGS `mysql_config --include`"
    LIBS="$LIBS `mysql_config --libs`"
%endif
%if "%{with_pgsql}" == "yes"
    backends="$backends pgsql"
    CPPFLAGS="$CPPFLAGS `pg_config --cppflags` %{l_cppflags postgresql}"
    LDFLAGS="$LDFLAGS `pg_config --ldflags`"
    LIBS="$LIBS `pg_config --libs`"
%endif
    ./configure \
        --prefix=%{l_prefix} \
        --with-backends="$backends" \
        --disable-nls
    %{l_make} %{l_mflags}

%install
    rm -rf $RPM_BUILD_ROOT
    %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
    rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/opendbx/lib*.a
    rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/opendbx/lib*.la
    rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/libopendbx.so*
    rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/libopendbx.la
    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}

%files -f files

%clean
    rm -rf $RPM_BUILD_ROOT

@


1.26
log
@upgrading package: opendbx 1.4.2 -> 1.4.3
@
text
@d34 2
a35 2
Version:      1.4.3
Release:      20090903
@


1.25
log
@upgrading package: opendbx 1.4.1 -> 1.4.2
@
text
@d34 2
a35 2
Version:      1.4.2
Release:      20090807
@


1.24
log
@upgrading package: opendbx 1.4.0 -> 1.4.1
@
text
@d34 2
a35 2
Version:      1.4.1
Release:      20090626
@


1.23
log
@bump years in copyright messages
@
text
@d34 2
a35 2
Version:      1.4.0
Release:      20090303
@


1.22
log
@upgrading package: opendbx 1.3.11 -> 1.4.0
@
text
@d3 1
a3 1
##  Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
@


1.21
log
@upgrading package: opendbx 1.3.10 -> 1.3.11
@
text
@d34 2
a35 2
Version:      1.3.11
Release:      20081023
@


1.20
log
@upgrading package: opendbx 1.3.9 -> 1.3.10
@
text
@d34 2
a35 2
Version:      1.3.10
Release:      20080613
d44 1
d81 1
d111 1
a111 1
    %{l_make} %{l_mflags -O}
@


1.19
log
@upgrading package: opendbx 1.3.8 -> 1.3.9
@
text
@d34 2
a35 2
Version:      1.3.9
Release:      20080523
@


1.18
log
@upgrading package: opendbx 1.3.7 -> 1.3.8
@
text
@d34 2
a35 2
Version:      1.3.8
Release:      20080503
@


1.17
log
@upgrading package: opendbx 1.3.6 -> 1.3.7
@
text
@d34 2
a35 2
Version:      1.3.7
Release:      20080413
a43 1
Patch0:       opendbx.patch
a79 1
    %patch -p0
@


1.16
log
@upgrading package: opendbx 1.3.5 -> 1.3.6
@
text
@d34 2
a35 2
Version:      1.3.6
Release:      20080225
d44 1
d81 1
@


1.15
log
@upgrading package: opendbx 1.3.4 -> 1.3.5
@
text
@d34 2
a35 2
Version:      1.3.5
Release:      20080205
@


1.14
log
@Update package specifications according to OpenPKG year 2008 world order:
http://www.mail-archive.com/openpkg-announce@@openpkg.org/msg00221.html
@
text
@d34 2
a35 2
Version:      1.3.4
Release:      20080101
@


1.13
log
@upgrading package: opendbx 1.3.3 -> 1.3.4
@
text
@d3 1
a3 2
##  Copyright (c) 2000-2007 OpenPKG Foundation e.V. <http://openpkg.net/>
##  Copyright (c) 2000-2007 Ralf S. Engelschall <http://engelschall.com/>
d35 1
a35 1
Release:      20070807
@


1.12
log
@upgrading package: opendbx 1.3.2 -> 1.3.3
@
text
@d35 2
a36 2
Version:      1.3.3
Release:      20070709
@


1.11
log
@upgrading package: opendbx 1.3.1 -> 1.3.2
@
text
@d35 2
a36 2
Version:      1.3.2
Release:      20070608
@


1.10
log
@fix tracking
@
text
@d35 2
a36 2
Version:      1.3.1
Release:      20070508
@


1.9
log
@upgrading package: opendbx 1.3.0 -> 1.3.1
@
text
@d36 1
a36 1
Release:      20070329
d75 1
a75 1
        url       = http://www.linuxnetworks.de/opendbx/download/
@


1.8
log
@upgrading package: opendbx 1.2.2 -> 1.3.0
@
text
@d35 2
a36 2
Version:      1.3.0
Release:      20070313
@


1.7
log
@upgrading package: opendbx 1.2.1 -> 1.2.2
@
text
@d35 2
a36 2
Version:      1.2.2
Release:      20070227
@


1.6
log
@upgrading package: opendbx 1.2.0 -> 1.2.1
@
text
@d35 2
a36 2
Version:      1.2.1
Release:      20070211
@


1.5
log
@upgrading package: opendbx 1.1.9 -> 1.2.0
@
text
@d35 2
a36 2
Version:      1.2.0
Release:      20070120
@


1.4
log
@Welcome Year 2007!
@
text
@d35 2
a36 2
Version:      1.1.9
Release:      20061222
@


1.3
log
@upgrading package: opendbx 1.1.8 -> 1.1.9
@
text
@d3 2
a4 2
##  Copyright (c) 2000-2006 OpenPKG Foundation e.V. <http://openpkg.net/>
##  Copyright (c) 2000-2006 Ralf S. Engelschall <http://engelschall.com/>
@


1.2
log
@upgrading package: opendbx 1.1.7 -> 1.1.8
@
text
@d35 2
a36 2
Version:      1.1.8
Release:      20061210
@


1.1
log
@new package: opendbx 1.1.7 (Database Access Abstraction Library)
@
text
@d35 2
a36 2
Version:      1.1.7
Release:      20061016
@


1.1.2.1
log
@file opendbx.spec was added on branch OPENPKG_2_STABLE on 2006-10-16 14:53:32 +0000
@
text
@d1 125
@


1.1.2.2
log
@Mass merge from CURRENT to 2-STABLE (all packages except those of JUNK class)
@
text
@a0 125
##
##  opendbx.spec -- OpenPKG RPM Package Specification
##  Copyright (c) 2000-2006 OpenPKG Foundation e.V. <http://openpkg.net/>
##  Copyright (c) 2000-2006 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 information
Name:         opendbx
Summary:      Database Access Abstraction Library
URL:          http://www.linuxnetworks.de/opendbx/
Vendor:       Norbert Sendetzky
Packager:     OpenPKG Foundation e.V.
Distribution: OpenPKG Community
Class:        EVAL
Group:        Database
License:      LGPL
Version:      1.1.7
Release:      2.20061018

#   package options
%option       with_sqlite  yes
%option       with_mysql   yes
%option       with_pgsql   yes

#   list of sources
Source0:      http://www.linuxnetworks.de/opendbx/download/opendbx-%{version}.tar.gz

#   build information
Prefix:       %{l_prefix}
BuildRoot:    %{l_buildroot}
BuildPreReq:  OpenPKG, openpkg >= 2.20061018, gcc
PreReq:       OpenPKG, openpkg >= 2.20061018
%if "%{with_sqlite}" == "yes"
BuildPreReq:  sqlite, pkgconfig
PreReq:       sqlite
%endif
%if "%{with_mysql}" == "yes"
BuildPreReq:  mysql
PreReq:       mysql
%endif
%if "%{with_pgsql}" == "yes"
BuildPreReq:  postgresql
PreReq:       postgresql
%endif
AutoReq:      no
AutoReqProv:  no

%description
    OpenDBX is an extremely lightweight but extensible C library for
    accessing databases with a single API. It provides a clean and
    simple interface across all supported databases that leads to an
    elegant code design automatically.

%track
    prog opendbx = {
        version   = %{version}
        url       = http://www.linuxnetworks.de/opendbx/download/
        regex     = opendbx-(__VER__)\.tar\.gz
    }

%prep
    %setup -q

%build
    export CC="%{l_cc}"
    export CFLAGS="%{l_cflags -O}"
    export CPPFLAGS="%{l_cppflags}"
    export LDFLAGS="%{l_ldflags}"
    export LIBS=""
    backends=""
%if "%{with_sqlite}" == "yes"
    backends="$backends sqlite3"
    CPPFLAGS="$CPPFLAGS `pkg-config sqlite3 --cflags`"
    LDFLAGS="$LDFLAGS `pkg-config sqlite3 --libs-only-L`"
    LIBS="$LIBS `pkg-config sqlite3 --libs-only-l`"
%endif
%if "%{with_mysql}" == "yes"
    backends="$backends mysql"
    CPPFLAGS="$CPPFLAGS `mysql_config --include`"
    LIBS="$LIBS `mysql_config --libs`"
%endif
%if "%{with_pgsql}" == "yes"
    backends="$backends pgsql"
    CPPFLAGS="$CPPFLAGS `pg_config --cppflags` %{l_cppflags postgresql}"
    LDFLAGS="$LDFLAGS `pg_config --ldflags`"
    LIBS="$LIBS `pg_config --libs`"
%endif
    ./configure \
        --prefix=%{l_prefix} \
        --with-backends="$backends" \
        --disable-nls
    %{l_make} %{l_mflags -O}

%install
    rm -rf $RPM_BUILD_ROOT
    %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
    rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/opendbx/lib*.a
    rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/opendbx/lib*.la
    rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/libopendbx.so*
    rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/libopendbx.la
    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}

%files -f files

%clean
    rm -rf $RPM_BUILD_ROOT

@


