|
|
@@ -22,7 +22,9 @@
|
|
|
##
|
|
|
|
|
|
# package versions
|
|
|
-%define V_postgresql 8.2.7
|
|
|
+%define V_postgresql 8.3.1
|
|
|
+%define V_postgresql_dist 8.3.1
|
|
|
+%define V_postgresql_dir 8.3.1
|
|
|
%define V_libpqxx 2.6.9
|
|
|
%define V_perl 5.8.8
|
|
|
%define V_pgperl 2.0.2
|
|
|
@@ -30,8 +32,8 @@
|
|
|
%define V_pgjdbc 8.3-603
|
|
|
%define V_slony1_major 1.2
|
|
|
%define V_slony1_minor 13
|
|
|
-%define V_pgcluster 1.7.0rc12
|
|
|
-%define V_pgcluster_dir 1708
|
|
|
+%define V_pgcluster 1.9.0rc5
|
|
|
+%define V_pgcluster_dir 1706
|
|
|
%define V_mysqlcompat 1.0b3
|
|
|
%define V_mysqlcompat_dir 548
|
|
|
|
|
|
@@ -46,7 +48,7 @@ Class: BASE
|
|
|
Group: Database
|
|
|
License: GPL
|
|
|
Version: %{V_postgresql}
|
|
|
-Release: 20080329
|
|
|
+Release: 20080402
|
|
|
|
|
|
# package options
|
|
|
%option with_server yes
|
|
|
@@ -61,9 +63,10 @@ Release: 20080329
|
|
|
%option with_kerberos no
|
|
|
%option with_mysqlcompat no
|
|
|
%option with_int_datetime no
|
|
|
+%option with_xml no
|
|
|
|
|
|
# list of sources
|
|
|
-Source0: ftp://ftp.postgresql.org/pub/source/v%{V_postgresql}/postgresql-%{V_postgresql}.tar.bz2
|
|
|
+Source0: ftp://ftp.postgresql.org/pub/source/v%{V_postgresql_dir}/postgresql-%{V_postgresql_dist}.tar.bz2
|
|
|
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
|
|
|
@@ -103,8 +106,14 @@ PreReq: tcl, tcl::with_x11 = yes, X11
|
|
|
BuildPreReq: KERBEROS
|
|
|
PreReq: KERBEROS
|
|
|
%endif
|
|
|
+%if "%{with_xml}" == "yes"
|
|
|
+BuildPreReq: libxml, libxslt, zlib
|
|
|
+PreReq: libxml, libxslt, zlib
|
|
|
+%endif
|
|
|
AutoReq: no
|
|
|
AutoReqProv: no
|
|
|
+Provides: postgresql = %{version}-%{release}
|
|
|
+Conflicts: postgresql
|
|
|
|
|
|
%description
|
|
|
PostgreSQL is a sophisticated Object-Relational Database Management
|
|
|
@@ -127,9 +136,9 @@ AutoReqProv: no
|
|
|
|
|
|
%track
|
|
|
prog postgresql = {
|
|
|
- version = %{V_postgresql}
|
|
|
+ version = %{V_postgresql_dist}
|
|
|
url = ftp://ftp.postgresql.org/pub/source/
|
|
|
- regex = v(8\.2(\.\d+)*)
|
|
|
+ regex = v(\d+\.\d+(\.\d+)*(?:beta\d*)?)
|
|
|
url = ftp://ftp.postgresql.org/pub/source/v__NEWVER__/
|
|
|
regex = postgresql-(\d+(\.\d+)+)\.tar\.(bz2|gz)
|
|
|
}
|
|
|
@@ -255,6 +264,9 @@ AutoReqProv: no
|
|
|
case "%{l_platform -t}" in
|
|
|
*-freebsd* ) LIBS="$LIBS -lcompat" ;;
|
|
|
esac
|
|
|
+%endif
|
|
|
+%if "%{with_xml}" == "yes"
|
|
|
+ LIBS="$LIBS -liconv"
|
|
|
%endif
|
|
|
export TAR="%{l_tar}"
|
|
|
export YACC="bison -y"
|
|
|
@@ -280,6 +292,10 @@ AutoReqProv: no
|
|
|
%endif
|
|
|
%if "%{with_int_datetime}" == "yes"
|
|
|
--enable-integer-datetimes \
|
|
|
+%endif
|
|
|
+%if "%{with_xml}" == "yes"
|
|
|
+ --with-libxml \
|
|
|
+ --with-libxslt \
|
|
|
%endif
|
|
|
--disable-syslog \
|
|
|
--disable-shared
|