1998-02-18 01:47:46 +08:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
1997-07-23 00:29:09 +08:00
|
|
|
rpm alias --scripts --qf '\
|
1997-07-08 06:22:44 +08:00
|
|
|
%|PREIN?{preinstall script\
|
|
|
|
%|PREINPROG?{ (through %{PREINPROG})}|:\n%{PREIN}\n}:\
|
|
|
|
{%|PREINPROG?{preinstall program: %{PREINPROG}\n}|}|\
|
|
|
|
\
|
|
|
|
%|POSTIN?{postinstall script\
|
|
|
|
%|POSTINPROG?{ (through %{POSTINPROG})}|:\n%{POSTIN}\n}:\
|
|
|
|
{%|POSTINPROG?{postinstall program: %{POSTINPROG}\n}|}|\
|
|
|
|
\
|
|
|
|
%|PREUN?{preuninstall script\
|
|
|
|
%|PREUNPROG?{ (through %{PREUNPROG})}|:\n%{PREUN}\n}:\
|
|
|
|
{%|PREUNPROG?{preuninstall program: %{PREUNPROG}\n}|}|\
|
|
|
|
\
|
|
|
|
%|POSTUN?{postuninstall script\
|
|
|
|
%|POSTUNPROG?{ (through %{POSTUNPROG})}|:\n%{POSTUN}\n}:\
|
|
|
|
{%|POSTUNPROG?{postuninstall program: %{POSTUNPROG}\n}|}|\
|
|
|
|
\
|
|
|
|
%|VERIFYSCRIPT?{verify script:\n%{VERIFYSCRIPT}\n}|\
|
|
|
|
'
|
1997-01-31 03:57:47 +08:00
|
|
|
|
1997-12-31 03:25:51 +08:00
|
|
|
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"
|
1997-01-31 03:57:47 +08:00
|
|
|
|
1997-02-18 04:20:04 +08:00
|
|
|
rpm alias --setugids -q --qf \
|
1998-02-09 01:30:10 +08:00
|
|
|
'[ch %{FILEUSERNAME:shescape} %{FILEGROUPNAME:shescape} %{FILENAMES:shescape}\n]' \
|
1998-09-20 00:36:22 +08:00
|
|
|
--pipe "(echo 'ch() { chown -- \"$1\" \"$3\";chgrp -- \"$2\" \"$3\"; }';grep -v \(none\))|sh"
|
1998-02-09 01:30:10 +08:00
|
|
|
|
1997-01-31 03:57:47 +08:00
|
|
|
|
1999-06-18 22:33:16 +08:00
|
|
|
rpm alias --conflicts --qf \
|
|
|
|
"[%{CONFLICTNAME} %{CONFLICTFLAGS:depflags} %{CONFLICTVERSION}\n]"
|
1999-09-19 08:29:44 +08:00
|
|
|
rpm alias --obsoletes --qf \
|
1999-09-24 09:50:04 +08:00
|
|
|
"[%{OBSOLETENAME} %|OBSOLETEFLAGS?{%{OBSOLETEFLAGS:depflags} %{OBSOLETEVERSION}}:{}|\n]"
|
1999-09-19 08:29:44 +08:00
|
|
|
rpm alias --provides --qf \
|
1999-09-24 09:50:04 +08:00
|
|
|
"[%{PROVIDENAME} %|PROVIDEFLAGS?{%{PROVIDEFLAGS:depflags} %{PROVIDEVERSION}}:{}|\n]"
|
1999-06-18 22:33:16 +08:00
|
|
|
|
1999-07-14 05:37:57 +08:00
|
|
|
# XXX prereq output is part of requires for query
|
1999-09-19 08:29:44 +08:00
|
|
|
#rpm alias --prereq --qf '[%{PREREQ}:depflags\n]'
|
1999-07-14 05:37:57 +08:00
|
|
|
|
1999-06-18 22:33:16 +08:00
|
|
|
rpm alias --requires --qf \
|
|
|
|
"[%{REQUIRENAME} %{REQUIREFLAGS:depflags} %{REQUIREVERSION}\n]"
|
1997-02-18 04:20:04 +08:00
|
|
|
rpm alias -R --requires
|
|
|
|
|
1999-04-13 00:09:19 +08:00
|
|
|
rpm alias --info --qf 'Name : %-27{NAME} Relocations: %|PREFIXES?{[%{PREFIXES} ]}:{(not relocateable)}|\n\
|
1997-07-08 06:22:44 +08:00
|
|
|
Version : %-27{VERSION} Vendor: %{VENDOR}\n\
|
|
|
|
Release : %-27{RELEASE} Build Date: %{BUILDTIME:date}\n\
|
1998-09-29 06:03:28 +08:00
|
|
|
Install date: %|INSTALLTIME?{%-27{INSTALLTIME:date}}:{(not installed) }| Build Host: %{BUILDHOST}\n\
|
1997-07-08 06:22:44 +08:00
|
|
|
Group : %-27{GROUP} Source RPM: %{SOURCERPM}\n\
|
1998-09-25 03:13:08 +08:00
|
|
|
Size : %-27{SIZE}%|LICENSE?{ License: %{LICENSE}}|\n\
|
1997-07-23 00:29:09 +08:00
|
|
|
%|PACKAGER?{Packager : %{PACKAGER}\n}|\
|
|
|
|
%|URL?{URL : %{URL}\n}|\
|
1997-07-08 06:22:44 +08:00
|
|
|
Summary : %{SUMMARY}\n\
|
1997-02-18 04:20:04 +08:00
|
|
|
Description :\n%{DESCRIPTION}\n'
|
1997-06-17 02:21:37 +08:00
|
|
|
|
|
|
|
rpm alias --changelog --qf '[* %{CHANGELOGTIME:day} %{CHANGELOGNAME}\n\n%{CHANGELOGTEXT}\n\n]'
|
1998-03-28 00:46:39 +08:00
|
|
|
|
|
|
|
rpm alias --triggerscripts --qf '\
|
|
|
|
[trigger%{TRIGGERTYPE} script (through %{TRIGGERSCRIPTPROG}) -- %{TRIGGERCONDS}\n\
|
|
|
|
%{TRIGGERSCRIPTS}\n]'
|
1998-08-12 02:24:48 +08:00
|
|
|
rpm alias --triggers --triggerscripts
|
1998-06-05 01:03:29 +08:00
|
|
|
|
1998-06-13 03:50:44 +08:00
|
|
|
rpm alias --last --qf '%|INSTALLTIME?{%{INSTALLTIME}}:{000000000}| %{NAME}-%{VERSION}-%{RELEASE} %|INSTALLTIME?{%-27{INSTALLTIME:date}}:{(not installed)}|\n' \
|
|
|
|
--pipe "sort -r -n | sed 's,^..........,,' | awk '{printf(\"%-35s %-3s %-3s %2s %-8s %-4s\n\", $1, $2, $3, $4, $5, $6)}' "
|
1998-07-01 02:50:47 +08:00
|
|
|
|
|
|
|
rpm alias --filesbypkg --qf '[%-25{=NAME} %{FILENAMES}\n]'
|
1998-08-12 02:24:48 +08:00
|
|
|
rpm exec --freshen freshen.sh
|
|
|
|
rpm alias -F --freshen
|
1999-09-23 02:03:19 +08:00
|
|
|
|
|
|
|
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
|
2000-02-22 11:09:53 +08:00
|
|
|
|
2000-02-24 06:40:53 +08:00
|
|
|
# colon separated i18n domains to use as PO catalogue lookaside for
|
|
|
|
* retrieving header group/description/summary.
|
|
|
|
#
|
|
|
|
# For Red Hat, value should be "redhat-dist:redhat-powertools".
|
|
|
|
rpm alias --i18ndomains --define '_i18ndomains !#:+'
|
|
|
|
|
2000-02-22 11:09:53 +08:00
|
|
|
# Build policies enabled from command line. Last policy applies.
|
Hi!
I'd like to start building sparc64 packages (eventhough the install rule
details are yet to be designed - IMHO if 64bit SPARC userland is going into
7.0 we should rebuild all packages into 64bit in the next months or so to
have time to chase bugs etc.), and this is about what I need.
Basically I'd like to have %{_lib} to stand for the last part (normally
"lib") of dirname for directories like /lib, /usr/lib, /usr/X11R6/lib
because on sparc64-linux they are /lib64, /usr/lib64, /usr/X11R6/lib64 (and
on Solaris /lib/sparcv9, /usr/lib/sparcv9 etc.), so that one can use things
like
/usr/%{_lib} in the spec files.
Another thing which I need is an arch specific build root policy.
This patch does a few things:
1) add installplatform into EXTRA_DIST files, so that it is actually invoked
during rpm build not from CVS
2) Define %_lib lib and let target specific macros override it
3) Split __spec_install_post into __arch_install_post and __os_install_post,
--buildpolicy now specifies the __os_install_post part only. spec files
can still override the __arch_install_post if the want to.
brp-sparc64-linux is used to move 64bit libraries to */lib64 directories
from */lib directories if make install of some package left them there.
4) Change installplatform so that on sparc* it creates both sparc and
sparc64 target macro dirs (/usr/lib/rpm/sparc{,64}-redhat-linux in
sparc*-redhat-linux case).
CVS patchset: 3685
CVS date: 2000/04/19 16:03:49
2000-04-20 00:03:49 +08:00
|
|
|
rpm alias --buildpolicy --define '__os_install_post @RPMCONFIGDIR@/brp-!#:+'
|
2000-03-31 03:22:46 +08:00
|
|
|
|
|
|
|
# Preferred db interface:
|
|
|
|
# 0 linux glibc libdb1 routines.
|
|
|
|
# 1 db_185.h interface in db2/db3 libdb.a.
|
|
|
|
# 2 native db2 interface.
|
|
|
|
# 3 native db3 interface.
|
|
|
|
rpm alias --preferdb --define '_preferdb !#:+'
|