diff options
author | jbj <devnull@localhost> | 2000-02-25 16:29:44 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2000-02-25 16:29:44 +0000 |
commit | 601d666d4825619b9ecd12b839efbe6b0ebe4516 (patch) | |
tree | 949fbafa403998c2bf5065a9081828dc8adaab4f | |
parent | 18edb9da1a3b658208492fb9934c1a82a639014b (diff) | |
download | librpm-tizen-601d666d4825619b9ecd12b839efbe6b0ebe4516.tar.gz librpm-tizen-601d666d4825619b9ecd12b839efbe6b0ebe4516.tar.bz2 librpm-tizen-601d666d4825619b9ecd12b839efbe6b0ebe4516.zip |
- fix: filter excluded paths before adding install prefixes (#8709).
- add i18n lookaside to PO catalogue(s) for i18n strings.
- try for /etc/rpm/macros.specspo so that specspo autoconfigures rpm.
- per-platform configuration factored into /usr/lib/rpm subdir.
CVS patchset: 3588
CVS date: 2000/02/25 16:29:44
-rw-r--r-- | .cvsignore | 1 | ||||
-rw-r--r-- | CHANGES | 2 | ||||
-rw-r--r-- | Makefile.am | 1 | ||||
-rwxr-xr-x | autogen.sh | 2 | ||||
-rw-r--r-- | configure.in | 2 | ||||
-rwxr-xr-x | installplatform | 33 | ||||
-rw-r--r-- | platform.in | 46 | ||||
-rw-r--r-- | rpm.spec | 8 | ||||
-rw-r--r-- | rpmrc.in | 9 | ||||
-rw-r--r-- | tools/.cvsignore | 3 |
10 files changed, 96 insertions, 11 deletions
diff --git a/.cvsignore b/.cvsignore index ce744d23a..11bcc8b38 100644 --- a/.cvsignore +++ b/.cvsignore @@ -21,6 +21,7 @@ libtool ltconfig ltmain.sh macros +platform rpm rpm2cpio rpmconvert @@ -59,6 +59,8 @@ - permit cli setting of build root policies. - fix: filter excluded paths before adding install prefixes (#8709). - add i18n lookaside to PO catalogue(s) for i18n strings. + - try for /etc/rpm/macros.specspo so that specspo autoconfigures rpm. + - per-platform configuration factored into /usr/lib/rpm subdir. 3.0.2 -> 3.0.3 - add --eval to find result of macro expansion. diff --git a/Makefile.am b/Makefile.am index fd117fa15..87e367317 100644 --- a/Makefile.am +++ b/Makefile.am @@ -80,6 +80,7 @@ install-data-local: @$(mkinstalldirs) $(DESTDIR)/$(prefix)/src/redhat/SPECS @$(mkinstalldirs) $(DESTDIR)/$(prefix)/src/redhat/SRPMS @$(mkinstalldirs) $(DESTDIR)/var/tmp + ./installplatform ./rpmrc ./macros ./platform .PHONY: tar tar: diff --git a/autogen.sh b/autogen.sh index e94c2f843..d998e60e4 100755 --- a/autogen.sh +++ b/autogen.sh @@ -29,7 +29,7 @@ if [ "$1" = "--noconfigure" ]; then fi if [ X"$@" = X -a "X`uname -s`" = "XLinux" ]; then - ./configure --prefix=/usr --enable-shared "$@" + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var "$@" else ./configure "$@" fi diff --git a/configure.in b/configure.in index 07e8b9d29..4828a2459 100644 --- a/configure.in +++ b/configure.in @@ -903,7 +903,7 @@ dnl # XXX Propagate -lucb to popt ... dnl export LIBS INCPATH CONFIG_SITE AC_CONFIG_SUBDIRS(popt) -AC_OUTPUT([Doxyfile Makefile rpmrc macros rpmpopt scripts/brp-redhat +AC_OUTPUT([Doxyfile Makefile rpmrc macros platform rpmpopt scripts/brp-redhat lib/Makefile build/Makefile tools/Makefile scripts/Makefile tests/Makefile tests/rpmrc tests/macros tests/hello-test/Makefile misc/Makefile po/Makefile.in intl/Makefile diff --git a/installplatform b/installplatform new file mode 100755 index 000000000..6de6bc508 --- /dev/null +++ b/installplatform @@ -0,0 +1,33 @@ +#!/bin/sh + +DESTDIR="${DESTDIR:-/}" +pkglibdir="${pkglibdir:-/usr/lib/rpm}" + +RPMRC="${1:-rpmrc}" +MACROS="${2:-macros}" +PLATFORM="${3:-platform}" + +TEMPRC="/tmp/rpmrc.$$" +cat << E_O_F > $TEMPRC +include: $RPMRC +macrofiles: $MACROS +E_O_F + +RPM="rpm --rcfile $TEMPRC" + +ARCH="$($RPM --eval '%{_arch}')" +VENDOR="$($RPM --eval '%{_vendor}')" +OS="$($RPM --eval '%{_os}')" + +PPD="${DESTDIR}/${pkglibdir}/${ARCH}-${VENDOR}-${OS}" + +[ -d $PPD ] || mkdir $PPD + +RPMRC_OPTFLAGS="$($RPM --eval '%{optflags}')" +RPMRC_OPTFLAGS="$(echo $RPMRC_OPTFLAGS | sed -e 's, ,\ ,g')" + +cat $PLATFORM | + sed -e s,\\\$\{,\%\{_, \ + -e "s,@RPMRC_OPTFLAGS@,$RPMRC_OPTFLAGS," > ${PPD}/macros + +rm $TEMPRC diff --git a/platform.in b/platform.in new file mode 100644 index 000000000..37fbe5ee0 --- /dev/null +++ b/platform.in @@ -0,0 +1,46 @@ +# Per-platform rpm configuration file. + +#============================================================================== +# ---- per-platform macros. +# +%_arch @RPMCANONARCH@ +%_vendor @RPMCANONVENDOR@ +%_os @RPMCANONOS@ +%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} +%optflags @RPMRC_OPTFLAGS@ + +#============================================================================== +# ---- configure macros. +# +%_prefix @prefix@ +%_exec_prefix @exec_prefix@ +%_bindir @bindir@ +%_sbindir @sbindir@ +%_libexecdir @libexecdir@ +%_datadir @datadir@ +%_sysconfdir @sysconfdir@ +%_sharedstatedir @sharedstatedir@ +%_localstatedir @localstatedir@ +%_libdir @libdir@ +%_includedir @includedir@ +%_oldincludedir @oldincludedir@ +%_infodir @infodir@ +%_mandir @mandir@ + +#============================================================================== +# ---- Build policy macros. +# +#------------------------------------------------------------------------ +# Expanded at end of %install (Red Hat uses these for 6.2) +# +#%__spec_install_post \ +# /usr/lib/rpm/brp-compress \ +# /usr/lib/rpm/brp-strip \ +# /usr/lib/rpm/brp-strip-comment-note \ +#%{nil} +#------------------------------------------------------------------------ +# Expanded at end of %prep (Red Hat uses these for 6.2) +# +%_fixowner [ `%{__id} -u` = '0' ] && %{__chown} -Rhf root +%_fixgroup [ `%{__id} -u` = '0' ] && %{__chgrp} -Rhf root +%_fixperms %{__chmod} -Rf a+rX,g-w,o-w @@ -2,7 +2,7 @@ Summary: The Red Hat package management system. Name: rpm %define version 3.0.4 Version: %{version} -Release: 0.44 +Release: 0.45 Group: System Environment/Base Source: ftp://ftp.rpm.org/pub/rpm/dist/rpm-3.0.x/rpm-%{version}.tar.gz Copyright: GPL @@ -217,6 +217,12 @@ fi /usr/include/popt.h %changelog +* Fri Feb 25 2000 Jeff Johnson <jbj@redhat.com> +- fix: filter excluded paths before adding install prefixes (#8709). +- add i18n lookaside to PO catalogue(s) for i18n strings. +- try for /etc/rpm/macros.specspo so that specspo autoconfigures rpm. +- per-platform configuration factored into /usr/lib/rpm subdir. + * Tue Feb 15 2000 Jeff Johnson <jbj@redhat.com> - new rpm-build package to isolate rpm dependencies on perl/bash2. - always remove duplicate identical package entries on --rebuilddb. @@ -1,4 +1,4 @@ -# $Id: rpmrc.in,v 2.16 1999/09/29 23:29:57 jbj Exp $ +# $Id: rpmrc.in,v 2.17 2000/02/25 16:29:44 jbj Exp $ ############################################################# @@ -255,10 +255,5 @@ buildarch_compat: atariclone: m68kmint noarch buildarch_compat: milan: m68kmint noarch buildarch_compat: hades: m68kmint noarch -############################################################# -#macrofiles: @RPMCONFIGDIR@/macros:@SYSCONFIGDIR@/macros:~/.rpmmacros - -macrofiles: @RPMCONFIGDIR@/macros:@RPMCONFIGDIR@/%{_target}/macros:@SYSCONFIGDIR@/macros:@SYSCONFIGDIR@/%{_target}/macros:~/.rpmmacros - -#include: @RPMCONFIGDIR@/%{_target}/rpmrc +macrofiles: @RPMCONFIGDIR@/macros:@RPMCONFIGDIR@/%{_target}/macros:@SYSCONFIGDIR@/macros.specspo:@SYSCONFIGDIR@/macros:@SYSCONFIGDIR@/%{_target}/macros:~/.rpmmacros diff --git a/tools/.cvsignore b/tools/.cvsignore index 8167dd6c8..db9467596 100644 --- a/tools/.cvsignore +++ b/tools/.cvsignore @@ -1,5 +1,6 @@ .deps .depend +.libs Makefile Makefile.in dump @@ -8,7 +9,7 @@ javadeps rpmarchive rpmgettext rpmheader +rpminject rpmlead rpmputtext rpmsignature -.libs |