Fix build for SLES9 in OBS
OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=28
This commit is contained in:
parent
dbca4fa8fc
commit
9edad88af5
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 11 18:24:28 CET 2010 - max@suse.de
|
||||
|
||||
- Disable GSSAPI, XML, kerberos and make check in OBS for SLES9.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 9 14:11:37 CET 2010 - max@suse.de
|
||||
|
||||
|
@ -15,12 +15,13 @@
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
|
||||
Name: postgresql-pl
|
||||
BuildRequires: bison flex gettext-devel krb5-devel libxml2-devel libxslt-devel
|
||||
BuildRequires: openldap2-devel openssl-devel pam-devel readline-devel
|
||||
BuildRequires: bison flex gettext-devel
|
||||
BuildRequires: openldap2-devel openssl-devel pam-devel readline-devel zlib-devel
|
||||
BuildRequires: ncurses-devel
|
||||
%if 0%{?suse_version} > 910
|
||||
BuildRequires: krb5-devel libxslt-devel
|
||||
%endif
|
||||
BuildRequires: python-devel tcl-devel
|
||||
Summary: The PL/Tcl, PL/Perl, and PL/Python Procedural Languages for PostgreSQL
|
||||
Version: 8.4.2
|
||||
@ -133,11 +134,13 @@ export CFLAGS="%optflags $SP"
|
||||
--with-tclconfig=%_libdir \
|
||||
--with-openssl \
|
||||
--with-pam \
|
||||
--with-ldap \
|
||||
%if 0%{?suse_version} > 910
|
||||
--with-krb5 \
|
||||
--with-gssapi \
|
||||
--with-ldap \
|
||||
--with-libxml \
|
||||
--with-libxslt \
|
||||
%endif
|
||||
--with-system-tzdata=/usr/share/zoneinfo
|
||||
# fmgroids.h is needed for plperl
|
||||
make -C src/backend ../../src/include/utils/fmgroids.h
|
||||
|
@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 11 18:23:38 CET 2010 - max@suse.de
|
||||
|
||||
- Disable GSSAPI, XML, kerberos and make check in OBS for SLES9.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 11 17:57:38 CET 2010 - max@suse.de
|
||||
|
||||
- Fix build for SLES9
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 9 14:42:29 CET 2010 - max@suse.de
|
||||
|
||||
|
@ -15,13 +15,13 @@
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
# norootforbuild
|
||||
|
||||
|
||||
Name: postgresql
|
||||
BuildRequires: bison flex gettext-devel krb5-devel libxslt-devel
|
||||
BuildRequires: bison flex gettext-devel
|
||||
BuildRequires: openldap2-devel openssl-devel pam-devel readline-devel zlib-devel
|
||||
BuildRequires: ncurses-devel
|
||||
%if 0%{?suse_version} > 910
|
||||
BuildRequires: krb5-devel libxslt-devel
|
||||
%endif
|
||||
Summary: Basic Clients and Utilities for PostgreSQL
|
||||
Version: 8.4.2
|
||||
Release: 3
|
||||
@ -164,7 +164,7 @@ which will interact with a PostgreSQL server.
|
||||
%patch1
|
||||
%patch2
|
||||
# apply the following patch only on SLE10
|
||||
%if %suse_version == 1010
|
||||
%if 0%{?suse_version} == 1010
|
||||
%patch3 -p1
|
||||
%endif
|
||||
|
||||
@ -189,17 +189,19 @@ export CFLAGS="%optflags $SP"
|
||||
--without-tcl \
|
||||
--with-openssl \
|
||||
--with-pam \
|
||||
--with-krb5 \
|
||||
--with-gssapi \
|
||||
--with-ldap \
|
||||
%if 0%{?suse_version} > 910
|
||||
--with-gssapi \
|
||||
--with-libxml \
|
||||
--with-libxslt \
|
||||
--with-krb5 \
|
||||
%endif
|
||||
--with-system-tzdata=/usr/share/zoneinfo
|
||||
make %{?jobs:-j%jobs} all
|
||||
make %{?jobs:-j%jobs} -C contrib all
|
||||
#
|
||||
%ifnarch %arm
|
||||
|
||||
%if 0%{?suse_version} > 910
|
||||
%check
|
||||
#
|
||||
# Run the regression tests.
|
||||
@ -213,6 +215,7 @@ make check || {
|
||||
exit 1
|
||||
}
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%install
|
||||
make DESTDIR=%buildroot install
|
||||
@ -233,7 +236,7 @@ do
|
||||
done
|
||||
install -m 755 %{SOURCE9} %buildroot/etc/init.d/postgresql
|
||||
install -m 644 %{SOURCE8} %buildroot/var/adm/fillup-templates/sysconfig.postgresql
|
||||
%if 0%suse_version > 1020
|
||||
%if 0%{?suse_version} > 1020
|
||||
install -m 644 %SOURCE16 %buildroot/etc/sysconfig/SuSEfirewall2.d/services/postgresql
|
||||
%endif
|
||||
ln -s ../../etc/init.d/postgresql %buildroot/usr/sbin/rcpostgresql
|
||||
@ -367,7 +370,7 @@ rm -f %my_provides
|
||||
%defattr(-,root,root)
|
||||
%config /etc/init.d/postgresql
|
||||
%config /var/adm/fillup-templates/sysconfig.postgresql
|
||||
%if 0%suse_version > 1020
|
||||
%if 0%{?suse_version} > 1020
|
||||
%config /etc/sysconfig/SuSEfirewall2.d/services/postgresql
|
||||
%endif
|
||||
%_sbindir/rcpostgresql
|
||||
|
Loading…
Reference in New Issue
Block a user