summaryrefslogtreecommitdiff
path: root/tests/macros.in
diff options
context:
space:
mode:
authorjbj <devnull@localhost>1999-01-19 17:23:32 +0000
committerjbj <devnull@localhost>1999-01-19 17:23:32 +0000
commitefd78aab74e2ef3a101bbfc4c2c6082418d15468 (patch)
treea527d199e3ac16ab3a0745af9f0b45b1340a6967 /tests/macros.in
parent02f03358f6dbc347a18a8afdd1c33ae3841c9cf6 (diff)
downloadlibrpm-tizen-efd78aab74e2ef3a101bbfc4c2c6082418d15468.tar.gz
librpm-tizen-efd78aab74e2ef3a101bbfc4c2c6082418d15468.tar.bz2
librpm-tizen-efd78aab74e2ef3a101bbfc4c2c6082418d15468.zip
Create %configure macro.
CVS patchset: 2722 CVS date: 1999/01/19 17:23:32
Diffstat (limited to 'tests/macros.in')
-rw-r--r--tests/macros.in20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/macros.in b/tests/macros.in
index d294a8b20..3fd8e21ce 100644
--- a/tests/macros.in
+++ b/tests/macros.in
@@ -22,6 +22,7 @@
%__chown %(which chown)
%__gzip %(which gzip)
%__install %(which install)
+%__libtoolize %(which libtoolize)
%__make %(which make)
%__mkdir %(which mkdir)
%__patch %(which patch)
@@ -96,3 +97,22 @@
%_target_cpu %{_host_cpu)
%_target_vendor %{_host_vendor)
%_target_os %{_host_os)
+
+#==============================================================================
+# ---- specfile macros.
+# Macro(s) here can be used reliably for reproducible builds.
+# (Note: Above is the goal, below are the macros under development)
+#
+# The configure macro does the following:
+#
+# optionally change to a subdirectory.
+# attempt to update onfig.guess and config.sub.
+# run configure with correct prefix, platform, and CFLAGS.
+# optionally restore current directory.
+#
+%configure(C:) \
+ %{C:%{-C:pushd %{-C*}}} \
+ %{?__libtoolize:[ -f configure.in ] && %{__libtoolize} --copy --force} \
+ CFLAGS="%{optflags}" ./configure %{_build} --prefix=%{_prefix} \
+ %{C:%{-C:popd }}
+