diff options
author | jbj <devnull@localhost> | 1999-01-19 17:23:32 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 1999-01-19 17:23:32 +0000 |
commit | efd78aab74e2ef3a101bbfc4c2c6082418d15468 (patch) | |
tree | a527d199e3ac16ab3a0745af9f0b45b1340a6967 /tests/macros.in | |
parent | 02f03358f6dbc347a18a8afdd1c33ae3841c9cf6 (diff) | |
download | librpm-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.in | 20 |
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 }} + |