diff options
author | jbj <devnull@localhost> | 2000-05-30 16:52:31 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2000-05-30 16:52:31 +0000 |
commit | f5faf376691c17a964c8c7e7decf4ea3ad265f1a (patch) | |
tree | c3726add91479434e6775cfc3ddcc95605fd52b4 | |
parent | 81c22296d07b22db81bba9af308f3b04b409aa89 (diff) | |
download | rpm-f5faf376691c17a964c8c7e7decf4ea3ad265f1a.tar.gz rpm-f5faf376691c17a964c8c7e7decf4ea3ad265f1a.tar.bz2 rpm-f5faf376691c17a964c8c7e7decf4ea3ad265f1a.zip |
- turn on new, more complete version of %%configure.
- add %%makeinstall analogue of new %%configure for autoconf packages.
CVS patchset: 3765
CVS date: 2000/05/30 16:52:31
-rw-r--r-- | CHANGES | 2 | ||||
-rw-r--r-- | macros.in | 70 |
2 files changed, 46 insertions, 26 deletions
@@ -46,6 +46,8 @@ glibc 2.2 - change popt exec alias in oreder to exec rpm children. - split rpm into 5 pieces along major mode fault lines with popt glue. + - turn on new, more complete version of %%configure. + - add %%makeinstall analogue of new %%configure for autoconf packages. 3.0.3 -> 3.0.4 - use compressed filenames on install side. @@ -1,4 +1,4 @@ -# $Id: macros.in,v 1.57 2000/05/02 08:30:31 jbj Exp $ +# $Id: macros.in,v 1.58 2000/05/30 16:52:31 jbj Exp $ #============================================================================== # Macro naming conventions (preliminary): # @@ -483,31 +483,50 @@ cd %{u2p:%{_builddir}}\ # gotcha is that arguments, if present, should be on the same line as the # %configure. # -%configure \ - %{?__libtoolize:[ -f configure.in ] && %{__libtoolize} --copy --force} \ - CFLAGS="%{optflags}" ./configure %{_target_platform} --prefix=%{_prefix} - +# This is the version of %configure used throuugh rpm-3.0.4. +#%configure \ +# %{?__libtoolize:[ -f configure.in ] && %{__libtoolize} --copy --force} \ +# CFLAGS="%{optflags}" ./configure %{_target_platform} --prefix=%{_prefix} +# #------------------------------------------------------------------------------ -# This is an improved version of %configure that may replace the above -# macro at some point (from PLD team). -# -#%configure { CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \ -# CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \ -# FFLAGS="${FFLAGS:-%optflags}" ; export FFLAGS ; \ -# ./configure %{_target_platform} \ -# --prefix=%{_prefix} \ -# --exec-prefix=%{_exec_prefix} \ -# --bindir=%{_bindir} \ -# --sbindir=%{_sbindir} \ -# --sysconfdir=%{_sysconfdir} \ -# --datadir=%{_datadir} \ -# --includedir=%{_includedir} \ -# --libdir=%{_libdir} \ -# --libexecdir=%{_libexecdir} \ -# --localstatedir=%{_localstatedir} \ -# --sharedstatedir=%{_sharedstatedir} \ -# --mandir=%{_mandir} \ -# --infodir=%{_infodir} } +# This is an improved version of %configure (from PLD team). +%configure \ +CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \ +CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \ +FFLAGS="${FFLAGS:-%optflags}" ; export FFLAGS ; \ +%{?__libtoolize:[ -f configure.in ] && %{__libtoolize} --copy --force} ; \ +./configure %{_target_platform} \ + --prefix=%{_prefix} \ + --exec-prefix=%{_exec_prefix} \ + --bindir=%{_bindir} \ + --sbindir=%{_sbindir} \ + --sysconfdir=%{_sysconfdir} \ + --datadir=%{_datadir} \ + --includedir=%{_includedir} \ + --libdir=%{_libdir} \ + --libexecdir=%{_libexecdir} \ + --localstatedir=%{_localstatedir} \ + --sharedstatedir=%{_sharedstatedir} \ + --mandir=%{_mandir} \ + --infodir=%{_infodir} +#------------------------------------------------------------------------------ +# The make install analogue of %configure: +%makeinstall { \ + make install \ + prefix=%{?buildroot:%{buildroot}}%{_prefix} \ + exec_prefix=%{?buildroot:%{buildroot}}%{_exec_prefix} \ + bindir=%{?buildroot:%{buildroot}}%{_bindir} \ + sbindir=%{?buildroot:%{buildroot}}%{_sbindir} \ + sysconfdir=%{?buildroot:%{buildroot}}%{_sysconfdir} \ + datadir=%{?buildroot:%{buildroot}}%{_datadir} \ + includedir=%{?buildroot:%{buildroot}}%{_includedir} \ + libdir=%{?buildroot:%{buildroot}}%{_libdir} \ + libexecdir=%{?buildroot:%{buildroot}}%{_libexecdir} \ + localstatedir=%{?buildroot:%{buildroot}}%{_localstatedir} \ + sharedstatedir=%{?buildroot:%{buildroot}}%{_sharedstatedir} \ + mandir=%{?buildroot:%{buildroot}}%{_mandir} \ + infodir=%{?buildroot:%{buildroot}}%{_infodir} \ + } #------------------------------------------------------------------------------ # The GNUconfigure macro does the following: @@ -609,4 +628,3 @@ done \ # %files -f %{name}.lang # %find_lang @RPMCONFIGDIR@/find-lang.sh %{buildroot} - |