1 #/*! \page config_rpmpopt Default configuration: /usr/lib/rpm/rpmpopt-5.4.15
4 # /usr/lib/rpm/rpmpopt. Generated from rpmpopt.in by configure.
5 # $Id: rpmpopt.in,v 2.92.2.4 2012/04/27 20:39:21 jbj Exp $
7 # This file *should not be modified*. Local customizations
8 # belong in /etc/popt, not here. This file will be replaced
9 # whenever a new version of RPM is installed.
11 # Note: Not all popt aliases are documented. This is a decision on my
12 # part as to which are the more important aliases. Feel free to clip
13 # a copy of the alias/exec here and place in /etc/popt or ~/.popt with
14 # your own words added. It's easier than arguing about how many options
15 # fit on the head of an executable :-)
18 #==============================================================================
19 rpm alias --scripts --qf '\
20 %|PRETRANS?{pretransinstall scriptlet\
21 %|PRETRANSPROG?{ (using %{PRETRANSPROG})}|:\n%{PRETRANS}\n}:\
22 {%|PRETRANSPROG?{pretransinstall program: %{PRETRANSPROG}\n}|}|\
24 %|PREIN?{preinstall scriptlet\
25 %|PREINPROG?{ (using %{PREINPROG})}|:\n%{PREIN}\n}:\
26 {%|PREINPROG?{preinstall program: %{PREINPROG}\n}|}|\
28 %|POSTIN?{postinstall scriptlet\
29 %|POSTINPROG?{ (using %{POSTINPROG})}|:\n%{POSTIN}\n}:\
30 {%|POSTINPROG?{postinstall program: %{POSTINPROG}\n}|}|\
32 %|PREUN?{preuninstall scriptlet\
33 %|PREUNPROG?{ (using %{PREUNPROG})}|:\n%{PREUN}\n}:\
34 {%|PREUNPROG?{preuninstall program: %{PREUNPROG}\n}|}|\
36 %|POSTUN?{postuninstall scriptlet\
37 %|POSTUNPROG?{ (using %{POSTUNPROG})}|:\n%{POSTUN}\n}:\
38 {%|POSTUNPROG?{postuninstall program: %{POSTUNPROG}\n}|}|\
40 %|POSTTRANS?{posttransinstall scriptlet\
41 %|POSTTRANSPROG?{ (using %{POSTTRANSPROG})}|:\n%{POSTTRANS}\n}:\
42 {%|POSTTRANSPROG?{posttransinstall program: %{POSTTRANSPROG}\n}|}|\
44 %|VERIFYSCRIPT?{verify scriptlet\
45 %|VERIFYSCRIPTPROG?{ (using %{VERIFYSCRIPTPROG})}|:\n%{VERIFYSCRIPT}\n}:\
46 {%|VERIFYSCRIPTPROG?{verifyscript program: %{VERIFYSCRIPTPROG}\n}|}|\
48 --POPTdesc=$"list install/erase scriptlets from package(s)"
50 #==============================================================================
51 rpm alias --scripts:yaml --qf '\
52 %|PREINPROG?{Prein(%{PREINPROG}):\
55 %|POSTINPROG?{Postin(%{POSTINPROG}):\
58 %|PREUNPROG?{Preun(%{PREUNPROG}):\
61 %|POSTUNPROG?{Postun(%{POSTUNPROG}):\
65 --POPTdesc=$"list install/erase scriptlets (YAML markup)"
67 #==============================================================================
68 rpm alias --danglinglink --nofiles \
69 --pipe "set $(grep '^/' | sort -u) ; [ -L \"$1\" ] && echo \"$1\" " \
70 --POPTdesc=$"display link needed, but not provided, by packages"
72 rpm alias --orphandirs --nofiles \
73 --pipe "set $(grep '^/' | sort -u) ; [ -d \"$1\" ] && echo \"$1\" " \
74 --POPTdesc=$"display directories needed, but not provided, by packages"
76 rpm alias --setperms -q --qf '[\[ -L %{FILENAMES:shescape} \] || chmod %7.7{FILEMODES:octal} %{FILENAMES:shescape}\n]' \
77 --pipe "grep -v \(none\) | sed 's/chmod .../chmod /' | sh" \
78 --POPTdesc=$"set permissions of files in a package"
80 rpm alias --setugids -q --qf \
81 '[chown -h -- %{FILEUSERNAME:shescape}:%{FILEGROUPNAME:shescape} %{FILENAMES:shescape}\n]' \
82 --pipe "grep -v '(none)' | sh" \
83 --POPTdesc=$"set user/group ownership of files in a package"
85 rpm alias --setfscontext -q --qf \
87 --pipe "[ -x /sbin/restorecon ] && /sbin/restorecon -R -i -f - || :" \
88 --POPTdesc=$"set selinux extended attributes file context of files in a package"
90 rpm alias --conflicts --qf \
91 "[%{CONFLICTNAME}%{CONFLICTFLAGS:depflags}%{CONFLICTVERSION}\n]" \
92 --POPTdesc=$"list capabilities this package conflicts with"
93 rpm alias --obsoletes --qf \
94 "[%{OBSOLETENAME}%|OBSOLETEFLAGS?{%{OBSOLETEFLAGS:depflags}%{OBSOLETEVERSION}}:{}|\n]" \
95 --POPTdesc=$"list other packages removed by installing this package"
96 rpm alias --provides --qf \
97 "[%{PROVIDENAME}%|PROVIDEFLAGS?{%{PROVIDEFLAGS:depflags}%{PROVIDEVERSION}}:{}|\n]" \
98 --POPTdesc=$"list capabilities that this package provides"
100 rpm alias --requires --qf \
101 "[%{REQUIRENAME}%{REQUIREFLAGS:hint:depflags}%{REQUIREVERSION}\n]" \
102 --pipe "grep -v \(hint\)" \
103 --POPTdesc=$"list capabilities required by package(s)"
104 rpm alias -R --requires
106 rpm alias --suggests --qf "[%{suggests}\n]" \
107 --POPTdesc=$"list enhancements suggested by package(s)"
109 rpm alias --enhances --qf "[%{enhances}\n]" \
110 --POPTdesc=$"list enhancements suggested by package(s)"
112 rpm alias --info --qf 'Name : %-27{NAME} Relocations: %|PREFIXES?{[%{PREFIXES} ]}:{(not relocatable)}|\n\
113 Version : %-27{VERSION} Vendor: %{VENDOR}\n\
114 Release : %-27{RELEASE} Build Date: %{BUILDTIME:date}\n\
115 Install Date: %|INSTALLTIME?{%-27.27{INSTALLTIME:date}}:{(not installed) }| Build Host: %{BUILDHOST}\n\
116 Group : %-29.29{GROUP} Source RPM: %{SOURCERPM}\n\
117 Size : %-27{SIZE}%|LICENSE?{ License: %{LICENSE}}|\n\
118 Signature : %|DSAHEADER?{%{DSAHEADER:pgpsig}}:{%|RSAHEADER?{%{RSAHEADER:pgpsig}}:{%|SIGGPG?{%{SIGGPG:pgpsig}}:{%|SIGPGP?{%{SIGPGP:pgpsig}}:{(none)}|}|}|}|\n\
119 %|PACKAGER?{Packager : %{PACKAGER}\n}|\
120 %|URL?{URL : %{URL}\n}|\
121 Summary : %{SUMMARY}\n\
122 Architecture: %{ARCH}\n\
123 Description :\n%{DESCRIPTION}\n' \
124 --POPTdesc=$"list descriptive information from package(s)"
126 rpm alias --changelog --qf '[* %{CHANGELOGTIME:day} %{CHANGELOGNAME}\n%{CHANGELOGTEXT}\n\n]' \
127 --POPTdesc=$"list change logs for this package"
129 #==============================================================================
130 rpm alias --xml --qf '[%{*:xml}\n]' \
131 --POPTdesc=$"list metadata in XML"
132 rpm alias --yaml --qf '[%{*:yaml}\n]' \
133 --POPTdesc=$"list metadata in YAML"
134 rpm alias --json --qf '[%{*:json}]' \
135 --POPTdesc=$"list metadata in JSON"
136 rpm alias --whatneeds -q --qf '[%{whatneeds}\n]' \
137 --POPTdesc=$"list packages that depend on args"
138 rpm alias --needswhat -q --qf '[%{needswhat}\n]' \
139 --POPTdesc=$"list prerequisite packages of args"
141 #==============================================================================
142 #rpm alias --mancoosi:dudf.xml --qf '\
143 #<dudf xmlns="http://www.mancoosi.org/2008/cudf/dudf" version="1.0">\
144 #\n <timestamp>Thu, 02 Oct 2008 17:28:48 +0200</timestamp>\
145 #\n <distribution>MandrivaLinux</distribution>\
147 #\n <name>rpm</name>\
148 #\n <version>5.2</version>\
150 #\n <meta-installer>\
151 #\n <name>rpm</name>\
152 #\n <version>5.2</version>\
153 #\n </meta-installer>\
156 #\n <package-status format="rpm_db_header">\
157 #\n <package name="gpg-pubkey" version="22458a98" arch="src" release="3969e7de">\
158 #\n <provides>gpg(Mandriva Security Team <security mandriva.com>)[== 4:9aa8d0d022458a98-3969e7de] gpg(22458a98)[== 4:9aa8d0d022458a98-3969e7de] </provides>\
160 #\n <package name="gpg-pubkey" version="26752624" arch="src" release="3fd74faa">\
161 #\n <provides>gpg(MandrakeCooker <cooker linux-mandrake.com>)[== 4:dd684d7a26752624-3fd74faa] gpg(26752624)[== 4:dd684d7a26752624-3fd74faa] </provides>\
163 #\n <package name="dash-static" version="0.5.4" arch="i586" release="7mdv2008.1">\
164 #\n <provides>ash /bin/dash.static dash-static[== 0.5.4-7mdv2008.1] </provides>\
165 #\n <conflicts>dash[< 0.5.4-3] </conflicts>\
167 #\n <package name="gpg-pubkey" version="70771ff3" arch="src" release="3c8f768f">\
168 #\n <provides>gpg(Mandrake Linux <mandrake mandrakesoft.com>)[== 4:e7898ae070771ff3-3c8f768f] gpg(70771ff3)[== 4:e7898ae070771ff3-3c8f768f] </provides>\
170 #\n <package name="gpg-pubkey" version="70771ff3" arch="src" release="3c8f768f">\
171 #\n <provides>gpg(Mandrake Linux <mandrake mandrakesoft.com>)[== 4:e7898ae070771ff3-3c8f768f] gpg(70771ff3)[== 4:e7898ae070771ff3-3c8f768f] </provides>\
173 #\n <package name="gpg-pubkey" version="78d019f5" arch="src" release="3fd7504d">\
174 #\n <provides>gpg(MandrakeContrib <cooker linux-mandrake.com>)[== 4:445935f878d019f5-3fd7504d] gpg(78d019f5)[== 4:445935f878d019f5-3fd7504d] </provides>\
176 #\n <package name="gpg-pubkey" version="70771ff3" arch="src" release="44b3822e">\
177 #\n <provides>gpg(Mandriva Linux <mandriva mandriva.com>)[== 4:e7898ae070771ff3-44b3822e] gpg(70771ff3)[== 4:e7898ae070771ff3-44b3822e] </provides>\
179 #\n <package name="glibc" version="2.7" arch="i586" release="12mnb1">\
182 #==============================================================================
183 #rpm alias --deb:control --qf '\
185 #\nVersion: %|EPOCH?{%{EPOCH}:}|%{VERSION}-%{RELEASE}\
186 #\nSection: %{GROUP}\
188 #\nPriority: %{Priority}\
190 #\nPriority: standard\
192 #\nArchitecture: %{ARCH:strsub(noarch,all,src,source)}\
194 #\nEssential: %{Essential}\
197 #\nDepends:[ %{Debdepends}]\
200 #\nPre-Depends:[ %{Predepends}]\
203 #\nRecommends:[ %{Recommends}]\
206 #\nSuggests:[ %{Suggests}]\
209 #\nEnhances:[ %{Enhances}]\
212 #\nBreaks:[ %{Breaks}]\
215 #\nConflicts:[ %{Debconflicts}]\
217 #\nInstalled-Size: %{SIZE:rpn(1023,+,1024,/)}\
219 #\nMaintainer: %{PACKAGER}\
221 #\nDescription: %{SUMMARY}\
222 #\n%{DESCRIPTION:strsub(^, )}\
227 # --POPTdesc=$"display binary debian/control file"
229 rpm alias --deb:Packages --qf /usr/lib/rpm/qf/deb_Packages \
230 --POPTdesc=$"display Debian Packages file"
232 rpm alias --deb:Sources --qf /usr/lib/rpm/qf/deb_Sources \
233 --POPTdesc=$"display Debian Sources file"
235 rpm alias --deb:control --qf /usr/lib/rpm/qf/deb_control \
236 --POPTdesc=$"display binary debian/control file"
238 rpm alias --deb:preinst --qf /usr/lib/rpm/qf/deb_preinst \
239 --POPTdesc=$"display debian/preinst script"
241 rpm alias --deb:postinst --qf /usr/lib/rpm/qf/deb_postinst \
242 --POPTdesc=$"display debian/postinst script"
244 rpm alias --deb:prerm --qf /usr/lib/rpm/qf/deb_prerm \
245 --POPTdesc=$"display debian/prerm script"
247 rpm alias --deb:postrm --qf /usr/lib/rpm/qf/deb_postrm \
248 --POPTdesc=$"display debian/postrm script"
250 rpm alias --deb:md5sums --qf /usr/lib/rpm/qf/deb_md5sums \
251 --POPTdesc=$"display debian/md5sums manifest"
253 #==============================================================================
254 rpm alias --yum:primary.xml --qf /usr/lib/rpm/qf/yum_primary_xml \
255 --POPTdesc=$"display yum primary.xml markup"
257 rpm alias --yum:filelists.xml --qf /usr/lib/rpm/qf/yum_filelists_xml \
258 --POPTdesc=$"display yum filelists.xml markup"
260 rpm alias --yum:other.xml --qf /usr/lib/rpm/qf/yum_other_xml \
261 --POPTdesc=$"display yum other.xml markup"
263 #==============================================================================
264 rpm alias --yum:primary.sqlite --qf /usr/lib/rpm/qf/yum_primary_sqlite \
265 --POPTdesc=$"display yum primary.sqlite import"
267 rpm alias --yum:filelists.sqlite --qf /usr/lib/rpm/qf/yum_filelists_sqlite \
268 --POPTdesc=$"display yum filelists.sqlite import"
270 rpm alias --yum:other.sqlite --qf /usr/lib/rpm/qf/yum_other_sqlite \
271 --POPTdesc=$"display yum other.sqlite import"
273 #==============================================================================
274 rpm alias --wnh:primary.yaml --qf /usr/lib/rpm/qf/wnh_primary_yaml \
275 --POPTdesc=$"display wnh primary.yaml markup"
277 rpm alias --wnh:filelists.yaml --qf /usr/lib/rpm/qf/wnh_filelists_yaml \
278 --POPTdesc=$"display wnh filelists.yaml markup"
280 rpm alias --wnh:other.yaml --qf /usr/lib/rpm/qf/wnh_other_yaml \
281 --POPTdesc=$"display wnh other.yaml markup"
283 #==============================================================================
284 rpm alias --wnh:primary.mongo --qf /usr/lib/rpm/qf/wnh_primary_mongo \
285 --POPTdesc=$"display wnh primary.mongo markup"
287 rpm alias --wnh:filelists.mongo --qf /usr/lib/rpm/qf/wnh_filelists_mongo \
288 --POPTdesc=$"display wnh filelists.mongo markup"
290 rpm alias --wnh:other.mongo --qf /usr/lib/rpm/qf/wnh_other_mongo \
291 --POPTdesc=$"display wnh other.mongo markup"
293 #==============================================================================
294 rpm alias --wdj:srpm --qf /usr/lib/rpm/qf/wdj_srpm \
295 --POPTdesc=$"display wdj binary->source Cassandra markup"
296 rpm alias --wdj:srpm.mongo --qf /usr/lib/rpm/qf/wdj_srpm_mongo \
297 --POPTdesc=$"display wdj binary->source Mongo markup"
298 rpm alias --wdj:l10n.sqlite --qf /usr/lib/rpm/qf/wdj_l10n_sqlite \
299 --POPTdesc=$"display wdj l10n.sqlite markup "
301 #==============================================================================
302 rpm alias --nix:meta --qf /usr/lib/rpm/qf/nix_meta \
303 --POPTdesc=$"display nix meta markup"
305 rpm alias --xiu:stdenv --qf /usr/lib/rpm/qf/xiu_stdenv \
306 --POPTdesc=$"display xiu stdenv markup"
308 #==============================================================================
309 rpm alias --triggerscripts --qf '\
310 [trigger%{TRIGGERTYPE} scriptlet (using %{TRIGGERSCRIPTPROG}) -- %{TRIGGERCONDS}\n\
311 %{TRIGGERSCRIPTS}\n]'
312 rpm alias --triggers --triggerscripts \
313 --POPTdesc=$"list trigger scriptlets from package(s)"
315 rpm alias --last --qf '%|INSTALLTIME?{%{INSTALLTIME}}:{000000000}| %{NAME}-%{VERSION}-%{RELEASE}%|DISTTAG?{-%{DISTTAG}%|DISTEPOCH?{%{DISTEPOCH}}|}|%|ARCH?{.%|SOURCERPM?{%{ARCH}}:{src}|}:{}| %|INSTALLTIME?{%{INSTALLTIME:date}}:{(not installed)}|\n' \
316 --pipe "sort -r -n | sed 's,^[0-9]\+ ,,' | awk '{printf(\"%-45s %-s\n\", $1, substr($0,length($1)+2))}' " \
317 --POPTdesc=$"list package(s) by install time, most recent first"
319 rpm alias --dupes --qf '%|SOURCERPM?{%{name}.%{arch}}:{%|ARCH?{%{name}}:{%{name}-%{version}}|}|\n' --pipe "sort | uniq -d" \
320 --POPTdesc=$"list duplicated packages"
322 rpm alias --filesbypkg --qf '[%-25{=NAME} %{FILENAMES}\n]' \
323 --POPTdesc=$"list all files from each package"
325 rpm alias --fileclass --qf '[%{FILENAMES}\t%{FILECLASS}\n]' \
326 --POPTdesc=$"list file names with classes"
328 rpm alias --filecolor --qf '[%{FILENAMES}\t%{FILECOLORS}\n]' \
329 --POPTdesc=$"list file names with colors"
331 rpm alias --filecontext --qf '[%{FILENAMES}\t%{FILECONTEXTS}\n]' \
332 --POPTdesc=$"list file names with security context from header"
334 rpm alias --fscontext --qf '[%{FILENAMES}\t%{FSCONTEXTS}\n]' \
335 --POPTdesc=$"list file names with security context from file system"
337 rpm alias --recontext --qf '[%{FILENAMES}\t%{RECONTEXTS}\n]' \
338 --POPTdesc=$"list file names with security context from policy RE"
340 rpm alias --fileprovide --qf '[%{FILENAMES}\t%{FILEPROVIDE}\n]' \
341 --POPTdesc=$"list file names with provides"
343 rpm alias --filerequire --qf '[%{FILENAMES}\t%{FILEREQUIRE}\n]' \
344 --POPTdesc=$"list file names with requires"
346 rpm alias --vendorprovides -q --define '_dbpath /usr/lib/rpmdb/%{_arch}-%{_vendor}-%{_os}/%{_vendor}' --whatprovides \
347 --POPTdesc=$"find package name that contains a provided capability (needs rpmdb-vendor package installed)"
349 rpm alias --vendorrequires -q --define '_dbpath /usr/lib/rpmdb/%{_arch}-%{_vendor}-%{_os}/%{_vendor}' --whatrequires \
350 --POPTdesc=$"find package name that contains a required capability (needs rpmdb-vendor package installed)"
353 # Autorollback aliases
354 rpm alias --autorollback --define '_rollback_transaction_on_failure 1' \
355 --POPTdesc=$"Failed transactions will be rolled back automatically"
357 rpm alias --blink --qf '%{name}-%{version}-%{release}.%|SOURCERPM?{%{arch}.rpm}:{%|ARCH?{src.rpm}:{pubkey}|}|\n%|BLINKNEVRA?{[\t<= %{BLINKNEVRA}.rpm\n]}|'
359 --POPTdesc=$"display package(s) previously installed"
360 rpm alias --flink --qf '%{name}-%{version}-%{release}.%|SOURCERPM?{%{arch}.rpm}:{%|ARCH?{src.rpm}:{pubkey}|}|\n%|FLINKNEVRA?{[\t=> %{FLINKNEVRA}.rpm\n]}|'
362 --POPTdesc=$"display package(s) which replaced"
365 # colon separated i18n domains to use as PO catalogue lookaside for
366 # retrieving header group/description/summary.
368 # For vendors, value should be "vendor-dist".
369 rpm alias --i18ndomains --define '_i18ndomains !#:+'
371 # Build policies enabled from command line. Last policy applies.
372 rpm alias --buildpolicy --define '__os_install_post %{_usrlibrpm}/brp-!#:+' \
373 --POPTdesc=$"set buildroot <policy> (e.g. compress man pages)" \
374 --POPTargs=$"<policy>"
377 rpm alias --force --replacepkgs --replacefiles --oldpackage \
378 --POPTdesc=$"force operation (short hand for --replacepkgs --replacefiles --oldpackage on installation)"
380 # Choose db interface:
382 # 1 native db1 interface (e.g. linux glibc libdb1 routines).
383 # 2 native db2 interface.
384 # 3 native db3 interface.
385 # -1 db3 -> db2 -> db1 (as available).
387 # There are two macros so that --rebuilddb can convert db1 -> db3
388 rpm alias --dbapi --define '_dbapi !#:+'
390 rpm alias --rebuilddbapi --define '_dbapi_rebuild !#:+'
391 rpm alias --rebuilddbpath --define '_dbpath_rebuild !#:+'
393 # permit fsync disabling of Berkeley DB (caveat: experimental & risky)
394 rpm alias --nofsync --define '__nofsync nofsync'
396 #==============================================================================
397 # [--dbpath DIRECTORY" "use database in DIRECTORY"
398 rpm alias --dbpath --define '_dbpath !#:+'
399 # [--ftpport <port>] "port number of ftp server (or proxy)"
400 rpm alias --ftpport --define '_ftpport !#:+'
401 # [--ftpproxy <host>] "hostname or IP of ftp proxy"
402 rpm alias --ftpproxy --define '_ftpproxy !#:+'
403 # [--httpport <port>] "port number of http server (or proxy)"
404 rpm alias --httpport --define '_httpport !#:+'
405 # [--httpproxy <host>] "hostname or IP of http proxy"
406 rpm alias --httpproxy --define '_httpproxy !#:+'
408 # RPM_VENDOR_PLD /* rpm-popt-aliases */
409 rpm alias --downgrade --oldpackage \
410 --POPTdesc=$"Allow an upgrade to replace a newer package with an older one."
412 rpm alias --what-provides --whatprovides \
413 --POPTdesc=$"find package name that contains a provided capability"
415 rpm alias --what-requires --whatrequires \
416 --POPTdesc=$"find package name that contains a required capability"
418 rpm alias --norepackage --define '_repackage_all_erasures 0' \
419 --POPTdesc=$"Disable re-package of the files before erasing"
420 # RPM_VENDOR_PLD /* rpm-popt-aliases */
422 # set the time check to <secs>
423 rpm alias --timecheck --define '_timecheck !#:+'
425 rpm alias --with --define "_with_!#:+ --with-!#:+" \
426 --POPTdesc=$"enable configure <option> for build" \
427 --POPTargs=$"<option>"
428 rpm alias --without --define "_without_!#:+ --without-!#:+" \
429 --POPTdesc=$"disable configure <option> for build" \
430 --POPTargs=$"<option>"
432 rpm alias --arch --qf '%-34{=NAME}\t%{ARCH}\n' \
433 --POPTdesc=$"list package architecture"
435 rpm alias --ignorearch --define '__ignore_arch 1'
436 rpm alias --ignoreos --define '__ignore_os 1'
438 #==============================================================================
439 rpmbuild alias --dbpath --define '_dbpath !#:+' \
440 --POPTdesc=$"use database in DIRECTORY" \
441 --POPTargs=$"DIRECTORY"
442 rpmbuild alias --ftpport --define '_ftpport !#:+'
443 rpmbuild alias --ftpproxy --define '_ftpproxy !#:+'
444 rpmbuild alias --httpport --define '_httpport !#:+'
445 rpmbuild alias --httpproxy --define '_httpproxy !#:+'
446 rpmbuild alias --timecheck --define '_timecheck !#:+'
447 rpmbuild alias --with --define "_with_!#:+ --with-!#:+" \
448 --POPTdesc=$"enable configure <option> for build" \
449 --POPTargs=$"<option>"
450 rpmbuild alias --without --define "_without_!#:+ --without-!#:+" \
451 --POPTdesc=$"disable configure <option> for build" \
452 --POPTargs=$"<option>"
453 rpmbuild alias --buildroot --define '.buildroot !#:+' \
454 --POPTdesc=$"override build root" \
455 --POPTargs=$"DIRECTORY"
457 # (PLD-specific) Make RPM build tree
458 rpmbuild exec --install-build-tree install-build-tree \
459 --POPTdesc=$"make all needed dirs for building binary rpms"
461 # (PLD-specific) Compiling with debuginfo may be enabled by --debug
462 rpmbuild alias --debug --define 'debug 1' \
463 --POPTdesc=$"build packages with debug information"
465 # (PLD-specific) Conditional building
466 rpmbuild exec --bcond find-spec-bcond \
467 --POPTdesc=$"find all --with/--without values"
469 rpmbuild alias --lsb --noautoreq --noautoprov \
470 --define '_use_internal_dependency_generator 0' \
473 rpmbuild alias --withoutcheck --define 'check exit 0' \
474 --POPTdesc=$"disable %check stanza for build"
475 rpmbuild alias --withoutclean --define '__spec_clean_body %{nil}' \
476 --POPTdesc=$"disable %clean stanza for build"
479 rpm alias --initdb -qa --quiet \
480 --POPTdesc=$"Compatibility option with old rpm. Database is created lazily now."
482 rpm alias --downgrade --oldpackage \
483 --POPTdesc=$"Allow an upgrade to replace a newer package with an older one."
485 rpm alias --what-provides --whatprovides \
486 --POPTdesc=$"find package name that contains a provided capability"
488 rpm alias --what-requires --whatrequires \
489 --POPTdesc=$"find package name that contains a required capability"
491 rpm alias --norepackage --define '_repackage_all_erasures 0' \
492 --POPTdesc=$"Disable re-package of the files before erasing"
494 rpmbuild alias --disable-debuginfo --define '_enable_debug_packages 0' \
495 --POPTdesc=$"Disable debuginfo package creation"