|
|
@@ -23,6 +23,11 @@
|
|
|
## SUCH DAMAGE.
|
|
|
##
|
|
|
|
|
|
+# package options
|
|
|
+%ifndef with_perl
|
|
|
+%define with_perl yes
|
|
|
+%endif
|
|
|
+
|
|
|
# package information
|
|
|
Name: postgresql
|
|
|
Summary: PostgreSQL Database
|
|
|
@@ -44,6 +49,10 @@ Prefix: %{l_prefix}
|
|
|
BuildRoot: %{l_buildroot}
|
|
|
BuildPreReq: OpenPKG, openpkg >= 20020416, make, gcc, readline, openssl, flex, bison
|
|
|
PreReq: OpenPKG, openpkg >= 20020416
|
|
|
+%if "%{with_perl}" == "yes"
|
|
|
+BuildPreReq: perl
|
|
|
+PreReq: perl
|
|
|
+%endif
|
|
|
AutoReq: no
|
|
|
AutoReqProv: no
|
|
|
|
|
|
@@ -53,6 +62,9 @@ AutoReqProv: no
|
|
|
and user-defined types and functions. It is the most advanced
|
|
|
open-source database available anywhere.
|
|
|
|
|
|
+ Options:
|
|
|
+ --define 'with_perl %{with_perl}'
|
|
|
+
|
|
|
%prep
|
|
|
%setup -q
|
|
|
%{l_shtool} subst \
|
|
|
@@ -61,13 +73,14 @@ AutoReqProv: no
|
|
|
|
|
|
%build
|
|
|
# configure package
|
|
|
- PATH="%{l_prefix}/bin:$PATH"; export PATH
|
|
|
CC="%{l_cc}" \
|
|
|
CFLAGS="%{l_cflags -O}" \
|
|
|
./configure \
|
|
|
--prefix=%{l_prefix} \
|
|
|
--with-openssl=%{l_prefix} \
|
|
|
+%if "%{with_perl}" == "yes"
|
|
|
--with-perl \
|
|
|
+%endif
|
|
|
--without-CXX \
|
|
|
--disable-syslog
|
|
|
|
|
|
@@ -78,7 +91,6 @@ AutoReqProv: no
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
# perform standard installation procedure
|
|
|
- PATH="%{l_prefix}/bin:$PATH"; export PATH
|
|
|
%{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
|
# strip down installation
|