head 1.60;
access;
symbols
OPENPKG_E1_MP_HEAD:1.21
OPENPKG_E1_MP:1.21
OPENPKG_E1_MP_2_STABLE:1.19.2.2
OPENPKG_E1_FP:1.19.2.2
OPENPKG_2_STABLE_MP:1.19
OPENPKG_2_STABLE_20061018:1.19.2.2
OPENPKG_2_STABLE:1.19.0.2;
locks; strict;
comment @-- @;
1.60
date 2009.10.21.15.44.07; author rse; state Exp;
branches;
next 1.59;
commitid 8XPkxFDYSdN6Vp8u;
1.59
date 2009.10.08.21.18.22; author rse; state Exp;
branches;
next 1.58;
commitid b0KHndwSO2sFbM6u;
1.58
date 2009.09.30.17.38.10; author rse; state Exp;
branches;
next 1.57;
commitid GEuvOMFeaS05eJ5u;
1.57
date 2009.09.21.19.43.58; author rse; state Exp;
branches;
next 1.56;
commitid 0WJTtRj79X0bdA4u;
1.56
date 2009.08.12.18.02.25; author rse; state Exp;
branches;
next 1.55;
commitid BSdNV7ySHYD3WqZt;
1.55
date 2009.08.11.17.35.54; author rse; state Exp;
branches;
next 1.54;
commitid C0C7RShwNtcXOiZt;
1.54
date 2009.07.02.16.44.30; author rse; state Exp;
branches;
next 1.53;
commitid 2UAThpBL2Q82P9Ut;
1.53
date 2009.06.30.20.21.21; author rse; state Exp;
branches;
next 1.52;
commitid mW7f5wxeUG4f4VTt;
1.52
date 2009.05.19.17.17.12; author rse; state Exp;
branches;
next 1.51;
commitid PB0YuEVKjPzVpvOt;
1.51
date 2009.05.18.20.38.57; author rse; state Exp;
branches;
next 1.50;
commitid SkmHRDphhg99zoOt;
1.50
date 2009.05.06.18.42.56; author rse; state Exp;
branches;
next 1.49;
commitid pqHV53kxxltgjQMt;
1.49
date 2009.04.21.18.53.10; author rse; state Exp;
branches;
next 1.48;
commitid D8tiNEvOl0nFQUKt;
1.48
date 2009.04.18.13.14.35; author rse; state Exp;
branches;
next 1.47;
commitid 4pHXU27WTIGCZuKt;
1.47
date 2009.03.27.11.45.08; author rse; state Exp;
branches;
next 1.46;
commitid yvTsD0vPufyEhFHt;
1.46
date 2009.02.23.21.51.15; author rse; state Exp;
branches;
next 1.45;
commitid 2rJ54IHTHzqmFBDt;
1.45
date 2008.12.11.18.37.54; author rse; state Exp;
branches;
next 1.44;
commitid 1Eqcp9XC0UivY4ut;
1.44
date 2008.12.01.19.16.47; author rse; state Exp;
branches;
next 1.43;
commitid 0SXtG1wFiqaLvNst;
1.43
date 2008.09.22.19.22.21; author rse; state Exp;
branches;
next 1.42;
commitid KBzWspTX6f4bNNjt;
1.42
date 2008.09.22.19.21.40; author rse; state Exp;
branches;
next 1.41;
commitid auncKHRqwR4XMNjt;
1.41
date 2008.09.16.18.29.14; author rse; state Exp;
branches;
next 1.40;
commitid b4gOtu0NySaVG1jt;
1.40
date 2008.07.09.13.56.41; author rse; state Exp;
branches;
next 1.39;
commitid QgDQxmqqMY9Vo8at;
1.39
date 2008.06.12.18.00.49; author rse; state Exp;
branches;
next 1.38;
commitid MAwUh23Z8W6uCG6t;
1.38
date 2008.06.07.08.07.23; author rse; state Exp;
branches;
next 1.37;
commitid qYdcdnJMldUQuZ5t;
1.37
date 2008.04.14.15.12.05; author rse; state Exp;
branches;
next 1.36;
commitid f277phvGWUobA5Zs;
1.36
date 2008.01.31.06.44.42; author rse; state Exp;
branches;
next 1.35;
commitid zGdoBbENKkrA9xPs;
1.35
date 2008.01.01.15.03.20; author rse; state Exp;
branches;
next 1.34;
commitid B8esaHJHoduuKILs;
1.34
date 2007.11.26.09.00.41; author cs; state Exp;
branches;
next 1.33;
commitid BpyNS69u44TL14Hs;
1.33
date 2007.10.23.15.51.15; author cs; state Exp;
branches;
next 1.32;
commitid 20iLFTzwtmAnoJCs;
1.32
date 2007.10.03.07.43.31; author rse; state Exp;
branches;
next 1.31;
commitid AGZEoxnFoiNUk7As;
1.31
date 2007.08.03.17.25.33; author rse; state Exp;
branches;
next 1.30;
commitid mxo3ijTuqyz9wkss;
1.30
date 2007.07.18.19.46.14; author rse; state Exp;
branches;
next 1.29;
commitid z6NZySjJhNQiOhqs;
1.29
date 2007.06.19.16.03.45; author rse; state Exp;
branches;
next 1.28;
commitid xkODP5WUdLXLvxms;
1.28
date 2007.06.08.07.00.40; author rse; state Exp;
branches;
next 1.27;
commitid UEUhNZb46rDnR4ls;
1.27
date 2007.05.17.15.53.19; author rse; state Exp;
branches;
next 1.26;
commitid nNTmyDCn8uQXviis;
1.26
date 2007.03.08.16.35.44; author cs; state Exp;
branches;
next 1.25;
commitid 7x2HAMbbgR410j9s;
1.25
date 2007.02.25.08.37.35; author rse; state Exp;
branches;
next 1.24;
commitid QMkkoaK1GIZTHQ7s;
1.24
date 2007.02.11.16.57.42; author rse; state Exp;
branches;
next 1.23;
commitid KrFMyb0IcKynV56s;
1.23
date 2007.01.22.08.33.02; author rse; state Exp;
branches;
next 1.22;
commitid aAqM4QqM37p6Mt3s;
1.22
date 2007.01.14.09.27.09; author rse; state Exp;
branches;
next 1.21;
commitid KwBzeNZV9cQBks2s;
1.21
date 2007.01.01.17.41.18; author rse; state Exp;
branches;
next 1.20;
commitid BicZD6VUl7GuqP0s;
1.20
date 2006.11.03.19.05.12; author rse; state Exp;
branches;
next 1.19;
commitid kmLPEBGHc7cpQfTr;
1.19
date 2006.10.14.07.03.55; author rse; state Exp;
branches
1.19.2.1;
next 1.18;
commitid yJcuvNlH0BrOuCQr;
1.18
date 2006.10.13.17.33.13; author thl; state Exp;
branches;
next 1.17;
commitid q5GSxzsSDX29XxQr;
1.17
date 2006.09.27.07.51.04; author rse; state Exp;
branches;
next 1.16;
commitid UXLxAvs0gAYRirOr;
1.16
date 2006.09.03.13.23.06; author rse; state Exp;
branches;
next 1.15;
commitid jOVs8q76lJYBUnLr;
1.15
date 2006.09.02.09.44.56; author rse; state Exp;
branches;
next 1.14;
commitid ihNNeER5fNVKJeLr;
1.14
date 2006.08.28.06.57.14; author rse; state Exp;
branches;
next 1.13;
commitid IbUvb4Z2Z1jcYzKr;
1.13
date 2006.08.06.08.59.23; author rse; state Exp;
branches;
next 1.12;
commitid SV7ZGoAZvDcWlLHr;
1.12
date 2006.07.04.22.22.08; author thl; state Exp;
branches;
next 1.11;
commitid HqIXlw1E27t5RADr;
1.11
date 2006.06.21.06.26.39; author rse; state Exp;
branches;
next 1.10;
commitid sT95zfPTkZ1dZPBr;
1.10
date 2006.06.14.19.02.12; author rse; state Exp;
branches;
next 1.9;
commitid DaaZnd77Rfqmo0Br;
1.9
date 2006.06.11.19.59.18; author rse; state Exp;
branches;
next 1.8;
commitid GFPdS6fLyP6WNCAr;
1.8
date 2006.06.09.20.27.03; author rse; state Exp;
branches;
next 1.7;
commitid EAfEKVSNQ5Uq1nAr;
1.7
date 2006.05.24.18.52.55; author rse; state Exp;
branches;
next 1.6;
commitid 2sKuWvpXDlTeZiyr;
1.6
date 2006.04.20.07.35.31; author rse; state Exp;
branches;
next 1.5;
commitid Ck0G2MAwS4RomStr;
1.5
date 2006.04.09.08.09.21; author rse; state Exp;
branches;
next 1.4;
commitid YRb1OrSzo3fVTssr;
1.4
date 2006.04.05.06.59.25; author rse; state Exp;
branches;
next 1.3;
commitid goGSm6OlUAnUDWrr;
1.3
date 2006.03.28.19.21.57; author rse; state Exp;
branches;
next 1.2;
commitid 6YybTDqFh6jA0Zqr;
1.2
date 2006.03.07.20.57.25; author rse; state Exp;
branches;
next 1.1;
commitid cobSHNtoIjWbdior;
1.1
date 2006.03.07.17.34.01; author rse; state Exp;
branches;
next ;
commitid 1jdn0IKUqynp5hor;
1.19.2.1
date 2006.10.14.07.03.55; author rse; state dead;
branches;
next 1.19.2.2;
commitid iZxwRSmmWscPXUQr;
1.19.2.2
date 2006.10.16.14.55.22; author rse; state Exp;
branches;
next ;
commitid iZxwRSmmWscPXUQr;
desc
@@
1.60
log
@modifying package: python-db-2.5 20091008 -> 20091021
@
text
@##
## python-db.spec -- OpenPKG RPM Package Specification
## Copyright (c) 2000-2009 OpenPKG Foundation e.V.
##
## 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.
##
# FIXME: rse: Oracle module was blindly packaged
# package version
%define V_python 2.5
%define V_pysqlite_major 2.4
%define V_pysqlite 2.4.1
%define V_psycopg2 2.0.13
%define V_mysql_python 1.2.3c1
%define V_cx_oracle 5.0.2
%define V_sqlobject 0.12.0
# package information
Name: python-db
Summary: Python DB-API 2.0 Modules
URL: http://www.python.org/
Vendor: Python Community
Packager: OpenPKG Foundation e.V.
Distribution: OpenPKG Community
Class: EVAL
Group: Language
License: GPL
Version: %{V_python}
Release: 20091021
# package options
%option with_sqlite yes
%option with_pgsql no
%option with_mysql no
%option with_oracle no
# list of sources
Source0: http://initd.org/pub/software/pysqlite/releases/%{V_pysqlite_major}/%{V_pysqlite}/pysqlite-%{V_pysqlite}.tar.gz
Source1: http://initd.org/pub/software/psycopg/psycopg2-%{V_psycopg2}.tar.gz
Source2: http://switch.dl.sourceforge.net/mysql-python/MySQL-python-%{V_mysql_python}.tar.gz
Source3: http://switch.dl.sourceforge.net/cx-oracle/cx_Oracle-%{V_cx_oracle}.tar.gz
Source4: http://pypi.python.org/packages/source/S/SQLObject/SQLObject-%{V_sqlobject}.tar.gz
Patch0: python-db.patch
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 20040130, python >= %{V_python}
PreReq: OpenPKG, openpkg >= 20040130, python >= %{V_python}
BuildPreReq: python-setup
%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_oracle}" == "yes"
BuildPreReq: oracle
PreReq: oracle
%endif
AutoReq: no
AutoReqProv: no
%description
This packages provides Python DB-API 2.0 compliant bindings to
various RDBMS. It currently supports SQLite, PostgreSQL, MySQL and
Oracle.
%track
prog python-db:pysqlite = {
version = %{V_pysqlite}
url = http://initd.org/pub/software/pysqlite/releases/
regex = (\d+\.\d+)/
url = http://initd.org/pub/software/pysqlite/releases/__NEWVER1__/
regex = (\d+\.\d+\.\d+)/
url = http://initd.org/pub/software/pysqlite/releases/__NEWVER1__/__NEWVER2__/
regex = pysqlite-(__VER__)\.tar\.gz
}
prog python-db:psycopg2 = {
version = %{V_psycopg2}
url = http://initd.org/pub/software/psycopg/
regex = psycopg2-(__VER__)\.tar\.gz
}
prog python-db:mysql-python = {
version = %{V_mysql_python}
url = http://sourceforge.net/projects/mysql-python/files/
regex = MySQL-python-(__VER__)\.tar\.gz
}
prog python-db:cx_oracle = {
version = %{V_cx_oracle}
url = http://sourceforge.net/projects/cx-oracle/files/
regex = cx_Oracle-(__VER__)\.tar\.gz
}
prog python-db:sqlobject = {
version = %{V_sqlobject}
url = http://pypi.python.org/pypi/SQLObject
regex = pypi/SQLObject/(__VER__)
}
%prep
%setup -q -c
%setup -q -T -D -a 1
%setup -q -T -D -a 2
%setup -q -T -D -a 3
%setup -q -T -D -a 4
%patch -p0
%build
%if "%{with_sqlite}" == "yes"
( cd pysqlite-%{V_pysqlite}
%{l_shtool} subst \
-e 's;^\([ »··]*include_dirs = \[\)\([^\]]*\).*$;\1"%{l_prefix}/include"\2;' \
-e 's;^\([ »··]*library_dirs = \[\)\([^\]]*\).*$;\1"%{l_prefix}/lib"\2;' \
setup.py
%{l_prefix}/bin/python setup.py build
) || exit $?
%endif
%if "%{with_pgsql}" == "yes"
( cd psycopg2-%{V_psycopg2}
%{l_prefix}/bin/python setup.py build
) || exit $?
%endif
%if "%{with_mysql}" == "yes"
( cd MySQL-python-%{V_mysql_python}
%{l_prefix}/bin/python setup.py build
) || exit $?
%endif
%if "%{with_oracle}" == "yes"
( cd cx_Oracle-%{V_cx_oracle}
%{l_shtool} subst \
-e 's;^\(PYTHON=\).*$;\1 %{l_prefix}/bin/python;' \
Makefile
ORACLE_HOME="`%{l_rc} --query oracle_home`"
export ORACLE_HOME
%{l_prefix}/bin/python setup.py build
) || exit $?
%endif
( cd SQLObject-%{V_sqlobject}
%{l_prefix}/bin/python setup.py build
) || exit $?
%install
rm -rf $RPM_BUILD_ROOT
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}
%if "%{with_sqlite}" == "yes"
( cd pysqlite-%{V_pysqlite}
%{l_prefix}/bin/python setup.py install \
--skip-build \
--root=$RPM_BUILD_ROOT \
--prefix=%{l_prefix}
rm -rf $RPM_BUILD_ROOT%{l_prefix}/pysqlite2-doc
) || exit $?
%endif
%if "%{with_pgsql}" == "yes"
( cd psycopg2-%{V_psycopg2}
%{l_prefix}/bin/python setup.py install \
--skip-build \
--root=$RPM_BUILD_ROOT \
--prefix=%{l_prefix}
) || exit $?
%endif
%if "%{with_mysql}" == "yes"
( cd MySQL-python-%{V_mysql_python}
%{l_prefix}/bin/python setup.py install \
--skip-build \
--root=$RPM_BUILD_ROOT \
--prefix=%{l_prefix}
) || exit $?
%endif
%if "%{with_oracle}" == "yes"
( cd cx_Oracle-%{V_cx_oracle}
ORACLE_HOME="`%{l_rc} --query oracle_home`"
export ORACLE_HOME
%{l_prefix}/bin/python setup.py install \
--skip-build \
--root=$RPM_BUILD_ROOT \
--prefix=%{l_prefix}
) || exit $?
%endif
( cd SQLObject-%{V_sqlobject}
%{l_prefix}/bin/python setup.py install \
--skip-build \
--root=$RPM_BUILD_ROOT \
--prefix=%{l_prefix}
) || exit $?
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT
@
1.59
log
@modifying package: python-db-2.5 20090930 -> 20091008
@
text
@d33 1
a33 1
%define V_sqlobject 0.11.2
d46 1
a46 1
Release: 20091008
@
1.58
log
@modifying package: python-db-2.5 20090921 -> 20090930
@
text
@d30 1
a30 1
%define V_psycopg2 2.0.12
d46 1
a46 1
Release: 20090930
@
1.57
log
@modifying package: python-db-2.5 20090812 -> 20090921
@
text
@d33 1
a33 1
%define V_sqlobject 0.11.1
d46 1
a46 1
Release: 20090921
@
1.56
log
@modifying package: python-db-2.5 20090811 -> 20090812
@
text
@d33 1
a33 1
%define V_sqlobject 0.11.0
d46 1
a46 1
Release: 20090812
@
1.55
log
@modifying package: python-db-2.5 20090702 -> 20090811
@
text
@d33 1
a33 1
%define V_sqlobject 0.10.6
d46 1
a46 1
Release: 20090811
@
1.54
log
@modifying package: python-db-2.5 20090519 -> 20090702
@
text
@d30 1
a30 1
%define V_psycopg2 2.0.11
d46 1
a46 1
Release: 20090702
@
1.53
log
@switch to the new SourceForge.net website functionality where we can find all files (again)
@
text
@d31 2
a32 2
%define V_mysql_python 1.2.2
%define V_cx_oracle 5.0.1
d46 1
a46 1
Release: 20090519
@
1.52
log
@modifying package: python-db-2.5 20090518 -> 20090519
@
text
@d109 1
a109 1
url = http://prdownloads.sourceforge.net/mysql-python/
d114 1
a114 1
url = http://prdownloads.sourceforge.net/cx-oracle/
@
1.51
log
@modifying package: python-db-2.5 20090506 -> 20090518
@
text
@d33 1
a33 1
%define V_sqlobject 0.10.5
d46 1
a46 1
Release: 20090518
@
1.50
log
@modifying package: python-db-2.5 20090421 -> 20090506
@
text
@d30 1
a30 1
%define V_psycopg2 2.0.10
d46 1
a46 1
Release: 20090506
@
1.49
log
@modifying package: python-db-2.5 20090327 -> 20090421
@
text
@d33 1
a33 1
%define V_sqlobject 0.10.4
d46 1
a46 1
Release: 20090421
@
1.48
log
@bump years in copyright messages
@
text
@d30 1
a30 1
%define V_psycopg2 2.0.9
d46 1
a46 1
Release: 20090327
@
1.47
log
@modifying package: python-db-2.5 20090223 -> 20090327
@
text
@d3 1
a3 1
## Copyright (c) 2000-2008 OpenPKG Foundation e.V.
@
1.46
log
@modifying package: python-db-2.5 20081211 -> 20090223
@
text
@d32 1
a32 1
%define V_cx_oracle 4.4
d46 1
a46 1
Release: 20090223
@
1.45
log
@modifying package: python-db-2.5 20081201 -> 20081211
@
text
@d30 1
a30 1
%define V_psycopg2 2.0.8
d46 1
a46 1
Release: 20081211
@
1.44
log
@modifying package: python-db-2.5 20080922 -> 20081201
@
text
@d33 1
a33 1
%define V_sqlobject 0.10.3
d46 1
a46 1
Release: 20081201
@
1.43
log
@requires python-setup
@
text
@d33 1
a33 1
%define V_sqlobject 0.10.2
d46 1
a46 1
Release: 20080922
@
1.42
log
@fix patch and add SQLObject
@
text
@d67 1
@
1.41
log
@modifying package: python-db-2.5 20080709 -> 20080916
@
text
@d33 1
d46 1
a46 1
Release: 20080916
d59 1
d116 5
d127 1
d160 3
d203 6
@
1.40
log
@remove obsolete DCOracle2 module and upgrade mysql_python module
@
text
@d30 1
a30 1
%define V_psycopg2 2.0.7
d45 1
a45 1
Release: 20080709
@
1.39
log
@modifying package: python-db-2.5 20080607 -> 20080612
@
text
@d31 1
a31 2
%define V_dcoracle2 1.2
%define V_mysql_python 1.2.2c1
d45 1
a45 1
Release: 20080612
d56 2
a57 3
Source2: http://www.zope.org/Members/matt/dco2/%{V_dcoracle2}/DCOracle2-%{V_dcoracle2}.tgz
Source3: http://switch.dl.sourceforge.net/mysql-python/MySQL-python-%{V_mysql_python}.tar.gz
Source4: http://switch.dl.sourceforge.net/cx-oracle/cx_Oracle-%{V_cx_oracle}.tar.gz
a108 5
prog python-db:dcoracle2 = {
version = %{V_dcoracle2}
url = http://www.zope.org/Members/matt/dco2/
regex = DCOracle2-(\d+\.[\d\.]+)\.tgz
}
a119 1
%setup -q -T -D -a 4
a142 9
( cd DCOracle2
%{l_shtool} subst \
-e 's;^\(PYTHON=\).*$;\1 %{l_prefix}/bin/python;' \
Makefile
ORACLE_HOME="`%{l_rc} --query oracle_home`"
export ORACLE_HOME
%{l_prefix}/bin/python setup.py build
MAKE="%{l_make}" %{l_make} %{l_mflags -O} DCOracle2/dco2.so
) || exit $?
a182 8
( cd DCOracle2
ORACLE_HOME="`%{l_rc} --query oracle_home`"
export ORACLE_HOME
%{l_prefix}/bin/python setup.py install \
--skip-build \
--root=$RPM_BUILD_ROOT \
--prefix=%{l_prefix}
) || exit $?
@
1.38
log
@fix packaging
@
text
@d33 1
a33 1
%define V_cx_oracle 4.3.3
d46 1
a46 1
Release: 20080607
@
1.37
log
@modifying package: python-db-2.5 20080131 -> 20080414
@
text
@d46 1
a46 1
Release: 20080414
@
1.36
log
@modifying package: python-db-2.5 20080101 -> 20080131
@
text
@d30 1
a30 1
%define V_psycopg2 2.0.6
d46 1
a46 1
Release: 20080131
@
1.35
log
@Update package specifications according to OpenPKG year 2008 world order:
http://www.mail-archive.com/openpkg-announce@@openpkg.org/msg00221.html
@
text
@d29 1
a29 1
%define V_pysqlite 2.4.0
d46 1
a46 1
Release: 20080101
@
1.34
log
@modifying package: python-db-2.5 20071023 -> 20071126
@
text
@d3 1
a3 2
## Copyright (c) 2000-2007 OpenPKG Foundation e.V.
## Copyright (c) 2000-2007 Ralf S. Engelschall
d46 1
a46 1
Release: 20071126
@
1.33
log
@unbreak build of pysqlite; upgrade of psycopg2
@
text
@d29 2
a30 2
%define V_pysqlite_major 2.3
%define V_pysqlite 2.3.5
d47 1
a47 1
Release: 20071023
@
1.32
log
@modifying package: python-db-2.5 20070803 -> 20071003
@
text
@d31 1
a31 1
%define V_psycopg2 2.0.6b2
d47 1
a47 1
Release: 20071003
d135 3
a137 3
-e 's;/usr/include;%{l_prefix}/include;' \
-e 's;/usr/lib;%{l_prefix}/lib;' \
setup.cfg
@
1.31
log
@blind upgrade
@
text
@d34 1
a34 1
%define V_cx_oracle 4.3.2
d47 1
a47 1
Release: 20070803
@
1.30
log
@modifying package: python-db-2.5 20070619 -> 20070718
@
text
@d34 1
a34 1
%define V_cx_oracle 4.3.1
d47 1
a47 1
Release: 20070718
@
1.29
log
@modifying package: python-db-2.5 20070608 -> 20070619
@
text
@d30 1
a30 1
%define V_pysqlite 2.3.4
d47 1
a47 1
Release: 20070619
@
1.28
log
@modifying package: python-db-2.5 20070517 -> 20070608
@
text
@d30 1
a30 1
%define V_pysqlite 2.3.3
d47 1
a47 1
Release: 20070608
@
1.27
log
@modifying package: python-db-2.5 20070308 -> 20070517
@
text
@d34 1
a34 1
%define V_cx_oracle 4.3
d47 1
a47 1
Release: 20070517
@
1.26
log
@modifying package: python-db-2.5 20070225 -> 20070308
@
text
@d31 1
a31 1
%define V_psycopg2 2.0.6b1
d47 1
a47 1
Release: 20070308
@
1.25
log
@modifying package: python-db-2.5 20070211 -> 20070225
@
text
@d34 1
a34 1
%define V_cx_oracle 4.2.1
d47 1
a47 1
Release: 20070225
@
1.24
log
@modifying package: python-db-2.5 20070122 -> 20070211
@
text
@d33 1
a33 1
%define V_mysql_python 1.2.2b3
d47 1
a47 1
Release: 20070211
@
1.23
log
@modifying package: python-db-2.5 20070114 -> 20070122
@
text
@d33 1
a33 1
%define V_mysql_python 1.2.2b2
d47 1
a47 1
Release: 20070122
@
1.22
log
@modifying package: python-db-2.5 20061103 -> 20070114
@
text
@d31 1
a31 1
%define V_psycopg2 2.0.5.1
d47 1
a47 1
Release: 20070114
@
1.21
log
@Welcome Year 2007!
@
text
@d30 1
a30 1
%define V_pysqlite 2.3.2
d47 1
a47 1
Release: 20061103
@
1.20
log
@our python is already at 2.5
@
text
@d3 2
a4 2
## Copyright (c) 2000-2006 OpenPKG Foundation e.V.
## Copyright (c) 2000-2006 Ralf S. Engelschall
@
1.19
log
@modifying package: python-db-2.4 20061013 -> 20061014
@
text
@d28 1
a28 1
%define V_python 2.4
d47 1
a47 1
Release: 20061014
d66 2
a67 2
BuildPreReq: OpenPKG, openpkg >= 20040130, python
PreReq: OpenPKG, openpkg >= 20040130, python
@
1.19.2.1
log
@file python-db.spec was added on branch OPENPKG_2_STABLE on 2006-10-16 14:55:22 +0000
@
text
@d1 224
@
1.19.2.2
log
@Mass merge from CURRENT to 2-STABLE (all packages except those of JUNK class)
@
text
@a0 224
##
## python-db.spec -- OpenPKG RPM Package Specification
## Copyright (c) 2000-2006 OpenPKG Foundation e.V.
## Copyright (c) 2000-2006 Ralf S. Engelschall
##
## 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.
##
# FIXME: rse: Oracle module was blindly packaged
# package version
%define V_python 2.4
%define V_pysqlite_major 2.3
%define V_pysqlite 2.3.2
%define V_psycopg2 2.0.5.1
%define V_dcoracle2 1.2
%define V_mysql_python 1.2.2b2
%define V_cx_oracle 4.2.1
# package information
Name: python-db
Summary: Python DB-API 2.0 Modules
URL: http://www.python.org/
Vendor: Python Community
Packager: OpenPKG Foundation e.V.
Distribution: OpenPKG Community
Class: EVAL
Group: Language
License: GPL
Version: %{V_python}
Release: 2.20061018
# package options
%option with_sqlite yes
%option with_pgsql no
%option with_mysql no
%option with_oracle no
# list of sources
Source0: http://initd.org/pub/software/pysqlite/releases/%{V_pysqlite_major}/%{V_pysqlite}/pysqlite-%{V_pysqlite}.tar.gz
Source1: http://initd.org/pub/software/psycopg/psycopg2-%{V_psycopg2}.tar.gz
Source2: http://www.zope.org/Members/matt/dco2/%{V_dcoracle2}/DCOracle2-%{V_dcoracle2}.tgz
Source3: http://switch.dl.sourceforge.net/mysql-python/MySQL-python-%{V_mysql_python}.tar.gz
Source4: http://switch.dl.sourceforge.net/cx-oracle/cx_Oracle-%{V_cx_oracle}.tar.gz
Patch0: python-db.patch
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 2.20061018, python
PreReq: OpenPKG, openpkg >= 2.20061018, python
%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_oracle}" == "yes"
BuildPreReq: oracle
PreReq: oracle
%endif
AutoReq: no
AutoReqProv: no
%description
This packages provides Python DB-API 2.0 compliant bindings to
various RDBMS. It currently supports SQLite, PostgreSQL, MySQL and
Oracle.
%track
prog python-db:pysqlite = {
version = %{V_pysqlite}
url = http://initd.org/pub/software/pysqlite/releases/
regex = (\d+\.\d+)/
url = http://initd.org/pub/software/pysqlite/releases/__NEWVER1__/
regex = (\d+\.\d+\.\d+)/
url = http://initd.org/pub/software/pysqlite/releases/__NEWVER1__/__NEWVER2__/
regex = pysqlite-(__VER__)\.tar\.gz
}
prog python-db:psycopg2 = {
version = %{V_psycopg2}
url = http://initd.org/pub/software/psycopg/
regex = psycopg2-(__VER__)\.tar\.gz
}
prog python-db:mysql-python = {
version = %{V_mysql_python}
url = http://prdownloads.sourceforge.net/mysql-python/
regex = MySQL-python-(__VER__)\.tar\.gz
}
prog python-db:dcoracle2 = {
version = %{V_dcoracle2}
url = http://www.zope.org/Members/matt/dco2/
regex = DCOracle2-(\d+\.[\d\.]+)\.tgz
}
prog python-db:cx_oracle = {
version = %{V_cx_oracle}
url = http://prdownloads.sourceforge.net/cx-oracle/
regex = cx_Oracle-(__VER__)\.tar\.gz
}
%prep
%setup -q -c
%setup -q -T -D -a 1
%setup -q -T -D -a 2
%setup -q -T -D -a 3
%setup -q -T -D -a 4
%patch -p0
%build
%if "%{with_sqlite}" == "yes"
( cd pysqlite-%{V_pysqlite}
%{l_shtool} subst \
-e 's;/usr/include;%{l_prefix}/include;' \
-e 's;/usr/lib;%{l_prefix}/lib;' \
setup.cfg
%{l_prefix}/bin/python setup.py build
) || exit $?
%endif
%if "%{with_pgsql}" == "yes"
( cd psycopg2-%{V_psycopg2}
%{l_prefix}/bin/python setup.py build
) || exit $?
%endif
%if "%{with_mysql}" == "yes"
( cd MySQL-python-%{V_mysql_python}
%{l_prefix}/bin/python setup.py build
) || exit $?
%endif
%if "%{with_oracle}" == "yes"
( cd DCOracle2
%{l_shtool} subst \
-e 's;^\(PYTHON=\).*$;\1 %{l_prefix}/bin/python;' \
Makefile
ORACLE_HOME="`%{l_rc} --query oracle_home`"
export ORACLE_HOME
%{l_prefix}/bin/python setup.py build
MAKE="%{l_make}" %{l_make} %{l_mflags -O} DCOracle2/dco2.so
) || exit $?
( cd cx_Oracle-%{V_cx_oracle}
%{l_shtool} subst \
-e 's;^\(PYTHON=\).*$;\1 %{l_prefix}/bin/python;' \
Makefile
ORACLE_HOME="`%{l_rc} --query oracle_home`"
export ORACLE_HOME
%{l_prefix}/bin/python setup.py build
) || exit $?
%endif
%install
rm -rf $RPM_BUILD_ROOT
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}
%if "%{with_sqlite}" == "yes"
( cd pysqlite-%{V_pysqlite}
%{l_prefix}/bin/python setup.py install \
--skip-build \
--root=$RPM_BUILD_ROOT \
--prefix=%{l_prefix}
rm -rf $RPM_BUILD_ROOT%{l_prefix}/pysqlite2-doc
) || exit $?
%endif
%if "%{with_pgsql}" == "yes"
( cd psycopg2-%{V_psycopg2}
%{l_prefix}/bin/python setup.py install \
--skip-build \
--root=$RPM_BUILD_ROOT \
--prefix=%{l_prefix}
) || exit $?
%endif
%if "%{with_mysql}" == "yes"
( cd MySQL-python-%{V_mysql_python}
%{l_prefix}/bin/python setup.py install \
--skip-build \
--root=$RPM_BUILD_ROOT \
--prefix=%{l_prefix}
) || exit $?
%endif
%if "%{with_oracle}" == "yes"
( cd DCOracle2
ORACLE_HOME="`%{l_rc} --query oracle_home`"
export ORACLE_HOME
%{l_prefix}/bin/python setup.py install \
--skip-build \
--root=$RPM_BUILD_ROOT \
--prefix=%{l_prefix}
) || exit $?
( cd cx_Oracle-%{V_cx_oracle}
ORACLE_HOME="`%{l_rc} --query oracle_home`"
export ORACLE_HOME
%{l_prefix}/bin/python setup.py install \
--skip-build \
--root=$RPM_BUILD_ROOT \
--prefix=%{l_prefix}
) || exit $?
%endif
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT
@
1.18
log
@new world order for "Packager" and "Distribution" headers
@
text
@d33 1
a33 1
%define V_mysql_python 1.2.2b1
d47 1
a47 1
Release: 20061013
@
1.17
log
@modifying package: python-db-2.4 20060903 -> 20060927
@
text
@d41 2
a42 2
Packager: OpenPKG
Distribution: OpenPKG
d47 1
a47 1
Release: 20060927
@
1.16
log
@modifying package: python-db-2.4 20060902 -> 20060903
@
text
@d34 1
a34 1
%define V_cx_oracle 4.2
d47 1
a47 1
Release: 20060903
@
1.15
log
@modifying package: python-db-2.4 20060828 -> 20060902
@
text
@d31 1
a31 1
%define V_psycopg2 2.0.5
d47 1
a47 1
Release: 20060902
@
1.14
log
@modifying package: python-db-2.4 20060806 -> 20060828
@
text
@d31 1
a31 1
%define V_psycopg2 2.0.4
d47 1
a47 1
Release: 20060828
@
1.13
log
@upgrade PgSQL binding; fix Oracle binding; add a second contributed Oracle binding (untested)
@
text
@d33 1
a33 1
%define V_mysql_python 1.2.1_p2
d47 1
a47 1
Release: 20060806
@
1.12
log
@modifying package: python-db-2.4 20060621 -> 20060705
@
text
@d31 1
a31 1
%define V_psycopg2 2.0.2
d34 1
d47 1
a47 1
Release: 20060705
d60 1
d117 5
d128 1
d152 1
a152 1
( cd DCOracle2-%{V_dcoracle2}
d161 8
d201 9
a209 1
( cd DCOracle2-%{V_dcoracle2}
@
1.11
log
@modifying package: python-db-2.4 20060614 -> 20060621
@
text
@d30 1
a30 1
%define V_pysqlite 2.3.1
d46 1
a46 1
Release: 20060621
@
1.10
log
@modifying package: python-db-2.4 20060611 -> 20060614
@
text
@d30 1
a30 1
%define V_pysqlite 2.3.0
d46 1
a46 1
Release: 20060614
@
1.9
log
@modifying package: python-db-2.4 20060609 -> 20060611
@
text
@d29 2
a30 2
%define V_pysqlite_major 2.2
%define V_pysqlite 2.2.2
d46 1
a46 1
Release: 20060611
d127 2
a128 2
-e 's;/usr/local/include;%{l_prefix}/include;' \
-e 's;/usr/local/lib;%{l_prefix}/lib;' \
@
1.8
log
@modifying package: python-db-2.4 20060524 -> 20060609
@
text
@d31 1
a31 1
%define V_psycopg2 2.0.1
d46 1
a46 1
Release: 20060609
@
1.7
log
@SourceForge switched their URLs again and the canonical osdn.dl.sf.net no longer is available, hence switch to switch.dl.sf.net, one of the longest available and hopefully still long available mirrors
@
text
@d31 1
a31 1
%define V_psycopg2 2.0b8
d46 1
a46 1
Release: 20060524
@
1.6
log
@modifying package: python-db-2.4 20060409 -> 20060420
@
text
@d46 1
a46 1
Release: 20060420
d58 1
a58 1
Source3: http://osdn.dl.sourceforge.net/mysql-python/MySQL-python-%{V_mysql_python}.tar.gz
@
1.5
log
@modifying package: python-db-2.4 20060405 -> 20060409
@
text
@d30 1
a30 1
%define V_pysqlite 2.2.0
d46 1
a46 1
Release: 20060409
@
1.4
log
@modifying package: python-db-2.4 20060328 -> 20060405
@
text
@d33 1
a33 1
%define V_mysql_python 1.2.1c8
d46 1
a46 1
Release: 20060405
@
1.3
log
@modifying package: python-db-2.4 20060307 -> 20060328
@
text
@d29 2
a30 2
%define V_pysqlite_major 2.1
%define V_pysqlite 2.1.3
d46 1
a46 1
Release: 20060328
@
1.2
log
@fix SQLite module building by removing nasty setuptools stuff
@
text
@d33 1
a33 1
%define V_mysql_python 1.2.1c7
d46 1
a46 1
Release: 20060307
@
1.1
log
@new package: python-db 2.4 (Python DB-API 2.0 Modules)
@
text
@a24 1
# FIXME: rse: SQLite module still has some install problems
a31 1
%define V_setuptools 0.6a9
d49 1
a49 1
%option with_sqlite no
a58 1
Source4: http://cheeseshop.python.org/packages/%{V_python}/s/setuptools/setuptools-%{V_setuptools}-py%{V_python}.egg
a125 1
cp %{SOURCE setuptools-%{V_setuptools}-py%{V_python}.egg} .
d165 1
@