From 81de17180f1b870e2bc4ade50814f46ae9d6bf9d Mon Sep 17 00:00:00 2001 From: jbj Date: Wed, 11 Jul 2001 14:23:01 +0000 Subject: - fix: adjust arg count for --POPTdesc/--POPTargs deletion. - add linux per-platform macro %_smp_mflags . - document more popt aliases for --help usage. - remove --tarbuild from man page(s), use -t[abpcils] instead (#48666). CVS patchset: 4936 CVS date: 2001/07/11 14:23:01 --- rpmpopt.in | 69 ++++++++++++++++++++++++++++++++++++++------------------------ 1 file changed, 42 insertions(+), 27 deletions(-) (limited to 'rpmpopt.in') diff --git a/rpmpopt.in b/rpmpopt.in index 168d367c7..b02f09cb7 100644 --- a/rpmpopt.in +++ b/rpmpopt.in @@ -4,6 +4,13 @@ # This file *should not be modified*. Local customizations # belong in /etc/popt, not here. This file will be replaced # whenever a new version of RPM is installed. +# +# Note: Not all popt aliases are documented. This is a decision on my +# part as to which are the more important aliases. Feel free to clip +# a copy of the alias/exec here and place in /etc/popt or ~/.popt with +# your own words added. It's easier than arguing about how many options +# fit on the head of an executable :-) +# rpm alias --scripts --qf '\ %|PREIN?{preinstall scriptlet\ @@ -27,12 +34,13 @@ rpm alias --scripts --qf '\ --POPTdesc=$"list install/erase scriptlets from package(s)" rpm alias --setperms -q --qf '[\[ -L %{FILENAMES:shescape} \] || chmod %7.7{FILEMODES:octal} %{FILENAMES:shescape}\n]' \ - --pipe "grep -v \(none\) | sed 's/chmod .../chmod /' | sh" + --pipe "grep -v \(none\) | sed 's/chmod .../chmod /' | sh" \ + --POPTdesc=$"set permissions of files in a package" rpm alias --setugids -q --qf \ '[ch %{FILEUSERNAME:shescape} %{FILEGROUPNAME:shescape} %{FILENAMES:shescape}\n]' \ - --pipe "(echo 'ch() { chown -- \"$1\" \"$3\";chgrp -- \"$2\" \"$3\"; }';grep -v \(none\))|sh" - + --pipe "(echo 'ch() { chown -- \"$1\" \"$3\";chgrp -- \"$2\" \"$3\"; }';grep -v \(none\))|sh" \ + --POPTdesc=$"set user/group ownership of files in a package" rpm alias --conflicts --qf \ "[%{CONFLICTNAME} %{CONFLICTFLAGS:depflags} %{CONFLICTVERSION}\n]" \ @@ -77,8 +85,11 @@ rpm alias --last --qf '%|INSTALLTIME?{%{INSTALLTIME}}:{000000000}| %{NAME}-%{VER rpm alias --filesbypkg --qf '[%-25{=NAME} %{FILENAMES}\n]' \ --POPTdesc=$"list all files from each package" -rpm alias --redhatprovides -q --define '_dbpath /usr/lib/rpmdb/%{_arch}-%{_vendor}-%{_os}/redhat' --whatprovides -rpm alias --redhatrequires -q --define '_dbpath /usr/lib/rpmdb/%{_arch}-%{_vendor}-%{_os}/redhat' --whatrequires +rpm alias --redhatprovides -q --define '_dbpath /usr/lib/rpmdb/%{_arch}-%{_vendor}-%{_os}/redhat' --whatprovides \ + --POPTdesc=$"find package name that contains a provided capability (needs rpmdb-redhat package installed)" + +rpm alias --redhatrequires -q --define '_dbpath /usr/lib/rpmdb/%{_arch}-%{_vendor}-%{_os}/redhat' --whatrequires \ + --POPTdesc=$"find package name that contains a required capability (needs rpmdb-redhat package installed)" # colon separated i18n domains to use as PO catalogue lookaside for * retrieving header group/description/summary. @@ -87,7 +98,9 @@ rpm alias --redhatrequires -q --define '_dbpath /usr/lib/rpmdb/%{_arch}-%{_vendo rpm alias --i18ndomains --define '_i18ndomains !#:+' # Build policies enabled from command line. Last policy applies. -rpm alias --buildpolicy --define '__os_install_post @RPMCONFIGDIR@/brp-!#:+' +rpm alias --buildpolicy --define '__os_install_post @RPMCONFIGDIR@/brp-!#:+' \ + --POPTdesc=$"set buildroot (e.g. compress man pages)" \ + --POPTargs=$"" # Choose db interface: # 0 same as 1 @@ -164,8 +177,12 @@ rpm exec -V rpmv -V rpm exec -y rpmv -y rpm exec --verify rpmv --verify -rpm alias --with --define "_with_!#:+ --with-!#:+" -rpm alias --without --define "_without_!#:+ --without-!#:+" +rpm alias --with --define "_with_!#:+ --with-!#:+" \ + --POPTdesc=$"enable configure