|
|
@@ -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 .
|
|
|
|