diff options
-rw-r--r-- | Makefile.am | 6 | ||||
-rw-r--r-- | configure.ac | 5 | ||||
-rw-r--r-- | macros-perarch.in | 3 | ||||
-rw-r--r-- | macros.in | 4 | ||||
-rw-r--r-- | make_macrosfiles.sh.in | 6 | ||||
-rw-r--r-- | rpmrc.in | 2 |
6 files changed, 16 insertions, 10 deletions
diff --git a/Makefile.am b/Makefile.am index 0e82414..554cd02 100644 --- a/Makefile.am +++ b/Makefile.am @@ -2,10 +2,13 @@ macrosfiles = $(RPMALLARCH:=.macros) -pkg_data = +pkg_data = \ + rpmpopt + pkg_gdata = \ rpmrc \ macros + pkg_data_in = $(pkg_gdata:=.in) pkg_scripts = \ @@ -50,6 +53,7 @@ EXTRA_DIST = \ edit = sed \ -e 's,@RPMVENDOR\@,$(RPMVENDOR),g' \ -e 's,@RPMVENDORDIR\@,$(RPMVENDORDIR),g' \ + -e 's,@RPMCANONVENDOR\@,$(RPMCANONVENDOR),g' \ -e 's,@RPMLIBDIR\@,$(RPMLIBDIR),g' \ -e 's,@RPMSYSCONFDIR\@,$(RPMSYSCONFDIR),g'\ -e 's,@RPMOS\@,$(RPMOS),g' diff --git a/configure.ac b/configure.ac index a79e08b..ef82013 100644 --- a/configure.ac +++ b/configure.ac @@ -66,6 +66,9 @@ if test $with_vendor; then fi AC_SUBST(RPMVENDOR) +RPMCANONVENDOR=`echo "${RPMVENDOR}" | tr [A-Z] [a-z]` +AC_SUBST(RPMCANONVENDOR) + if test X"$prefix" = XNONE ; then usrprefix="$ac_default_prefix" else @@ -86,7 +89,7 @@ if test $with_rpmconfdir; then fi AC_SUBST(RPMCONFDIR) -RPMVENDORDIR=`echo "${RPMCONFDIR}/${RPMVENDOR}" | tr [A-Z] [a-z]` +RPMVENDORDIR="${RPMCONFDIR}/${RPMCANONVENDOR}" AC_SUBST(RPMVENDORDIR) RPMSYSCONFDIR="/etc/rpm" diff --git a/macros-perarch.in b/macros-perarch.in index ccde046..371a55d 100644 --- a/macros-perarch.in +++ b/macros-perarch.in @@ -5,10 +5,9 @@ # ---- per-platform macros. # %_arch @RPMARCH@ -%_vendor @RPMVENDOR@ %_os @RPMOS@ %_gnu -gnu -%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} +%_target_platform %{_target_cpu}-%{_real_vendor}-%{_target_os}%{?_gnu} %optflags @RPMOPTFLAGS@ #============================================================================== @@ -9,8 +9,8 @@ # should be added to /etc/rpm/macros, while per-user configuration should # be added to ~/.rpmmacros. -%_host_vendor @RPMVENDOR@ -%_real_vendor @RPMVENDOR@ +%_host_vendor @RPMCANONVENDOR@ +%_real_vendor @RPMCANONVENDOR@ %_vendor @RPMVENDOR@ diff --git a/make_macrosfiles.sh.in b/make_macrosfiles.sh.in index cb8978e..12bf942 100644 --- a/make_macrosfiles.sh.in +++ b/make_macrosfiles.sh.in @@ -54,11 +54,11 @@ esac if [ -n "$MULTILIBNO" ]; then MULTILIBSED='-e /^@MULTILIB/d -e s,@MULTILIBNO@,'$MULTILIBNO, else - MULTILIBSED='-e /^@MULTILIBSTART@/,/^@MULTILIBEND@/d' + MULTILIBSED='/^@MULTILIBSTART@/,/^@MULTILIBEND@/d' fi if [ -n "$OPTFLAGS" ]; then - OPTFLAGSSED='-e s,@RPMOPTFLAGS@,$OPTFLAGS,g' + OPTFLAGSSED="s/@RPMOPTFLAGS@/${OPTFLAGS}/g" else OPTFLAGSSED='-e s,^%optflags.*,,' fi @@ -66,5 +66,5 @@ fi cat "$MINPUT" | sed \ -e "s,@RPMARCH@,$CANONARCH,g" \ -e "s,@LIB@,$LIB,g" \ - $OPTFLAGSSED \ + -e "$OPTFLAGSSED" \ $MULTILIBSED @@ -94,4 +94,4 @@ arch_compat: osfmach3_i386: i486 buildarch_compat: k6: i486 -macrofiles: @RPMLIBDIR@/macros:@RPMLIBDIR@/%{_target}/macros:@RPMVENDORDIR@/macros:@RPMVENDORDIR@/%{_target}/macros:@RPMSYSCONFDIR@/macros:@RPMSYSCONFDIR@/%{_target}/macros:@RPMSYSCONFDIR@/macros.d/*.macros:~/.rpmmacros +macrofiles: @RPMLIBDIR@/macros:@RPMLIBDIR@/%{_target}/macros:@RPMVENDORDIR@/macros:@RPMVENDORDIR@/%{_target}/macros:@RPMSYSCONFDIR@/macros:@RPMSYSCONFDIR@/%{_target}/macros:@RPMSYSCONFDIR@/macros.cdb:@RPMSYSCONFDIR@/macros.d/*.macros:~/.rpmmacros |