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: 02-Oct-2002 12:16:12
Branch: HEAD Handle: 2002100211161200
Modified files:
openpkg-src/openpkg rpmmacros
Log:
add a useful l_test macro for dynamic dependencies (example follow in other commit
for perl-net and curl)
Summary:
Revision Changes Path
1.20 +3 -0 openpkg-src/openpkg/rpmmacros
____________________________________________________________________________
Index: openpkg-src/openpkg/rpmmacros
============================================================
$ cvs diff -u -r1.19 -r1.20 rpmmacros
--- openpkg-src/openpkg/rpmmacros 26 Aug 2002 09:20:36 -0000 1.19
+++ openpkg-src/openpkg/rpmmacros 2 Oct 2002 10:16:12 -0000 1.20
@@ -194,6 +194,9 @@
%ifdef() %if %{expand:%%{?%{1}:1}%%{!?%{1}:0}}
%ifndef() %if %{expand:%%{?%{1}:0}%%{!?%{1}:1}}
+# macro-processor add-on for testing external conditions
+%l_test(pfd) %(if [ ".%{?-p:yes}" = .yes ]; then %{l_prefix}/bin/rpm -q
%1 >/dev/null 2>&1; rc=$?; elif [ ".%{?-f:yes}" = .yes ]; then test -f %1; rc=$?; elif
[ ".%{?-d:yes}" = .yes ]; then test -d %1; rc=$?; fi; if [ ".$rc" = .0 ]; then echo
"yes"; else echo "no"; fi)
+
# helper macros for creating local copies of GNU config scripts
%update_config_scripts chmod u+w config.guess config.sub; cp
%{l_prefix}/lib/openpkg/config.guess .; cp %{l_prefix}/lib/openpkg/config.sub .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]