OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /v/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 15-Dec-2007 10:54:00
Branch: HEAD Handle: 2007121509535900
Modified files:
openpkg-src/postgresql83
postgresql83.spec
Log:
upgrade pgcluster and libpqxx and remove ancient libpg++
Summary:
Revision Changes Path
1.6 +22 -54 openpkg-src/postgresql83/postgresql83.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/postgresql83/postgresql83.spec
============================================================================
$ cvs diff -u -r1.5 -r1.6 postgresql83.spec
--- openpkg-src/postgresql83/postgresql83.spec 10 Dec 2007 20:32:03
-0000 1.5
+++ openpkg-src/postgresql83/postgresql83.spec 15 Dec 2007 09:53:59
-0000 1.6
@@ -26,16 +26,15 @@
%define V_postgresql 8.3b4
%define V_postgresql_dist 8.3beta4
%define V_postgresql_dir 8.3beta4
-%define V_libpqpp 4.0
-%define V_libpqxx 2.5.5
+%define V_libpqxx 2.6.9
%define V_perl 5.8.8
%define V_pgperl 2.0.2
%define V_psqlodbc 08.02.0500
%define V_pgjdbc 8.2-507
%define V_slony1 1.2.6
%define V_slony1_dir 1215
-%define V_pgcluster 1.7.0rc6
-%define V_pgcluster_dir 1371
+%define V_pgcluster 1.7.0rc7
+%define V_pgcluster_dir 1372
%define V_mysqlcompat 1.0b3
%define V_mysqlcompat_dir 548
@@ -50,7 +49,7 @@
Group: Database
License: GPL
Version: %{V_postgresql}
-Release: 20071210
+Release: 20071215
# package options
%option with_server yes
@@ -69,17 +68,16 @@
# list of sources
Source0:
ftp://ftp.postgresql.org/pub/source/v%{V_postgresql_dir}/postgresql-%{V_postgresql_dist}.tar.bz2
-Source1:
ftp://gborg.postgresql.org/pub/libpqpp/stable/libpq++-%{V_libpqpp}.tar.gz
-Source2:
ftp://gborg.postgresql.org/pub/libpqxx/stable/libpqxx-%{V_libpqxx}.tar.gz
-Source3:
ftp://gborg.postgresql.org/pub/pgperl/stable/pgperl-%{V_pgperl}.tar.gz
-Source4:
ftp://ftp.postgresql.org/pub/odbc/versions/src/psqlodbc-%{V_psqlodbc}.tar.gz
-Source5:
http://pgfoundry.org/frs/download.php/%{V_slony1_dir}/slony1-%{V_slony1}-tar.bz2
-Source6:
http://pgfoundry.org/frs/download.php/%{V_pgcluster_dir}/pgcluster-%{V_pgcluster}-patch.tar.gz
-Source7:
http://pgfoundry.org/frs/download.php/%{V_mysqlcompat_dir}/mysqlcompat-%{V_mysqlcompat}.tar.gz
-Source8:
http://jdbc.postgresql.org/download/postgresql-jdbc-%{V_pgjdbc}.src.tar.gz
-Source9: rc.postgresql
-Source10: pg_migrate
-Source11: pg_passwd
+Source1:
http://pqxx.org/download/software/libpqxx/libpqxx-%{V_libpqxx}.tar.gz
+Source2:
ftp://gborg.postgresql.org/pub/pgperl/stable/pgperl-%{V_pgperl}.tar.gz
+Source3:
ftp://ftp.postgresql.org/pub/odbc/versions/src/psqlodbc-%{V_psqlodbc}.tar.gz
+Source4:
http://pgfoundry.org/frs/download.php/%{V_slony1_dir}/slony1-%{V_slony1}-tar.bz2
+Source5:
http://pgfoundry.org/frs/download.php/%{V_pgcluster_dir}/pgcluster-%{V_pgcluster}.patch.tar.gz
+Source6:
http://pgfoundry.org/frs/download.php/%{V_mysqlcompat_dir}/mysqlcompat-%{V_mysqlcompat}.tar.gz
+Source7:
http://jdbc.postgresql.org/download/postgresql-jdbc-%{V_pgjdbc}.src.tar.gz
+Source8: rc.postgresql
+Source9: pg_migrate
+Source10: pg_passwd
Patch0: postgresql83.patch
# build information
@@ -145,14 +143,9 @@
url = ftp://ftp.postgresql.org/pub/source/v__NEWVER__/
regex = postgresql-(\d+(\.\d+)+)\.tar\.(bz2|gz)
}
- prog postgresql83:libpq++ = {
- version = %{V_libpqpp}
- url = ftp://gborg.postgresql.org/pub/libpqpp/stable/
- regex = libpq\+\+-(__VER__)\.tar\.gz
- }
prog postgresql83:libpqxx = {
version = %{V_libpqxx}
- url = ftp://gborg.postgresql.org/pub/libpqxx/stable/
+ url = http://pqxx.org/development/libpqxx/wiki/DownloadPage
regex = libpqxx-(__VER__)\.tar\.gz
}
prog postgresql83:pgperl = {
@@ -179,7 +172,7 @@
prog postgresql83:pgcluster = {
version = %{V_pgcluster}.%{V_pgcluster_dir}
url = http://pgfoundry.org/frs/?group_id=1000072
- regex = /(\d+/pgcluster-__VER__)-patch\.tar\.gz
+ regex = /(\d+/pgcluster-__VER__)\.patch\.tar\.gz
transform = "s/^(\\d+)\/pgcluster-(.+)$/$2.$1/; $_"
}
prog postgresql83:mysqlcompat = {
@@ -194,7 +187,6 @@
%patch -p0
%if "%{with_cxx}" == "yes"
%setup -q -T -D -a 1
- %setup -q -T -D -a 2
case "%{l_platform -t}" in
*-sunos* )
%{l_shtool} subst \
@@ -215,24 +207,24 @@
libpqxx-%{V_libpqxx}/configure
%endif
%if "%{with_perl}" == "yes"
- %setup -q -T -D -a 3
+ %setup -q -T -D -a 2
%endif
%if "%{with_odbc}" == "yes"
- %setup -q -T -D -a 4
+ %setup -q -T -D -a 3
%endif
%if "%{with_slony1}" == "yes"
- %setup -q -T -D -a 5
+ %setup -q -T -D -a 4
%endif
%if "%{with_pgcluster}" == "yes"
- %setup -q -T -D -a 6
+ %setup -q -T -D -a 5
sed -e '/^diff.*libpq\.rc/,/^diff/d' pgcluster-*-patch |\
%{l_patch} -p1
%endif
%if "%{with_mysqlcompat}" == "yes"
- %setup -q -T -D -a 7
+ %setup -q -T -D -a 6
%endif
%if "%{with_jdbc}" == "yes"
- %setup -q -T -D -a 8
+ %setup -q -T -D -a 7
%endif
# adjust source tree
@@ -315,20 +307,6 @@
# build C++ bindings (both old and new one)
%if "%{with_cxx}" == "yes"
- ( cd libpq++-%{V_libpqpp}
- CXX="%{l_cxx}"
- CFLAGS="%{l_cflags -O}"
- CPPFLAGS="-DHAVE_NAMESPACE_STD -DHAVE_CXX_STRING_HEADER -DDLLIMPORT= "
- CPPFLAGS="$CPPFLAGS -I. -I../src/interfaces/libpq -I../src/interfaces"
- CPPFLAGS="$CPPFLAGS -I../src/include %{l_cppflags}"
- LDFLAGS="%{l_ldflags}"
- OBJS="pgconnection.o pgdatabase.o pgtransdb.o pgcursordb.o pglobject.o"
- for o in $OBJS; do
- $CXX $CFLAGS $CPPFLAGS $LDFLAGS -c -o $o `echo $o | sed -e
's;\.o$;.cc;'`
- done
- rm -f libpq++.a
- ar rc libpq++.a $OBJS
- ) || exit $?
ln -s `pwd`/src/interfaces/libpq/*.h src/include/
( cd libpqxx-%{V_libpqxx}
%{l_shtool} subst \
@@ -490,16 +468,6 @@
# install C++ bindings (both old and new one)
%if "%{with_cxx}" == "yes"
- ( cd libpq++-%{V_libpqpp}
- %{l_shtool} mkdir -f -p -m 755 \
- $RPM_BUILD_ROOT%{l_prefix}/include/libpq++
- %{l_shtool} install -c -m 644 \
- libpq++.h pgconnection.h pgdatabase.h pgtransdb.h pgcursordb.h
pglobject.h \
- $RPM_BUILD_ROOT%{l_prefix}/include/libpq++/
- %{l_shtool} install -c -m 644 \
- libpq++.a \
- $RPM_BUILD_ROOT%{l_prefix}/lib/
- ) || exit $?
( cd libpqxx-%{V_libpqxx}
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/include/pqxx
@@ .
______________________________________________________________________
OpenPKG http://openpkg.org
CVS Repository Commit List [email protected]