OpenPKG CVS Repository
http://www.openpkg.org/cvsweb/cvsweb.cgi
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /e/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 21-Aug-2002 14:07:51
Branch: HEAD Handle: 2002082113075100
Modified files:
openpkg-src/postgresql postgresql.spec
Log:
make Perl optional (but enabled by default) and fix Perl dependency
Summary:
Revision Changes Path
1.13 +14 -2 openpkg-src/postgresql/postgresql.spec
____________________________________________________________________________
Index: openpkg-src/postgresql/postgresql.spec
============================================================
$ cvs diff -u -r1.12 -r1.13 postgresql.spec
--- openpkg-src/postgresql/postgresql.spec 21 Aug 2002 09:13:17 -0000 1.12
+++ openpkg-src/postgresql/postgresql.spec 21 Aug 2002 12:07:51 -0000 1.13
@@ -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 @@
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 @@
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 @@
%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 @@
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
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]