From: root Date: Mon, 31 Mar 1997 20:25:54 +0000 (+0000) Subject: Initial revision X-Git-Tag: rpm-4.4-release~4215 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4252a906d1c1c0e89314a231ff3e7550507a8580;p=platform%2Fupstream%2Frpm.git Initial revision CVS patchset: 1520 CVS date: 1997/03/31 20:25:54 --- diff --git a/docs/macros b/docs/macros new file mode 100644 index 0000000..cd02378 --- /dev/null +++ b/docs/macros @@ -0,0 +1,41 @@ +SPEC FILE MACROS +================ + +RPM 2.3.9 introduces simple spec file macros. The macros can do +straight text substitution only. Macros can be used anywhere in +a spec file, and in "included file lists" (those read in using +%files -f ). + +Defining a Macro +---------------- + +To define a macro use: + +%define + +All whitespace surrounding is removed. Name may be composed +of alphanumeric characters, and the character `_'. Macro expansion is +performed on so that my reference other macros +that have already been defined. + +Using a Macro +------------- + +To use a macro, write: + +% + +or + +%{} + +The later allows you to place the expansion adjacent to other text. + +Predefined Macros +----------------- + +The following macros are defined as the values they reference are +specified in the spec file: + +PACKAGE_VERSION +PACKAGE_RELEASE