diff --git a/reference/rpminfo/functions/rpmdefine.xml b/reference/rpminfo/functions/rpmdefine.xml new file mode 100644 index 0000000000..8fd354e4af --- /dev/null +++ b/reference/rpminfo/functions/rpmdefine.xml @@ -0,0 +1,109 @@ + + + + + + rpmdefine + Define or change a RPM macro value + + + + &reftitle.description; + + boolrpmdefine + stringtext + + + Define or change a RPM macro value. + + + This can be used to select the database path and backend to use + instead of system default one. + + + + + + &reftitle.parameters; + + + text + + + Macro name, options, body. + + + + + + + + &reftitle.returnvalues; + + &return.success; + + + + + &reftitle.examples; + + + A <function>rpmdefine</function> example + + +]]> + + &example.outputs; + + + + + + + + + &reftitle.seealso; + + + rpmexpand + rpmdbinfo + + + + + + + diff --git a/reference/rpminfo/functions/rpmexpand.xml b/reference/rpminfo/functions/rpmexpand.xml new file mode 100644 index 0000000000..48865900bc --- /dev/null +++ b/reference/rpminfo/functions/rpmexpand.xml @@ -0,0 +1,96 @@ + + + + + + rpmexpand + Retrieve expanded value of a RPM macro + + + + &reftitle.description; + + stringrpmexpand + stringtext + + + Retrieve expanded value of a RPM macro. + + + + + + &reftitle.parameters; + + + text + + + Text with RPM macros to expand. + + + + + + + + &reftitle.returnvalues; + + A string with concatenated macro expansion(s). + + + + + &reftitle.examples; + + + A <function>rpmexpand</function> example + + +]]> + + &example.outputs; + + + + + + + + + &reftitle.seealso; + + + rpmexpandnumeric + + + + + + + diff --git a/reference/rpminfo/functions/rpmexpandnumeric.xml b/reference/rpminfo/functions/rpmexpandnumeric.xml new file mode 100644 index 0000000000..27e870e0ef --- /dev/null +++ b/reference/rpminfo/functions/rpmexpandnumeric.xml @@ -0,0 +1,99 @@ + + + + + + rpmexpandnumeric + Retrieve numerical value of a RPM macro + + + + &reftitle.description; + + intrpmexpandnumeric + stringtext + + + Retrieve numerical value of a RPM macro. + + + + + + &reftitle.parameters; + + + text + + + Text with RPM macros to expand. + + + + + + + + &reftitle.returnvalues; + + Macro expansion as a int. + Boolean values (Y or y returns 1, + N or n returns 0) + are permitted as well. An undefined macro returns 0. + + + + + &reftitle.examples; + + + A <function>rpmexpandnumeric</function> example + + +]]> + + &example.outputs; + + + + + + + + + &reftitle.seealso; + + + rpmexpand + + + + + + + diff --git a/reference/rpminfo/versions.xml b/reference/rpminfo/versions.xml index 68ad867249..2089ad0254 100644 --- a/reference/rpminfo/versions.xml +++ b/reference/rpminfo/versions.xml @@ -12,6 +12,9 @@ + + +