Debian Codegraph @

templates/man7/rpm-macros.7.pot

raw
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2026-06-05 06:40+0200\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <[email protected]>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 #. type: TH
20 #: archlinux debian-unstable fedora-44 fedora-rawhide
21 #, no-wrap
22 msgid "RPM-MACROS"
23 msgstr ""
24
25 #. type: TH
26 #: archlinux
27 #, no-wrap
28 msgid "2026-03-06"
29 msgstr ""
30
31 #. type: TH
32 #: archlinux debian-unstable fedora-44 fedora-rawhide
33 #, no-wrap
34 msgid "RPM 6.0.1"
35 msgstr ""
36
37 #. type: SH
38 #: archlinux debian-unstable fedora-44 fedora-rawhide
39 #, no-wrap
40 msgid "NAME"
41 msgstr ""
42
43 #. type: Plain text
44 #: archlinux debian-unstable fedora-44 fedora-rawhide
45 msgid "rpm-macros - RPM macro processor"
46 msgstr ""
47
48 #. type: SH
49 #: archlinux debian-unstable fedora-44 fedora-rawhide
50 #, no-wrap
51 msgid "SYNOPSIS"
52 msgstr ""
53
54 #. type: SS
55 #: archlinux debian-unstable fedora-44 fedora-rawhide
56 #, no-wrap
57 msgid "Defining"
58 msgstr ""
59
60 #. type: Plain text
61 #: archlinux debian-unstable fedora-44 fedora-rawhide
62 msgid "B<%>I<NAME> I<BODY>"
63 msgstr ""
64
65 #. type: Plain text
66 #: archlinux debian-unstable fedora-44 fedora-rawhide
67 msgid "B<%>I<NAME>B<(>[I<OPTIONS>]B<)> I<BODY>"
68 msgstr ""
69
70 #. type: SS
71 #: archlinux debian-unstable fedora-44 fedora-rawhide
72 #, no-wrap
73 msgid "Expanding"
74 msgstr ""
75
76 #. type: Plain text
77 #: archlinux debian-unstable fedora-44 fedora-rawhide
78 msgid "B<%>I<NAME>"
79 msgstr ""
80
81 #. type: Plain text
82 #: archlinux debian-unstable fedora-44 fedora-rawhide
83 msgid "B<%>I<NAME> [I<OPTIONS>] [I<ARGUMENTS>]"
84 msgstr ""
85
86 #. type: Plain text
87 #: archlinux debian-unstable fedora-44 fedora-rawhide
88 msgid "B<%{>I<NAME>B<}>"
89 msgstr ""
90
91 #. type: Plain text
92 #: archlinux debian-unstable fedora-44 fedora-rawhide
93 msgid "B<%{>I<NAME> [I<OPTIONS>] I<ARGUMENTS>B<}>"
94 msgstr ""
95
96 #. type: Plain text
97 #: archlinux debian-unstable fedora-44 fedora-rawhide
98 msgid "B<%{>I<NAME>B<:>I<ARGUMENT>B<}>"
99 msgstr ""
100
101 #. type: Plain text
102 #: archlinux debian-unstable fedora-44 fedora-rawhide
103 msgid "B<%{?\\&>I<NAME>B<}>"
104 msgstr ""
105
106 #. type: Plain text
107 #: archlinux debian-unstable fedora-44 fedora-rawhide
108 msgid "B<%{?\\&>I<NAME>B<:>I<VALUE-IF-DEFINED>B<}>"
109 msgstr ""
110
111 #. type: Plain text
112 #: archlinux debian-unstable fedora-44 fedora-rawhide
113 msgid "B<%{!\\&?\\&>I<NAME>B<:>I<VALUE-IF-NOT-DEFINED>B<}>"
114 msgstr ""
115
116 #. type: Plain text
117 #: archlinux debian-unstable fedora-44 fedora-rawhide
118 msgid "B<%(>I<SHELL-COMMAND>B<)>"
119 msgstr ""
120
121 #. type: Plain text
122 #: archlinux debian-unstable fedora-44 fedora-rawhide
123 msgid "B<%[>I<EXPRESSION>B<]>"
124 msgstr ""
125
126 #. type: Plain text
127 #: archlinux debian-unstable fedora-44 fedora-rawhide
128 msgid "B<%[>I<EXPRESSION> B<?\\&> I<VALUE-IF-TRUE> B<:> I<VALUE-IF-FALSE>B<]>"
129 msgstr ""
130
131 #. type: Plain text
132 #: archlinux debian-unstable fedora-44 fedora-rawhide
133 msgid "B<%{lua:>I<LUA-CODE>B<}>"
134 msgstr ""
135
136 #. type: SH
137 #: archlinux debian-unstable fedora-44 fedora-rawhide
138 #, no-wrap
139 msgid "DESCRIPTION"
140 msgstr ""
141
142 #. type: Plain text
143 #: archlinux debian-unstable fedora-44 fedora-rawhide
144 msgid ""
145 "RPM has a powerful built-in macro processor.\\& The primary uses of macros "
146 "are configuration and other utility functions for RPM itself, and as a "
147 "packaging aid in spec files.\\&"
148 msgstr ""
149
150 #. type: Plain text
151 #: archlinux debian-unstable fedora-44 fedora-rawhide
152 msgid ""
153 "In addition to simple text substitution, the macro processor supports the "
154 "following facilities:"
155 msgstr ""
156
157 #. type: IP
158 #: archlinux debian-unstable fedora-44 fedora-rawhide
159 #, no-wrap
160 msgid "\\(bu"
161 msgstr ""
162
163 #. type: Plain text
164 #: archlinux debian-unstable fedora-44 fedora-rawhide
165 msgid ""
166 "function-like B<PARAMETRIC MACROS> with options and arguments processing and "
167 "locally scoped automatic and user-defined macros"
168 msgstr ""
169
170 #. type: Plain text
171 #: archlinux debian-unstable fedora-44 fedora-rawhide
172 msgid "B<Shell expansion>"
173 msgstr ""
174
175 #. type: Plain text
176 #: archlinux debian-unstable fedora-44 fedora-rawhide
177 msgid "B<Expression expansion>"
178 msgstr ""
179
180 #. type: Plain text
181 #: archlinux debian-unstable fedora-44 fedora-rawhide
182 msgid "B<Lua expansion> for embedded Lua processing"
183 msgstr ""
184
185 #. type: Plain text
186 #: archlinux debian-unstable fedora-44 fedora-rawhide
187 msgid "various B<BUILT-IN MACROS> for string processing and OS interaction"
188 msgstr ""
189
190 #. type: Plain text
191 #: archlinux debian-unstable fedora-44 fedora-rawhide
192 msgid "The syntax for defining simple macros is:"
193 msgstr ""
194
195 #. type: Plain text
196 #: archlinux debian-unstable fedora-44 fedora-rawhide
197 msgid "I<NAME> I<BODY>"
198 msgstr ""
199
200 #. type: Plain text
201 #: archlinux debian-unstable fedora-44 fedora-rawhide
202 msgid ""
203 "All whitespace surrounding I<BODY> is removed.\\& I<NAME> may be composed of "
204 "alphanumeric characters and the underscore (B<_>), and must be at least two "
205 "characters in length.\\& The body is (re-)expanded on each macro invocation."
206 "\\& Macro names and options are case-sensitive.\\&"
207 msgstr ""
208
209 #. type: Plain text
210 #: archlinux debian-unstable fedora-44 fedora-rawhide
211 msgid ""
212 "See B<PARAMETRIC MACROS> for the more advanced macro variant with options "
213 "and arguments processing.\\&"
214 msgstr ""
215
216 #. type: Plain text
217 #: archlinux debian-unstable fedora-44 fedora-rawhide
218 msgid ""
219 "Macros can be defined via B<rpm-macrofile>(5) files, and fully managed with "
220 "macro primitives B<%define>, B<%global> and B<%undefine>, RPM command-line "
221 "described in B<rpm-common>(8) and the API (C, Python, Lua).\\&"
222 msgstr ""
223
224 #. type: Plain text
225 #: archlinux debian-unstable fedora-44 fedora-rawhide
226 msgid ""
227 "Except for those defined inside parametric macros, macros are always global "
228 "in scope.\\&"
229 msgstr ""
230
231 #. type: Plain text
232 #: archlinux debian-unstable fedora-44 fedora-rawhide
233 msgid ""
234 "RPM macros are stacked, ie.\\& when redefining an already existing macro, it "
235 "shadows the previous definition instead of replacing it, and undefining a "
236 "macro only pops the topmost definition, thus activating the previous macro "
237 "definition.\\&"
238 msgstr ""
239
240 #. type: Plain text
241 #: archlinux debian-unstable fedora-44 fedora-rawhide
242 msgid ""
243 "Note that this manual only describes the macro processor engine itself.\\& "
244 "On a normal RPM based system, there are a vast number of other macros "
245 "defined through B<rpm-macrofile>(5) files that will not be covered here.\\&"
246 msgstr ""
247
248 #. type: SH
249 #: archlinux debian-unstable fedora-44 fedora-rawhide
250 #, no-wrap
251 msgid "EXPANSION"
252 msgstr ""
253
254 #. type: Plain text
255 #: archlinux debian-unstable fedora-44 fedora-rawhide
256 msgid ""
257 "To expand a macro, place B<%> in front of it.\\& Several forms are supported:"
258 msgstr ""
259
260 #. type: Plain text
261 #: archlinux debian-unstable fedora-44 fedora-rawhide
262 msgid "Expand the macro I<NAME>.\\&"
263 msgstr ""
264
265 #. type: Plain text
266 #: archlinux debian-unstable fedora-44 fedora-rawhide
267 msgid ""
268 "Expand the macro I<NAME>, allowing placement adjacent to other text (similar "
269 "to B<${ENV}> in shell).\\&"
270 msgstr ""
271
272 #. type: Plain text
273 #: archlinux debian-unstable fedora-44 fedora-rawhide
274 msgid ""
275 "Expand the parametric/built-in macro I<NAME>, using options and arguments "
276 "parsed up to the string end or next newline.\\&"
277 msgstr ""
278
279 #. type: Plain text
280 #: archlinux debian-unstable fedora-44 fedora-rawhide
281 msgid "B<--> can be used to separate options from arguments.\\&"
282 msgstr ""
283
284 #. type: Plain text
285 #: archlinux debian-unstable fedora-44 fedora-rawhide
286 msgid "B<%{>I<NAME> [I<OPTIONS>] [I<ARGUMENTS>]B<}>"
287 msgstr ""
288
289 #. type: Plain text
290 #: archlinux debian-unstable fedora-44 fedora-rawhide
291 msgid ""
292 "Expand the parametric/built-in macro I<NAME>, using options and arguments "
293 "parsed up to the closing B<}>.\\& Allows usage adjacent to other text.\\&"
294 msgstr ""
295
296 #. type: Plain text
297 #: archlinux debian-unstable fedora-44 fedora-rawhide
298 msgid ""
299 "Expand the parametric/built-in macro I<NAME>, using the string after B<:> as "
300 "the sole argument.\\& Allows usage adjacent to other text.\\&"
301 msgstr ""
302
303 #. type: Plain text
304 #: archlinux debian-unstable fedora-44 fedora-rawhide
305 msgid ""
306 "Note: The syntaxes for calling parametric and built-in macros are generally "
307 "interchangeable now, but prior to 4.\\&18, the B<%{>I<NAME>B<:>I<ARGUMENT>B<}"
308 "> syntax was exclusive to built-in macros.\\&"
309 msgstr ""
310
311 #. type: Plain text
312 #: archlinux debian-unstable fedora-44 fedora-rawhide
313 msgid ""
314 "Macro expansion can be escaped by placing a second B<%> in front of the "
315 "macro, for example B<%%{name}> would be expanded to B<%{name}>.\\&"
316 msgstr ""
317
318 #. type: Plain text
319 #: archlinux debian-unstable fedora-44 fedora-rawhide
320 msgid ""
321 "Attempting to expand an undefined macro expands to the literal invocation, e."
322 "\\&g.\\& B<%_undefined> expands to B<%_undefined>.\\& If this is not "
323 "desired, use conditionals.\\&"
324 msgstr ""
325
326 #. type: Plain text
327 #: archlinux debian-unstable fedora-44 fedora-rawhide
328 msgid "Macro expansions can recurse up to 64 levels.\\&"
329 msgstr ""
330
331 #. type: SS
332 #: archlinux debian-unstable fedora-44 fedora-rawhide
333 #, no-wrap
334 msgid "Shell expansion"
335 msgstr ""
336
337 #. type: Plain text
338 #: archlinux debian-unstable fedora-44 fedora-rawhide
339 msgid ""
340 "Shell expansion can be performed using B<%(>I<shell command>B<)>.\\& "
341 "I<shell_command> is expanded before executing it with I</bin/sh>, whose "
342 "output becomes the expansion of the macro.\\& The trailing newline is "
343 "deleted.\\&"
344 msgstr ""
345
346 #. type: Plain text
347 #: archlinux debian-unstable fedora-44 fedora-rawhide
348 msgid "Example:"
349 msgstr ""
350
351 #. type: Plain text
352 #: archlinux debian-unstable fedora-44 fedora-rawhide
353 #, no-wrap
354 msgid "%(echo aa-bb-cc | tr \\&'-\\&' \\&'\\&.\\&')\n"
355 msgstr ""
356
357 #. type: SS
358 #: archlinux debian-unstable fedora-44 fedora-rawhide
359 #, no-wrap
360 msgid "Conditional expansion"
361 msgstr ""
362
363 #. type: Plain text
364 #: archlinux debian-unstable fedora-44 fedora-rawhide
365 msgid ""
366 "The macro processor supports testing whether a macro is defined or not.\\&"
367 msgstr ""
368
369 #. type: Plain text
370 #: archlinux debian-unstable fedora-44 fedora-rawhide
371 msgid "B<%{?\\&>I<NAME>B<:>I<VALUE>B<}>"
372 msgstr ""
373
374 #. type: Plain text
375 #: archlinux debian-unstable fedora-44 fedora-rawhide
376 msgid ""
377 "Expands to the expansion of I<VALUE> if I<NAME> is defined, otherwise to an "
378 "empty string.\\&"
379 msgstr ""
380
381 #. type: Plain text
382 #: archlinux debian-unstable fedora-44 fedora-rawhide
383 msgid "B<%{!\\&?\\&>I<NAME>B<:>I<VALUE>B<}>"
384 msgstr ""
385
386 #. type: Plain text
387 #: archlinux debian-unstable fedora-44 fedora-rawhide
388 msgid ""
389 "Expands to the expansion of I<VALUE> if I<NAME> is I<not> defined, otherwise "
390 "it expands to an empty string.\\&"
391 msgstr ""
392
393 #. type: Plain text
394 #: archlinux debian-unstable fedora-44 fedora-rawhide
395 msgid "Shorthand for B<%{?\\&>I<NAME>B<:%{>I<NAME>B<}}>.\\&"
396 msgstr ""
397
398 #. type: Plain text
399 #: archlinux debian-unstable fedora-44 fedora-rawhide
400 msgid ""
401 "For more complex tests, use B<Expression expansion> or B<Lua expansion>.\\& "
402 "Note that B<%if>, B<%ifarch> and the like are not macros, they are spec "
403 "directives and only usable in that context.\\&"
404 msgstr ""
405
406 #. type: Plain text
407 #: archlinux debian-unstable fedora-44 fedora-rawhide
408 msgid ""
409 "Note that in RPM E<gt>= 4.\\&17, conditionals on built-in macros simply test "
410 "for existence of that built-in, just like with any other macros.\\& In older "
411 "versions, the behavior of conditionals on built-ins is undefined.\\&"
412 msgstr ""
413
414 #. type: SS
415 #: archlinux debian-unstable fedora-44 fedora-rawhide
416 #, no-wrap
417 msgid "Expression expansion"
418 msgstr ""
419
420 #. type: Plain text
421 #: archlinux debian-unstable fedora-44 fedora-rawhide
422 msgid ""
423 "Expression expansion can be performed using B<%[>I<EXPRESSION>B<]>.\\& An "
424 "expression consists of terms that can be combined using operators.\\&"
425 msgstr ""
426
427 #. type: Plain text
428 #: archlinux debian-unstable fedora-44 fedora-rawhide
429 msgid "RPM supports three kinds of terms:"
430 msgstr ""
431
432 #. type: Plain text
433 #: archlinux debian-unstable fedora-44 fedora-rawhide
434 msgid "numbers made up from digits"
435 msgstr ""
436
437 #. type: Plain text
438 #: archlinux debian-unstable fedora-44 fedora-rawhide
439 msgid "strings enclosed in double quotes (e.\\&g B<\"somestring\">)"
440 msgstr ""
441
442 #. type: Plain text
443 #: archlinux debian-unstable fedora-44 fedora-rawhide
444 msgid ""
445 "versions enclosed in double quotes preceded by B<v> (e.\\&g "
446 "B<v\"3:1.\\&2-1\">)"
447 msgstr ""
448
449 #. type: Plain text
450 #: archlinux debian-unstable fedora-44 fedora-rawhide
451 msgid "RPM will expand macros when evaluating terms.\\&"
452 msgstr ""
453
454 #. type: Plain text
455 #: archlinux debian-unstable fedora-44 fedora-rawhide
456 msgid "You can use the standard operators to combine terms:"
457 msgstr ""
458
459 #. type: Plain text
460 #: archlinux debian-unstable fedora-44 fedora-rawhide
461 msgid "logical operators B<&&>, B<||>, B<!\\&>"
462 msgstr ""
463
464 #. type: Plain text
465 #: archlinux debian-unstable fedora-44 fedora-rawhide
466 msgid ""
467 "relational operators B<!\\&=>, B<==>, B<E<lt>>, B<E<gt>>, B<E<lt>=>, "
468 "B<E<gt>=>"
469 msgstr ""
470
471 #. type: Plain text
472 #: archlinux debian-unstable fedora-44 fedora-rawhide
473 msgid "arithmetic operators B<+>, B<->, B</>, B<*>,"
474 msgstr ""
475
476 #. type: Plain text
477 #: archlinux debian-unstable fedora-44 fedora-rawhide
478 msgid "the ternary operator B<?\\& :>"
479 msgstr ""
480
481 #. type: Plain text
482 #: archlinux debian-unstable fedora-44 fedora-rawhide
483 msgid "parentheses"
484 msgstr ""
485
486 #. type: Plain text
487 #: archlinux debian-unstable fedora-44 fedora-rawhide
488 msgid ""
489 "For example, B<%[ 3 + 4 * (1 + %two) ]> will expand to B<15> if B<%two> "
490 "expands to B<2>.\\& Version terms are compared using RPM version "
491 "([I<epoch>:]I<version>[-I<release>]) comparison algorithm, rather than "
492 "regular string comparison.\\&"
493 msgstr ""
494
495 #. type: Plain text
496 #: archlinux debian-unstable fedora-44 fedora-rawhide
497 msgid ""
498 "Note that the B<%[>I<EXPRESSION>B<]> expansion is different to the B<%"
499 "{expr:>I<EXPRESSION>B<}> macro.\\& With the latter, the macros in the "
500 "expression are expanded first and then the expression is evaluated (without "
501 "re-expanding the terms).\\& Thus"
502 msgstr ""
503
504 #. type: Plain text
505 #: archlinux debian-unstable fedora-44 fedora-rawhide
506 #, no-wrap
507 msgid "rpm --define \\&'foo 1 + 2\\&' --eval \\&'%{expr:%foo}\\&'\n"
508 msgstr ""
509
510 #. type: Plain text
511 #: archlinux debian-unstable fedora-44 fedora-rawhide
512 msgid ""
513 "will print B<3>.\\& Using B<%[%foo]> instead will result in the error that "
514 "\"1 + 2\" is not a number.\\&"
515 msgstr ""
516
517 #. type: Plain text
518 #: archlinux debian-unstable fedora-44 fedora-rawhide
519 msgid ""
520 "Doing the macro expansion when evaluating the terms has two advantages.\\& "
521 "First, it allows RPM to do correct short-circuit processing when evaluating "
522 "logical operators.\\& Second, the expansion result does not influence the "
523 "expression parsing, e.\\&g.\\& B<%[\"%file\"]> will even work if the "
524 "B<%file> macro expands to a string that contains a double quote.\\&"
525 msgstr ""
526
527 #. type: Plain text
528 #: archlinux debian-unstable fedora-44 fedora-rawhide
529 msgid "Added: 4.\\&16.\\&0"
530 msgstr ""
531
532 #. type: SS
533 #: archlinux debian-unstable fedora-44 fedora-rawhide
534 #, no-wrap
535 msgid "Lua expansion"
536 msgstr ""
537
538 #. type: Plain text
539 #: archlinux debian-unstable fedora-44 fedora-rawhide
540 msgid ""
541 "The most powerful of the macro expansion methods is using RPM'\\&s embedded "
542 "Lua interpreter:"
543 msgstr ""
544
545 #. type: Plain text
546 #: archlinux debian-unstable fedora-44 fedora-rawhide
547 msgid ""
548 "Execute I<LUA-CODE> using RPM'\\&s embedded Lua interpreter, expanding to "
549 "the code'\\&s B<print()>'\\&ed output.\\&"
550 msgstr ""
551
552 #. type: Plain text
553 #: archlinux debian-unstable fedora-44 fedora-rawhide
554 msgid "See B<rpm-lua>(7) for the details.\\&"
555 msgstr ""
556
557 #. type: SH
558 #: archlinux debian-unstable fedora-44 fedora-rawhide
559 #, no-wrap
560 msgid "PARAMETRIC MACROS"
561 msgstr ""
562
563 #. type: Plain text
564 #: archlinux debian-unstable fedora-44 fedora-rawhide
565 msgid ""
566 "Parametric macros are a powerful mechanism that allows building function-"
567 "like utility macros with option processing and accepting a variable number "
568 "of arguments, much like common shell tools.\\&"
569 msgstr ""
570
571 #. type: Plain text
572 #: archlinux debian-unstable fedora-44 fedora-rawhide
573 msgid "The syntax for defining parametric macros is:"
574 msgstr ""
575
576 #. type: Plain text
577 #: archlinux debian-unstable fedora-44 fedora-rawhide
578 msgid "I<NAME>([I<OPTIONS>]) I<BODY>"
579 msgstr ""
580
581 #. type: Plain text
582 #: archlinux debian-unstable fedora-44 fedora-rawhide
583 msgid ""
584 "If present, the I<OPTIONS> (i.\\&e.\\& the string between parentheses) are "
585 "passed exactly as is to B<getopt>(3) for argc/argv processing at the "
586 "beginning of a macro invocation.\\& Only short options are supported.\\&"
587 msgstr ""
588
589 #. type: Plain text
590 #: archlinux debian-unstable fedora-44 fedora-rawhide
591 msgid ""
592 "B<-> as the sole I<OPTIONS> field disables RPM'\\&s option processing.\\& "
593 "This allows macros to fully decide how to handle their input, e.\\&g.\\& if "
594 "the arguments of the macro only/mostly consist of items starting with B<->, "
595 "the default processing only gets in the way.\\&"
596 msgstr ""
597
598 #. type: SS
599 #: archlinux debian-unstable fedora-44 fedora-rawhide
600 #, no-wrap
601 msgid "Automatic macros"
602 msgstr ""
603
604 #. type: Plain text
605 #: archlinux debian-unstable fedora-44 fedora-rawhide
606 msgid ""
607 "While a parameterized macro is being expanded, the following shell-like "
608 "automatic macros are available:"
609 msgstr ""
610
611 #. type: tbl table
612 #: archlinux debian-unstable fedora-44 fedora-rawhide
613 #, no-wrap
614 msgid "B<Macro>"
615 msgstr ""
616
617 #. type: tbl table
618 #: archlinux debian-unstable fedora-44 fedora-rawhide
619 #, no-wrap
620 msgid "B<Description>"
621 msgstr ""
622
623 #. type: tbl table
624 #: archlinux debian-unstable fedora-44 fedora-rawhide
625 #, no-wrap
626 msgid "B<%0>"
627 msgstr ""
628
629 #. type: tbl table
630 #: archlinux debian-unstable fedora-44 fedora-rawhide
631 #, no-wrap
632 msgid "the name of the macro being invoked"
633 msgstr ""
634
635 #. type: tbl table
636 #: archlinux debian-unstable fedora-44 fedora-rawhide
637 #, no-wrap
638 msgid "B<%*>"
639 msgstr ""
640
641 #. type: tbl table
642 #: archlinux debian-unstable fedora-44 fedora-rawhide
643 #, no-wrap
644 msgid "all arguments (unlike shell, not including any processed flags)"
645 msgstr ""
646
647 #. type: tbl table
648 #: archlinux debian-unstable fedora-44 fedora-rawhide
649 #, no-wrap
650 msgid "B<%**>"
651 msgstr ""
652
653 #. type: tbl table
654 #: archlinux debian-unstable fedora-44 fedora-rawhide
655 #, no-wrap
656 msgid "all arguments (including any processed flags)"
657 msgstr ""
658
659 #. type: tbl table
660 #: archlinux debian-unstable fedora-44 fedora-rawhide
661 #, no-wrap
662 msgid "B<%#>"
663 msgstr ""
664
665 #. type: tbl table
666 #: archlinux debian-unstable fedora-44 fedora-rawhide
667 #, no-wrap
668 msgid "the number of arguments"
669 msgstr ""
670
671 #. type: tbl table
672 #: archlinux debian-unstable fedora-44 fedora-rawhide
673 #, no-wrap
674 msgid "B<%{-f}>"
675 msgstr ""
676
677 #. type: tbl table
678 #: archlinux debian-unstable fedora-44 fedora-rawhide
679 #, no-wrap
680 msgid "if present at invocation, the last occurrence of flag B<f> (flag and argument)"
681 msgstr ""
682
683 #. type: tbl table
684 #: archlinux debian-unstable fedora-44 fedora-rawhide
685 #, no-wrap
686 msgid "B<%{-f*}>"
687 msgstr ""
688
689 #. type: tbl table
690 #: archlinux debian-unstable fedora-44 fedora-rawhide
691 #, no-wrap
692 msgid "if present at invocation, the argument to the last occurrence of flag B<f>"
693 msgstr ""
694
695 #. type: tbl table
696 #: archlinux debian-unstable fedora-44 fedora-rawhide
697 #, no-wrap
698 msgid "B<%1>, B<%2>, .\\&.\\&.\\&"
699 msgstr ""
700
701 #. type: tbl table
702 #: archlinux debian-unstable fedora-44 fedora-rawhide
703 #, no-wrap
704 msgid "the arguments themselves (after B<getopt>(3) processing)"
705 msgstr ""
706
707 #. type: Plain text
708 #: archlinux debian-unstable fedora-44 fedora-rawhide
709 msgid ""
710 "If the built-in option processing was disabled with B<-> as the I<OPTIONS> "
711 "field, only the following automatic macros are available:"
712 msgstr ""
713
714 #. type: tbl table
715 #: archlinux debian-unstable fedora-44 fedora-rawhide
716 #, no-wrap
717 msgid "B<%*>, B<%**>"
718 msgstr ""
719
720 #. type: tbl table
721 #: archlinux debian-unstable fedora-44 fedora-rawhide
722 #, no-wrap
723 msgid "all arguments"
724 msgstr ""
725
726 #. type: tbl table
727 #: archlinux debian-unstable fedora-44 fedora-rawhide
728 #, no-wrap
729 msgid " the number of arguments"
730 msgstr ""
731
732 #. type: tbl table
733 #: archlinux debian-unstable fedora-44 fedora-rawhide
734 #, no-wrap
735 msgid "the arguments themselves"
736 msgstr ""
737
738 #. type: Plain text
739 #: archlinux debian-unstable fedora-44 fedora-rawhide
740 msgid ""
741 "Automatic macros are automatically defined and undefined on parametric macro "
742 "entry and exit.\\&"
743 msgstr ""
744
745 #. type: SS
746 #: archlinux debian-unstable fedora-44 fedora-rawhide
747 #, no-wrap
748 msgid "Accessing options"
749 msgstr ""
750
751 #. type: Plain text
752 #: archlinux debian-unstable fedora-44 fedora-rawhide
753 msgid ""
754 "Within the body of a parametric macro, there are several constructs that "
755 "permit testing for the presence of optional parameters.\\& The simplest "
756 "construct is B<%{-f}> which expands (literally) to B<-f> if B<-f> was "
757 "mentioned when the macro was invoked.\\& There are also provisions for "
758 "including text if a flag was present using B<%{-f:X}>.\\& This macro expands "
759 "to (the expansion of) B<X> if the flag was present.\\& The negative form, B<%"
760 "{!\\&-f:Y}>, expanding to (the expansion of)B< Y> if B<-f> was B<not> "
761 "present, is also supported.\\&"
762 msgstr ""
763
764 #. type: SS
765 #: archlinux debian-unstable fedora-44 fedora-rawhide
766 #, no-wrap
767 msgid "Scope and visibility"
768 msgstr ""
769
770 #. type: Plain text
771 #: archlinux debian-unstable fedora-44 fedora-rawhide
772 msgid ""
773 "In general, macros have a global scope, regardless of where and how they "
774 "were defined.\\& However, macros defined inside parametric macros have non-"
775 "global scope as follows:"
776 msgstr ""
777
778 #. type: Plain text
779 #: archlinux debian-unstable fedora-44 fedora-rawhide
780 msgid ""
781 "automatic macros have local scope, ie.\\& are only visible on the call-level "
782 "of the macro itself"
783 msgstr ""
784
785 #. type: Plain text
786 #: archlinux debian-unstable fedora-44 fedora-rawhide
787 msgid ""
788 "user-defined local macros have nested scope, ie.\\& are visible on the call-"
789 "level of the macro itself and deeper"
790 msgstr ""
791
792 #. type: Plain text
793 #: archlinux debian-unstable fedora-44 fedora-rawhide
794 msgid ""
795 "That is, a parametric macro cannot see the options or arguments of another "
796 "one, but a user-defined local macro in a calling macro can be accessed in "
797 "the callee(s).\\&"
798 msgstr ""
799
800 #. type: Plain text
801 #: archlinux debian-unstable fedora-44 fedora-rawhide
802 msgid ""
803 "To define a global macro inside a parametric macro, you I<must> use "
804 "B<%global> instead of B<%define>.\\& Also note that because such a macro may "
805 "be referring to other macros only visible in the current scope, B<%global> "
806 "I<expands the macro body once at the time of definition>.\\&"
807 msgstr ""
808
809 #. type: SS
810 #: archlinux debian-unstable fedora-44 fedora-rawhide
811 #, no-wrap
812 msgid "Calling convention"
813 msgstr ""
814
815 #. type: Plain text
816 #: archlinux debian-unstable fedora-44 fedora-rawhide
817 msgid ""
818 "When a parametric macro is expanded, the following calling convention is "
819 "used:"
820 msgstr ""
821
822 #. type: IP
823 #: archlinux debian-unstable fedora-44 fedora-rawhide
824 #, no-wrap
825 msgid "1."
826 msgstr ""
827
828 #. type: Plain text
829 #: archlinux debian-unstable fedora-44 fedora-rawhide
830 msgid "any arguments to the macro are expanded on the call-level of the callee"
831 msgstr ""
832
833 #. type: IP
834 #: archlinux debian-unstable fedora-44 fedora-rawhide
835 #, no-wrap
836 msgid "2."
837 msgstr ""
838
839 #. type: Plain text
840 #: archlinux debian-unstable fedora-44 fedora-rawhide
841 msgid "any options to the macro are processed"
842 msgstr ""
843
844 #. type: IP
845 #: archlinux debian-unstable fedora-44 fedora-rawhide
846 #, no-wrap
847 msgid "3."
848 msgstr ""
849
850 #. type: Plain text
851 #: archlinux debian-unstable fedora-44 fedora-rawhide
852 msgid "automatic macros are set up for the options and the arguments"
853 msgstr ""
854
855 #. type: IP
856 #: archlinux debian-unstable fedora-44 fedora-rawhide
857 #, no-wrap
858 msgid "4."
859 msgstr ""
860
861 #. type: Plain text
862 #: archlinux debian-unstable fedora-44 fedora-rawhide
863 msgid "the macro body is recursively expanded"
864 msgstr ""
865
866 #. type: IP
867 #: archlinux debian-unstable fedora-44 fedora-rawhide
868 #, no-wrap
869 msgid "5."
870 msgstr ""
871
872 #. type: Plain text
873 #: archlinux debian-unstable fedora-44 fedora-rawhide
874 msgid "all macros defined on this call-level are discarded"
875 msgstr ""
876
877 #. type: SH
878 #: archlinux debian-unstable fedora-44 fedora-rawhide
879 #, no-wrap
880 msgid "BUILT-IN MACROS"
881 msgstr ""
882
883 #. type: Plain text
884 #: archlinux debian-unstable fedora-44 fedora-rawhide
885 msgid ""
886 "RPM supports the following built-in macros for various operations.\\& Built-"
887 "in macros cannot be undefined or overridden.\\&"
888 msgstr ""
889
890 #. type: Plain text
891 #: archlinux debian-unstable fedora-44 fedora-rawhide
892 msgid ""
893 "Note: The B<%{name:arg}> style is used here as it'\\&s the most backwards "
894 "compatible and does not require quoting for whitespace, but it can generally "
895 "be replaced with the other expansion forms too.\\& Built-ins taking multiple "
896 "arguments must use other styles, as indicated below.\\&"
897 msgstr ""
898
899 #. type: SS
900 #: archlinux debian-unstable fedora-44 fedora-rawhide
901 #, no-wrap
902 msgid "Macro manipulation"
903 msgstr ""
904
905 #. type: Plain text
906 #: archlinux debian-unstable fedora-44 fedora-rawhide
907 msgid ""
908 "The macro primitives are used for macro manipulation in spec files and other "
909 "macros.\\& Note that all these operate on the macro name I<without> the "
910 "preceding B<%>-character.\\&"
911 msgstr ""
912
913 #. type: Plain text
914 #: archlinux debian-unstable fedora-44 fedora-rawhide
915 msgid "B<%define> I<NAME>[([I<OPTIONS>])] I<BODY>"
916 msgstr ""
917
918 #. type: Plain text
919 #: archlinux debian-unstable fedora-44 fedora-rawhide
920 msgid ""
921 "This is the primary way to define macros.\\& A B<%define> is always fully "
922 "declarative: no macro expansion takes place, and it has no side-effects.\\& "
923 "Macros defined with it are in global scope, unless the definition occurs "
924 "inside a parametric macro.\\&"
925 msgstr ""
926
927 #. type: Plain text
928 #: archlinux debian-unstable fedora-44 fedora-rawhide
929 #, no-wrap
930 msgid "%define mypath /usr/bin/mine\n"
931 msgstr ""
932
933 #. type: Plain text
934 #: archlinux debian-unstable fedora-44 fedora-rawhide
935 msgid "B<%global> I<NAME>[([I<OPTIONS>])] I<BODY>"
936 msgstr ""
937
938 #. type: Plain text
939 #: archlinux debian-unstable fedora-44 fedora-rawhide
940 msgid ""
941 "The B<%global> primitive is identical in syntax to B<%define>, but has two "
942 "critically important behavioral differences: as it'\\&s name suggests, a "
943 "macro defined with B<%global> always has a global scope regardless of where "
944 "it'\\&s used.\\&"
945 msgstr ""
946
947 #. type: Plain text
948 #: archlinux debian-unstable fedora-44 fedora-rawhide
949 msgid ""
950 "The second difference is that the I<BODY> is expanded once at the time of "
951 "definition and the expansion becomes the actual macro body.\\& Thus, "
952 "arbitrary code execution and side-effects may occur when B<%global> is used, "
953 "depending on the contents and the other macros used in I<BODY>.\\& The "
954 "latter can be handy for avoiding redundant, possibly expensive macro "
955 "expansions if the value does not change, but be aware of the side-effects.\\&"
956 msgstr ""
957
958 #. type: Plain text
959 #: archlinux debian-unstable fedora-44 fedora-rawhide
960 msgid ""
961 "Note that while B<%global> technically accepts an I<OPTIONS> field, it is "
962 "ill-suited for defining parametric macros because of the I<BODY> expansion "
963 "behavior.\\&"
964 msgstr ""
965
966 #. type: Plain text
967 #: archlinux debian-unstable fedora-44 fedora-rawhide
968 #, no-wrap
969 msgid "%global snapver 0-0\\&.48\\&.20240616git\n"
970 msgstr ""
971
972 #. type: Plain text
973 #: archlinux debian-unstable fedora-44 fedora-rawhide
974 msgid "B<%undefine> I<NAME>"
975 msgstr ""
976
977 #. type: Plain text
978 #: archlinux debian-unstable fedora-44 fedora-rawhide
979 msgid ""
980 "Note that B<%undefine> only pops a macro definition from the stack, so using "
981 "it does I<not> guarantee that I<NAME> is undefined after calling "
982 "B<%undefine> on it.\\& Automatic macros and built-in macros cannot be "
983 "undefined.\\&"
984 msgstr ""
985
986 #. type: Plain text
987 #: archlinux debian-unstable fedora-44 fedora-rawhide
988 #, no-wrap
989 msgid "%undefine mypath\n"
990 msgstr ""
991
992 #. type: Plain text
993 #: archlinux debian-unstable fedora-44 fedora-rawhide
994 msgid "B<%{load:>I<FILE>B<}>"
995 msgstr ""
996
997 #. type: Plain text
998 #: archlinux debian-unstable fedora-44 fedora-rawhide
999 msgid "Load an B<rpm-macrofile>(5) file.\\& (Added: 4.\\&12.\\&0)"
1000 msgstr ""
1001
1002 #. type: Plain text
1003 #: archlinux debian-unstable fedora-44 fedora-rawhide
1004 #, no-wrap
1005 msgid "%{load:/some/dir/macros\\&.foo}\n"
1006 msgstr ""
1007
1008 #. type: SS
1009 #: archlinux debian-unstable fedora-44 fedora-rawhide
1010 #, no-wrap
1011 msgid "Macro expansion"
1012 msgstr ""
1013
1014 #. type: Plain text
1015 #: archlinux debian-unstable fedora-44 fedora-rawhide
1016 msgid "B<%{expand:>I<BODY>B<}>"
1017 msgstr ""
1018
1019 #. type: Plain text
1020 #: archlinux debian-unstable fedora-44 fedora-rawhide
1021 msgid ""
1022 "Expand I<BODY> as if it were a macro body.\\& Useful for increased "
1023 "indirection, such as to expand a macro name constructed from two or more "
1024 "macros.\\&"
1025 msgstr ""
1026
1027 #. type: Plain text
1028 #: archlinux debian-unstable fedora-44 fedora-rawhide
1029 #, no-wrap
1030 msgid "%{expand:%{foo_prefix}%{foo_suffix}}\n"
1031 msgstr ""
1032
1033 #. type: Plain text
1034 #: archlinux debian-unstable fedora-44 fedora-rawhide
1035 msgid "B<%{expr:>I<EXPRESSION>}"
1036 msgstr ""
1037
1038 #. type: Plain text
1039 #: archlinux debian-unstable fedora-44 fedora-rawhide
1040 msgid ""
1041 "Expand I<EXPRESSION>.\\& See B<Expression expansion>.\\& (Added: "
1042 "4.\\&15.\\&0)"
1043 msgstr ""
1044
1045 #. type: Plain text
1046 #: archlinux debian-unstable fedora-44 fedora-rawhide
1047 #, no-wrap
1048 msgid "%{expr:5*1024}\n"
1049 msgstr ""
1050
1051 #. type: Plain text
1052 #: archlinux debian-unstable fedora-44 fedora-rawhide
1053 msgid ""
1054 "Expand to output of I<LUA-CODE> using the embedded Lua interpreter.\\& See "
1055 "B<Lua expansion>.\\&"
1056 msgstr ""
1057
1058 #. type: Plain text
1059 #: archlinux debian-unstable fedora-44 fedora-rawhide
1060 #, no-wrap
1061 msgid "%{lua:for i=65,90 do print(string\\&.char(i)) end}\n"
1062 msgstr ""
1063
1064 #. type: Plain text
1065 #: archlinux debian-unstable fedora-44 fedora-rawhide
1066 msgid "B<%{macrobody:>I<NAME>B<}>"
1067 msgstr ""
1068
1069 #. type: Plain text
1070 #: archlinux debian-unstable fedora-44 fedora-rawhide
1071 msgid ""
1072 "Expand to the literal body of the macro I<NAME>.\\& (Added: 4.\\&16.\\&0)"
1073 msgstr ""
1074
1075 #. type: Plain text
1076 #: archlinux debian-unstable fedora-44 fedora-rawhide
1077 #, no-wrap
1078 msgid "%{macrobody:_libdir}\n"
1079 msgstr ""
1080
1081 #. type: SS
1082 #: archlinux debian-unstable fedora-44 fedora-rawhide
1083 #, no-wrap
1084 msgid "String operations"
1085 msgstr ""
1086
1087 #. type: Plain text
1088 #: archlinux debian-unstable fedora-44 fedora-rawhide
1089 msgid "B<%dnl>"
1090 msgstr ""
1091
1092 #. type: Plain text
1093 #: archlinux debian-unstable fedora-44 fedora-rawhide
1094 msgid ""
1095 "Discard to next line (without expanding anything).\\& B<%dnl> is the "
1096 "recommended way to comment out things in spec files because it works "
1097 "everywhere and disables macro processing for that line.\\& (Added: "
1098 "4.\\&15.\\&0)"
1099 msgstr ""
1100
1101 #. type: Plain text
1102 #: archlinux debian-unstable fedora-44 fedora-rawhide
1103 #, no-wrap
1104 msgid "%dnl This is a comment on %{mymacro} behavior\n"
1105 msgstr ""
1106
1107 #. type: Plain text
1108 #: archlinux debian-unstable fedora-44 fedora-rawhide
1109 msgid "B<%{gsub >I<STRING>, I<PATTERN>, I<REPL> [,I<N>]B<}>"
1110 msgstr ""
1111
1112 #. type: Plain text
1113 #: archlinux debian-unstable fedora-44 fedora-rawhide
1114 msgid ""
1115 "Replace all (or I<N> first if given) occurrences of I<PATTERN> in I<STRING> "
1116 "by I<REPL>.\\&"
1117 msgstr ""
1118
1119 #. type: Plain text
1120 #: archlinux debian-unstable fedora-44 fedora-rawhide
1121 msgid "Added: 4.\\&19.\\&0"
1122 msgstr ""
1123
1124 #. type: Plain text
1125 #: archlinux debian-unstable fedora-44 fedora-rawhide
1126 #, no-wrap
1127 msgid "%{gsub aabbaacc aa dd 1}\n"
1128 msgstr ""
1129
1130 #. type: Plain text
1131 #: archlinux debian-unstable fedora-44 fedora-rawhide
1132 msgid "B<%{len:>I<STRING>B<}>"
1133 msgstr ""
1134
1135 #. type: Plain text
1136 #: archlinux debian-unstable fedora-44 fedora-rawhide
1137 msgid "Expand to length of I<STRING>.\\& (Added: 4.\\&19.\\&0)"
1138 msgstr ""
1139
1140 #. type: Plain text
1141 #: archlinux debian-unstable fedora-44 fedora-rawhide
1142 #, no-wrap
1143 msgid "%{len:9bf7da058a7c582878310e75be3d56a5a8b67f95}\n"
1144 msgstr ""
1145
1146 #. type: Plain text
1147 #: archlinux debian-unstable fedora-44 fedora-rawhide
1148 msgid "B<%{lower:>I<STRING>B<}>"
1149 msgstr ""
1150
1151 #. type: Plain text
1152 #: archlinux debian-unstable fedora-44 fedora-rawhide
1153 msgid "Expand to lowercase I<STRING>.\\& (Added: 4.\\&19.\\&0)"
1154 msgstr ""
1155
1156 #. type: Plain text
1157 #: archlinux debian-unstable fedora-44 fedora-rawhide
1158 #, no-wrap
1159 msgid "%{lower:CamelCase}\\&'\n"
1160 msgstr ""
1161
1162 #. type: Plain text
1163 #: archlinux debian-unstable fedora-44 fedora-rawhide
1164 msgid "B<%{quote:>I<STRING>B<}>"
1165 msgstr ""
1166
1167 #. type: Plain text
1168 #: archlinux debian-unstable fedora-44 fedora-rawhide
1169 msgid ""
1170 "Quote arguments for passing empty strings and strings with embedded "
1171 "whitespace as parametric macro arguments.\\& (Added: 4.\\&14.\\&0)"
1172 msgstr ""
1173
1174 #. type: Plain text
1175 #: archlinux debian-unstable fedora-44 fedora-rawhide
1176 #, no-wrap
1177 msgid "%myzip -x %{quote:empty spaces\\&.zip}\n"
1178 msgstr ""
1179
1180 #. type: Plain text
1181 #: archlinux debian-unstable fedora-44 fedora-rawhide
1182 msgid "B<%{rep >I<STRING>, I<N> [,I<SEP>]B<}>"
1183 msgstr ""
1184
1185 #. type: Plain text
1186 #: archlinux debian-unstable fedora-44 fedora-rawhide
1187 msgid ""
1188 "Expand to a string that is the concatenation of I<N> copies of I<STRING>, "
1189 "separated by I<SEP> (if specified).\\&"
1190 msgstr ""
1191
1192 #. type: Plain text
1193 #: archlinux debian-unstable fedora-44 fedora-rawhide
1194 #, no-wrap
1195 msgid "%{rep a 5}\n"
1196 msgstr ""
1197
1198 #. type: Plain text
1199 #: archlinux debian-unstable fedora-44 fedora-rawhide
1200 msgid "B<%{reverse:>I<STRING>B<}>"
1201 msgstr ""
1202
1203 #. type: Plain text
1204 #: archlinux debian-unstable fedora-44 fedora-rawhide
1205 msgid "Reverse a string.\\& (Added: 4.\\&19.\\&0)"
1206 msgstr ""
1207
1208 #. type: Plain text
1209 #: archlinux debian-unstable fedora-44 fedora-rawhide
1210 #, no-wrap
1211 msgid "%{reverse:tac}\n"
1212 msgstr ""
1213
1214 #. type: Plain text
1215 #: archlinux debian-unstable fedora-44 fedora-rawhide
1216 msgid "B<%{shescape:>I<STRING>B<}>"
1217 msgstr ""
1218
1219 #. type: Plain text
1220 #: archlinux debian-unstable fedora-44 fedora-rawhide
1221 msgid ""
1222 "Single quote I<STRING> with escapes for use in shell.\\& (Added: "
1223 "4.\\&18.\\&0)"
1224 msgstr ""
1225
1226 #. type: Plain text
1227 #: archlinux debian-unstable fedora-44 fedora-rawhide
1228 #, no-wrap
1229 msgid "%{shescape:foo\\&'s}\n"
1230 msgstr ""
1231
1232 #. type: Plain text
1233 #: archlinux debian-unstable fedora-44 fedora-rawhide
1234 msgid "B<%{shrink:>I<STRING>B<}>"
1235 msgstr ""
1236
1237 #. type: Plain text
1238 #: archlinux debian-unstable fedora-44 fedora-rawhide
1239 msgid ""
1240 "Trim leading and trailing whitespace from I<STRING>, reduce intermediate "
1241 "whitespace to a single space.\\& (Added: 4.\\&14.\\&0)"
1242 msgstr ""
1243
1244 #. type: Plain text
1245 #: archlinux debian-unstable fedora-44 fedora-rawhide
1246 #, no-wrap
1247 msgid "%{shrink:aa bb ccc }\n"
1248 msgstr ""
1249
1250 #. type: Plain text
1251 #: archlinux debian-unstable fedora-44 fedora-rawhide
1252 msgid "B<%{span:>I<STRING>B<}>"
1253 msgstr ""
1254
1255 #. type: Plain text
1256 #: archlinux debian-unstable fedora-44 fedora-rawhide
1257 msgid ""
1258 "As-is string, handy for wrapping multiline macros.\\& (Added: 6.\\&0.\\&0)"
1259 msgstr ""
1260
1261 #. type: Plain text
1262 #: archlinux debian-unstable fedora-44 fedora-rawhide
1263 #, no-wrap
1264 msgid ""
1265 "%{span:\n"
1266 "\t%one thing\n"
1267 "\t%another thing\n"
1268 "}\n"
1269 msgstr ""
1270
1271 #. type: Plain text
1272 #: archlinux debian-unstable fedora-44 fedora-rawhide
1273 msgid "B<%{sub >I<STRING>, I<I>, [,I<J>]B<}>"
1274 msgstr ""
1275
1276 #. type: Plain text
1277 #: archlinux debian-unstable fedora-44 fedora-rawhide
1278 msgid ""
1279 "Expand to substring of I<STRING> that starts at B<I> and continues until "
1280 "B<J>.\\& B<I> and B<J> can be negative to index from the string'\\&s end.\\& "
1281 "If B<J> is absent, then it is assumed to be equal to B<-1> (ie.\\& string "
1282 "end).\\&"
1283 msgstr ""
1284
1285 #. type: Plain text
1286 #: archlinux debian-unstable fedora-44 fedora-rawhide
1287 #, no-wrap
1288 msgid "*%{sub myfile\\&.zip 3 6}*\n"
1289 msgstr ""
1290
1291 #. type: Plain text
1292 #: archlinux debian-unstable fedora-44 fedora-rawhide
1293 msgid "B<%{upper:>I<STRING>B<}>"
1294 msgstr ""
1295
1296 #. type: Plain text
1297 #: archlinux debian-unstable fedora-44 fedora-rawhide
1298 msgid "Expand to uppercase I<STRING>.\\& (Added: 4.\\&19.\\&0)"
1299 msgstr ""
1300
1301 #. type: Plain text
1302 #: archlinux debian-unstable fedora-44 fedora-rawhide
1303 #, no-wrap
1304 msgid "%{upper:CamelCase}\\&'\n"
1305 msgstr ""
1306
1307 #. type: SS
1308 #: archlinux debian-unstable fedora-44 fedora-rawhide
1309 #, no-wrap
1310 msgid "File and path operations"
1311 msgstr ""
1312
1313 #. type: Plain text
1314 #: archlinux debian-unstable fedora-44 fedora-rawhide
1315 msgid "B<%{basename:>I<PATH>B<}>"
1316 msgstr ""
1317
1318 #. type: Plain text
1319 #: archlinux debian-unstable fedora-44 fedora-rawhide
1320 msgid "B<basename>(1) macro analogue.\\&"
1321 msgstr ""
1322
1323 #. type: Plain text
1324 #: archlinux debian-unstable fedora-44 fedora-rawhide
1325 #, no-wrap
1326 msgid "%{basename:/some/dir/file\\&.suf}\n"
1327 msgstr ""
1328
1329 #. type: Plain text
1330 #: archlinux debian-unstable fedora-44 fedora-rawhide
1331 msgid "B<%{dirname:>I<PATH>B<}>"
1332 msgstr ""
1333
1334 #. type: Plain text
1335 #: archlinux debian-unstable fedora-44 fedora-rawhide
1336 msgid "B<dirname>(1) macro analogue.\\&"
1337 msgstr ""
1338
1339 #. type: Plain text
1340 #: archlinux debian-unstable fedora-44 fedora-rawhide
1341 #, no-wrap
1342 msgid "%{dirname:/some/dir/file\\&.suf}\n"
1343 msgstr ""
1344
1345 #. type: Plain text
1346 #: archlinux debian-unstable fedora-44 fedora-rawhide
1347 msgid "B<%{exists:>I<PATH>B<}>"
1348 msgstr ""
1349
1350 #. type: Plain text
1351 #: archlinux debian-unstable fedora-44 fedora-rawhide
1352 msgid "Test file existence, expands to 1/0.\\& (Added: 4.\\&18.\\&0)"
1353 msgstr ""
1354
1355 #. type: Plain text
1356 #: archlinux debian-unstable fedora-44 fedora-rawhide
1357 #, no-wrap
1358 msgid "%{exists:%{builddir}/myflag\\&.txt}\n"
1359 msgstr ""
1360
1361 #. type: Plain text
1362 #: archlinux debian-unstable fedora-44 fedora-rawhide
1363 msgid "B<%{suffix:>I<PATH>B<}>"
1364 msgstr ""
1365
1366 #. type: Plain text
1367 #: archlinux debian-unstable fedora-44 fedora-rawhide
1368 msgid "Expand to suffix part of a filename.\\&"
1369 msgstr ""
1370
1371 #. type: Plain text
1372 #: archlinux debian-unstable fedora-44 fedora-rawhide
1373 #, no-wrap
1374 msgid "%{suffix:myfile\\&.zip}\n"
1375 msgstr ""
1376
1377 #. type: Plain text
1378 #: archlinux debian-unstable fedora-44 fedora-rawhide
1379 msgid "B<%{url2path:>I<URL>B<}>"
1380 msgstr ""
1381
1382 #. type: Plain text
1383 #: archlinux debian-unstable fedora-44 fedora-rawhide
1384 msgid "Convert url to a local path.\\&"
1385 msgstr ""
1386
1387 #. type: Plain text
1388 #: archlinux debian-unstable fedora-44 fedora-rawhide
1389 #, no-wrap
1390 msgid "%{url2path:http://rpm\\&.org/not/there}\n"
1391 msgstr ""
1392
1393 #. type: Plain text
1394 #: archlinux debian-unstable fedora-44 fedora-rawhide
1395 msgid "B<%{uncompress:>I<PATH>B<}>"
1396 msgstr ""
1397
1398 #. type: Plain text
1399 #: archlinux debian-unstable fedora-44 fedora-rawhide
1400 msgid ""
1401 "Expand to a command for outputting argument I<PATH> to standard output, "
1402 "uncompressing as needed.\\&"
1403 msgstr ""
1404
1405 #. type: Plain text
1406 #: archlinux debian-unstable fedora-44 fedora-rawhide
1407 #, no-wrap
1408 msgid "%{uncompress /my/source\\&.tar\\&.gz}\n"
1409 msgstr ""
1410
1411 #. type: Plain text
1412 #: archlinux debian-unstable fedora-44 fedora-rawhide
1413 msgid "B<%{xdg:>I<KIND>B<}>"
1414 msgstr ""
1415
1416 #. type: Plain text
1417 #: archlinux debian-unstable fedora-44 fedora-rawhide
1418 msgid ""
1419 "Expand to XDG base directory paths.\\& Supported values for I<KIND> are:"
1420 msgstr ""
1421
1422 #. type: Plain text
1423 #: archlinux debian-unstable fedora-44 fedora-rawhide
1424 msgid "B<cache>: user-specific non-essential (cached) data"
1425 msgstr ""
1426
1427 #. type: Plain text
1428 #: archlinux debian-unstable fedora-44 fedora-rawhide
1429 msgid "B<config>: user-specific configuration files"
1430 msgstr ""
1431
1432 #. type: Plain text
1433 #: archlinux debian-unstable fedora-44 fedora-rawhide
1434 msgid "B<data>: user-specific data files"
1435 msgstr ""
1436
1437 #. type: Plain text
1438 #: archlinux debian-unstable fedora-44 fedora-rawhide
1439 msgid "B<state>: user-specific state data"
1440 msgstr ""
1441
1442 #. type: Plain text
1443 #: archlinux debian-unstable fedora-44 fedora-rawhide
1444 msgid "Added: 6.\\&0.\\&0"
1445 msgstr ""
1446
1447 #. type: Plain text
1448 #: archlinux debian-unstable fedora-44 fedora-rawhide
1449 #, no-wrap
1450 msgid "%{xdg config}\n"
1451 msgstr ""
1452
1453 #. type: SS
1454 #: archlinux debian-unstable fedora-44 fedora-rawhide
1455 #, no-wrap
1456 msgid "Environment info"
1457 msgstr ""
1458
1459 #. type: Plain text
1460 #: archlinux debian-unstable fedora-44 fedora-rawhide
1461 msgid "B<%getncpus>"
1462 msgstr ""
1463
1464 #. type: Plain text
1465 #: archlinux debian-unstable fedora-44 fedora-rawhide
1466 msgid "Expand to the number of available CPUs.\\& (Added: 4.\\&15.\\&0)"
1467 msgstr ""
1468
1469 #. type: Plain text
1470 #: archlinux debian-unstable fedora-44 fedora-rawhide
1471 msgid "B<%{getncpus:>I<KIND>B<}>"
1472 msgstr ""
1473
1474 #. type: Plain text
1475 #: archlinux debian-unstable fedora-44 fedora-rawhide
1476 msgid ""
1477 "Expand to the number of available CPUs, supported valued for I<KIND> are"
1478 msgstr ""
1479
1480 #. type: Plain text
1481 #: archlinux debian-unstable fedora-44 fedora-rawhide
1482 msgid "B<total>: total number of available CPUs (same as B<%getncpus>)"
1483 msgstr ""
1484
1485 #. type: Plain text
1486 #: archlinux debian-unstable fedora-44 fedora-rawhide
1487 msgid "B<proc>: number of available CPUs for processes"
1488 msgstr ""
1489
1490 #. type: Plain text
1491 #: archlinux debian-unstable fedora-44 fedora-rawhide
1492 msgid "B<thread>: number of available CPUs for threads"
1493 msgstr ""
1494
1495 #. type: Plain text
1496 #: archlinux debian-unstable fedora-44 fedora-rawhide
1497 msgid ""
1498 "B<proc> and B<thread> account for available memory, including address space "
1499 "limitations for threads.\\&"
1500 msgstr ""
1501
1502 #. type: Plain text
1503 #: archlinux debian-unstable fedora-44 fedora-rawhide
1504 msgid "Added: 4.\\&19.\\&0.\\&"
1505 msgstr ""
1506
1507 #. type: Plain text
1508 #: archlinux debian-unstable fedora-44 fedora-rawhide
1509 #, no-wrap
1510 msgid "%{getncpus proc}\n"
1511 msgstr ""
1512
1513 #. type: Plain text
1514 #: archlinux debian-unstable fedora-44 fedora-rawhide
1515 msgid "B<%getconfdir>"
1516 msgstr ""
1517
1518 #. type: Plain text
1519 #: archlinux debian-unstable fedora-44 fedora-rawhide
1520 msgid "Expand to RPM \"home\" directory (typically /usr/lib/rpm).\\&"
1521 msgstr ""
1522
1523 #. type: Plain text
1524 #: archlinux debian-unstable fedora-44 fedora-rawhide
1525 msgid "B<%{getenv:>I<NAME>B<}>"
1526 msgstr ""
1527
1528 #. type: Plain text
1529 #: archlinux debian-unstable fedora-44 fedora-rawhide
1530 msgid "B<getenv>(3) macro analogue.\\&"
1531 msgstr ""
1532
1533 #. type: Plain text
1534 #: archlinux debian-unstable fedora-44 fedora-rawhide
1535 #, no-wrap
1536 msgid "%{getenv:HOME}\n"
1537 msgstr ""
1538
1539 #. type: Plain text
1540 #: archlinux debian-unstable fedora-44 fedora-rawhide
1541 msgid "B<%rpmversion>"
1542 msgstr ""
1543
1544 #. type: Plain text
1545 #: archlinux debian-unstable fedora-44 fedora-rawhide
1546 msgid "Expand to running RPM version.\\&"
1547 msgstr ""
1548
1549 #. type: SS
1550 #: archlinux debian-unstable fedora-44 fedora-rawhide
1551 #, no-wrap
1552 msgid "Output"
1553 msgstr ""
1554
1555 #. type: Plain text
1556 #: archlinux debian-unstable fedora-44 fedora-rawhide
1557 msgid "B<%{echo:>I<STRING>B<}>"
1558 msgstr ""
1559
1560 #. type: Plain text
1561 #: archlinux debian-unstable fedora-44 fedora-rawhide
1562 msgid "Print I<STRING> to process standard output.\\&"
1563 msgstr ""
1564
1565 #. type: Plain text
1566 #: archlinux debian-unstable fedora-44 fedora-rawhide
1567 #, no-wrap
1568 msgid "%{echo:Building with foo}\n"
1569 msgstr ""
1570
1571 #. type: Plain text
1572 #: archlinux debian-unstable fedora-44 fedora-rawhide
1573 msgid "B<%{warn:>I<STRING>B<}>"
1574 msgstr ""
1575
1576 #. type: Plain text
1577 #: archlinux debian-unstable fedora-44 fedora-rawhide
1578 msgid ""
1579 "Print I<STRING> prefixed with \"warning: \" to process standard error.\\&"
1580 msgstr ""
1581
1582 #. type: Plain text
1583 #: archlinux debian-unstable fedora-44 fedora-rawhide
1584 #, no-wrap
1585 msgid "%{warning:Foo is deprecated}\n"
1586 msgstr ""
1587
1588 #. type: Plain text
1589 #: archlinux debian-unstable fedora-44 fedora-rawhide
1590 msgid "B<%{error:>I<STRING>B<}>"
1591 msgstr ""
1592
1593 #. type: Plain text
1594 #: archlinux debian-unstable fedora-44 fedora-rawhide
1595 msgid ""
1596 "Print I<STRING> prefixed with \"error: \" to process standard error and flag "
1597 "an error in the macro processor.\\&"
1598 msgstr ""
1599
1600 #. type: Plain text
1601 #: archlinux debian-unstable fedora-44 fedora-rawhide
1602 #, no-wrap
1603 msgid "%{error:Invalid argument}\n"
1604 msgstr ""
1605
1606 #. type: Plain text
1607 #: archlinux debian-unstable fedora-44 fedora-rawhide
1608 msgid "B<%verbose>"
1609 msgstr ""
1610
1611 #. type: Plain text
1612 #: archlinux debian-unstable fedora-44 fedora-rawhide
1613 msgid ""
1614 "Expand to 1/0 whether RPM is in verbose mode or not.\\& (Added: 4.\\&17.\\&1)"
1615 msgstr ""
1616
1617 #. type: Plain text
1618 #: archlinux debian-unstable fedora-44 fedora-rawhide
1619 msgid "B<%{verbose:>I<STRING>B<}>"
1620 msgstr ""
1621
1622 #. type: Plain text
1623 #: archlinux debian-unstable fedora-44 fedora-rawhide
1624 msgid ""
1625 "Expand to I<STRING> if RPM is in verbose mode, the empty string if not.\\& "
1626 "(Added: 4.\\&17.\\&1)"
1627 msgstr ""
1628
1629 #. type: Plain text
1630 #: archlinux debian-unstable fedora-44 fedora-rawhide
1631 #, no-wrap
1632 msgid "%{verbose:-x}\n"
1633 msgstr ""
1634
1635 #. type: SS
1636 #: archlinux debian-unstable fedora-44 fedora-rawhide
1637 #, no-wrap
1638 msgid "Spec specific macros"
1639 msgstr ""
1640
1641 #. type: Plain text
1642 #: archlinux debian-unstable fedora-44 fedora-rawhide
1643 msgid "B<%{S:>I<NUMBER>B<}>"
1644 msgstr ""
1645
1646 #. type: Plain text
1647 #: archlinux debian-unstable fedora-44 fedora-rawhide
1648 msgid ""
1649 "Expand to the filename of the specified Source I<NUMBER>.\\& B<%{S:n}> is "
1650 "equivalent to B<%{SOURCEn}>.\\&"
1651 msgstr ""
1652
1653 #. type: Plain text
1654 #: archlinux debian-unstable fedora-44 fedora-rawhide
1655 msgid "B<%{P:>I<NUMBER>B<}>"
1656 msgstr ""
1657
1658 #. type: Plain text
1659 #: archlinux debian-unstable fedora-44 fedora-rawhide
1660 msgid ""
1661 "Expand to the filename of the specified Patch I<NUMBER>.\\& B<%{P:n}> is "
1662 "equivalent to B<%{PATCHn}>.\\&"
1663 msgstr ""
1664
1665 #. type: SS
1666 #: archlinux debian-unstable fedora-44 fedora-rawhide
1667 #, no-wrap
1668 msgid "Diagnostics"
1669 msgstr ""
1670
1671 #. type: Plain text
1672 #: archlinux debian-unstable fedora-44 fedora-rawhide
1673 msgid "B<%trace>"
1674 msgstr ""
1675
1676 #. type: Plain text
1677 #: archlinux debian-unstable fedora-44 fedora-rawhide
1678 msgid "Toggle print of debugging information before/after expansion.\\&"
1679 msgstr ""
1680
1681 #. type: Plain text
1682 #: archlinux debian-unstable fedora-44 fedora-rawhide
1683 msgid "B<%dump>"
1684 msgstr ""
1685
1686 #. type: Plain text
1687 #: archlinux debian-unstable fedora-44 fedora-rawhide
1688 msgid "Print the active (i.\\&e.\\& non-covered) macro table.\\&"
1689 msgstr ""
1690
1691 #. type: Plain text
1692 #: archlinux debian-unstable fedora-44 fedora-rawhide
1693 msgid "B<%__file_name>"
1694 msgstr ""
1695
1696 #. type: Plain text
1697 #: archlinux debian-unstable fedora-44 fedora-rawhide
1698 msgid "Expand to current filename (if parsing a file).\\& (Added: 4.\\&15)"
1699 msgstr ""
1700
1701 #. type: Plain text
1702 #: archlinux debian-unstable fedora-44 fedora-rawhide
1703 msgid "B<%__file_lineno>"
1704 msgstr ""
1705
1706 #. type: Plain text
1707 #: archlinux debian-unstable fedora-44 fedora-rawhide
1708 msgid ""
1709 "Expand to current line number in current file (if parsing a file).\\& "
1710 "(Added: 4.\\&15)"
1711 msgstr ""
1712
1713 #. type: SH
1714 #: archlinux debian-unstable fedora-44 fedora-rawhide
1715 #, no-wrap
1716 msgid "EXAMPLES"
1717 msgstr ""
1718
1719 #. type: SS
1720 #: archlinux debian-unstable fedora-44 fedora-rawhide
1721 #, no-wrap
1722 msgid "Example 1. Define a simple macro"
1723 msgstr ""
1724
1725 #. type: Plain text
1726 #: archlinux debian-unstable fedora-44 fedora-rawhide
1727 msgid ""
1728 "Define macro B<mylib> to a path relative to B<%{_libdir}> macro in a spec:"
1729 msgstr ""
1730
1731 #. type: Plain text
1732 #: archlinux debian-unstable fedora-44 fedora-rawhide
1733 #, no-wrap
1734 msgid "%define mylib %{_libdir}/mine\n"
1735 msgstr ""
1736
1737 #. type: SS
1738 #: archlinux debian-unstable fedora-44 fedora-rawhide
1739 #, no-wrap
1740 msgid "Example 2. Define a parametric macro"
1741 msgstr ""
1742
1743 #. type: Plain text
1744 #: archlinux debian-unstable fedora-44 fedora-rawhide
1745 msgid ""
1746 "Define parametric macro B<myhelper> which executes the program specified by "
1747 "B<%myprog> with it'\\&s first argument and always passing the option B<--"
1748 "some-opt> to it, and additionally the B<--xtra> option if it received the B<-"
1749 "x> option itself:"
1750 msgstr ""
1751
1752 #. type: Plain text
1753 #: archlinux debian-unstable fedora-44 fedora-rawhide
1754 #, no-wrap
1755 msgid "%define myhelper(x) %{myprog} --some-opt %{?-x:--xtra} %{1}\n"
1756 msgstr ""
1757
1758 #. type: SS
1759 #: archlinux debian-unstable fedora-44 fedora-rawhide
1760 #, no-wrap
1761 msgid "Example 3. Define a macro utilizing shell expansion"
1762 msgstr ""
1763
1764 #. type: Plain text
1765 #: archlinux debian-unstable fedora-44 fedora-rawhide
1766 msgid ""
1767 "Define macro B<%today> that expands to the current date in I<YYMMDD> format "
1768 "by calling the B<date>(1) shell utility.\\& Note the 2nd B<%> needed to "
1769 "escape the arguments to B<date>(1):"
1770 msgstr ""
1771
1772 #. type: Plain text
1773 #: archlinux debian-unstable fedora-44 fedora-rawhide
1774 #, no-wrap
1775 msgid "%define today %(date +%%y%%m%%d)\n"
1776 msgstr ""
1777
1778 #. type: SS
1779 #: archlinux debian-unstable fedora-44 fedora-rawhide
1780 #, no-wrap
1781 msgid "Example 4. Define a macro conditionally"
1782 msgstr ""
1783
1784 #. type: Plain text
1785 #: archlinux debian-unstable fedora-44 fedora-rawhide
1786 msgid "Define macro B<mypath> if it wasn'\\&t previously defined:"
1787 msgstr ""
1788
1789 #. type: Plain text
1790 #: archlinux debian-unstable fedora-44 fedora-rawhide
1791 #, no-wrap
1792 msgid "%{!?mypath: %define mypath /some/where}\n"
1793 msgstr ""
1794
1795 #. type: SS
1796 #: archlinux debian-unstable fedora-44 fedora-rawhide
1797 #, no-wrap
1798 msgid "Example 5. Conditional expansion"
1799 msgstr ""
1800
1801 #. type: Plain text
1802 #: archlinux debian-unstable fedora-44 fedora-rawhide
1803 msgid "Expands to B<1> if B<use_foo> is defined and B<0> otherwise:"
1804 msgstr ""
1805
1806 #. type: Plain text
1807 #: archlinux debian-unstable fedora-44 fedora-rawhide
1808 #, no-wrap
1809 msgid "%{?use_foo:1}%{!?use_foo:0}\n"
1810 msgstr ""
1811
1812 #. type: SS
1813 #: archlinux debian-unstable fedora-44 fedora-rawhide
1814 #, no-wrap
1815 msgid "Example 6. Expressions"
1816 msgstr ""
1817
1818 #. type: Plain text
1819 #: archlinux debian-unstable fedora-44 fedora-rawhide
1820 msgid "Calculate 5 * 1024:"
1821 msgstr ""
1822
1823 #. type: Plain text
1824 #: archlinux debian-unstable fedora-44 fedora-rawhide
1825 #, no-wrap
1826 msgid "%[5 * 1024]\n"
1827 msgstr ""
1828
1829 #. type: Plain text
1830 #: archlinux debian-unstable fedora-44 fedora-rawhide
1831 msgid "Expand to literal B<true> or B<false> depending on a condition:"
1832 msgstr ""
1833
1834 #. type: Plain text
1835 #: archlinux debian-unstable fedora-44 fedora-rawhide
1836 #, no-wrap
1837 msgid "%[1 E<lt> 2 ? \"true\" : \"false\"]\n"
1838 msgstr ""
1839
1840 #. type: Plain text
1841 #: archlinux debian-unstable fedora-44 fedora-rawhide
1842 msgid "Compare versions, expanding to B<1> or B<0> on true/false:"
1843 msgstr ""
1844
1845 #. type: Plain text
1846 #: archlinux debian-unstable fedora-44 fedora-rawhide
1847 #, no-wrap
1848 msgid "%[ v\"3\\&.1\\&.0-1\" E<lt> v\"1\\&.0~alpha-2\" ? 1 : 0]\n"
1849 msgstr ""
1850
1851 #. type: Plain text
1852 #: archlinux debian-unstable fedora-44 fedora-rawhide
1853 msgid "Expands to B<1> if B<%aa> expands to B<5>, otherwise expands to B<2>:"
1854 msgstr ""
1855
1856 #. type: Plain text
1857 #: archlinux debian-unstable fedora-44 fedora-rawhide
1858 #, no-wrap
1859 msgid "%[ \"%{aa}\" == \"5\" ? 1 : 2]\n"
1860 msgstr ""
1861
1862 #. type: SH
1863 #: archlinux debian-unstable fedora-44 fedora-rawhide
1864 #, no-wrap
1865 msgid "DEBUGGING"
1866 msgstr ""
1867
1868 #. type: Plain text
1869 #: archlinux debian-unstable fedora-44 fedora-rawhide
1870 msgid "Some useful tools for working with and troubleshooting macros:"
1871 msgstr ""
1872
1873 #. type: Plain text
1874 #: archlinux debian-unstable fedora-44 fedora-rawhide
1875 msgid "B<rpm --eval \">I<VALUE>B<\">"
1876 msgstr ""
1877
1878 #. type: Plain text
1879 #: archlinux debian-unstable fedora-44 fedora-rawhide
1880 msgid "Expand I<VALUE> on the command line.\\&"
1881 msgstr ""
1882
1883 #. type: Plain text
1884 #: archlinux debian-unstable fedora-44 fedora-rawhide
1885 msgid "B<rpm --define \"aa 11\" --eval \"%aa\">"
1886 msgstr ""
1887
1888 #. type: Plain text
1889 #: archlinux debian-unstable fedora-44 fedora-rawhide
1890 msgid "Define and evaluate a macro on the command line.\\&"
1891 msgstr ""
1892
1893 #. type: Plain text
1894 #: archlinux debian-unstable fedora-44 fedora-rawhide
1895 msgid ""
1896 "B<rpm --eval \"%global unamer %(uname -r)\" --eval \"%{macrobody:unamer}\">"
1897 msgstr ""
1898
1899 #. type: Plain text
1900 #: archlinux debian-unstable fedora-44 fedora-rawhide
1901 msgid "Define and examine macro body using B<%global> on the command line.\\&"
1902 msgstr ""
1903
1904 #. type: Plain text
1905 #: archlinux debian-unstable fedora-44 fedora-rawhide
1906 msgid ""
1907 "B<rpm --eval \"%define unamer %(uname -r)\" --eval \"%{macrobody:unamer}\">"
1908 msgstr ""
1909
1910 #. type: Plain text
1911 #: archlinux debian-unstable fedora-44 fedora-rawhide
1912 msgid "Define and examine macro body using B<%define> on the command line.\\&"
1913 msgstr ""
1914
1915 #. type: Plain text
1916 #: archlinux debian-unstable fedora-44 fedora-rawhide
1917 msgid "B<rpmlua>"
1918 msgstr ""
1919
1920 #. type: Plain text
1921 #: archlinux debian-unstable fedora-44 fedora-rawhide
1922 msgid "Run an interactive shell in the embedded Lua environment.\\&"
1923 msgstr ""
1924
1925 #. type: Plain text
1926 #: archlinux debian-unstable fedora-44 fedora-rawhide
1927 msgid "B<rpmlua -e '\\&print(macros.\\&defined(\"_libdir\"))'\\&>"
1928 msgstr ""
1929
1930 #. type: Plain text
1931 #: archlinux debian-unstable fedora-44 fedora-rawhide
1932 msgid ""
1933 "Using the embedded Lua interpreter in standalone form, print print 1/0 "
1934 "whether macro B<_libdir> is defined or not.\\&"
1935 msgstr ""
1936
1937 #. type: Plain text
1938 #: archlinux debian-unstable fedora-44 fedora-rawhide
1939 msgid "B<rpmspec --shell>"
1940 msgstr ""
1941
1942 #. type: Plain text
1943 #: archlinux debian-unstable fedora-44 fedora-rawhide
1944 msgid "Run an interactive shell in the macro environment.\\&"
1945 msgstr ""
1946
1947 #. type: Plain text
1948 #: archlinux debian-unstable fedora-44 fedora-rawhide
1949 msgid "B<rpmspec --shell telnet.\\&spec>"
1950 msgstr ""
1951
1952 #. type: Plain text
1953 #: archlinux debian-unstable fedora-44 fedora-rawhide
1954 msgid ""
1955 "Run an interactive shell in the macro environment after parsing B<telnet."
1956 "\\&spec>.\\&"
1957 msgstr ""
1958
1959 #. type: SH
1960 #: archlinux debian-unstable fedora-44 fedora-rawhide
1961 #, no-wrap
1962 msgid "SEE ALSO"
1963 msgstr ""
1964
1965 #. type: Plain text
1966 #: archlinux debian-unstable fedora-44 fedora-rawhide
1967 msgid ""
1968 "B<rpm>(8) B<rpm-common>(8) B<rpm-macrofile>(5) B<rpm-config>(5) B<rpm-"
1969 "lua>(7) B<rpmspec>(1) B<rpmlua>(1)"
1970 msgstr ""
1971
1972 #. type: TH
1973 #: debian-unstable
1974 #, no-wrap
1975 msgid "2026-04-10"
1976 msgstr ""
1977
1978 #. type: TH
1979 #: fedora-44
1980 #, no-wrap
1981 msgid "2026-01-17"
1982 msgstr ""
1983
1984 #. type: TH
1985 #: fedora-rawhide
1986 #, no-wrap
1987 msgid "2026-02-16"
1988 msgstr ""