OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /e/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 27-Nov-2004 21:01:49
Branch: HEAD Handle: 2004112720014900
Modified files:
openpkg-src/cfg cfg.spec
Log:
upgrading package: cfg 0.9.4 -> 0.9.5
Summary:
Revision Changes Path
1.16 +21 -3 openpkg-src/cfg/cfg.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/cfg/cfg.spec
============================================================================
$ cvs diff -u -r1.15 -r1.16 cfg.spec
--- openpkg-src/cfg/cfg.spec 31 Oct 2004 19:39:28 -0000 1.15
+++ openpkg-src/cfg/cfg.spec 27 Nov 2004 20:01:49 -0000 1.16
@@ -33,8 +33,11 @@
Class: EVAL
Group: System
License: MIT-style
-Version: 0.9.4
-Release: 20041031
+Version: 0.9.5
+Release: 20041127
+
+# package options
+%option with_perl no
# list of sources
Source0: ftp://ftp.ossp.org/pkg/lib/cfg/cfg-%{version}.tar.gz
@@ -44,6 +47,10 @@
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 20040130, gcc
PreReq: OpenPKG, openpkg >= 20040130
+%if "%{with_perl}" == "yes"
+BuildPreReq: perl
+PreReq: perl
+%endif
AutoReq: no
AutoReqProv: no
@@ -79,11 +86,22 @@
--prefix=%{l_prefix} \
--disable-shared
%{l_make} %{l_mflags}
+%if "%{with_perl}" == "yes"
+ %{l_prefix}/bin/perl-openpkg prepare
+ %{l_prefix}/bin/perl-openpkg -d perl configure build
+%endif
%install
rm -rf $RPM_BUILD_ROOT
%{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
- %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
+%if "%{with_perl}" == "yes"
+ %{l_prefix}/bin/perl-openpkg -d perl install
+ %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
+%else
+ >perl-openpkg-files
+%endif
+ %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
+ %{l_files_std} `cat perl-openpkg-files`
%files -f files
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]