Debian Codegraph @

po/ar/man7/rpm-macros.7.po

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