summaryrefslogtreecommitdiff
path: root/macros.in
diff options
context:
space:
mode:
authorjbj <devnull@localhost>1998-09-05 23:13:35 +0000
committerjbj <devnull@localhost>1998-09-05 23:13:35 +0000
commit0a4e182e4003be1497452658b7b3327975694641 (patch)
tree420695011d8f07c68470d1a1a788bb0e2d17dd42 /macros.in
parent5973a1a52d424f1e40e944560c1bbe86064a6f4a (diff)
downloadlibrpm-tizen-0a4e182e4003be1497452658b7b3327975694641.tar.gz
librpm-tizen-0a4e182e4003be1497452658b7b3327975694641.tar.bz2
librpm-tizen-0a4e182e4003be1497452658b7b3327975694641.zip
Integrate shell and macro enviroments for scripts.
CVS patchset: 2282 CVS date: 1998/09/05 23:13:35
Diffstat (limited to 'macros.in')
-rw-r--r--macros.in22
1 files changed, 22 insertions, 0 deletions
diff --git a/macros.in b/macros.in
index 9aead1bbd..fe1d174bd 100644
--- a/macros.in
+++ b/macros.in
@@ -53,3 +53,25 @@
%_topdir %{_usrsrc}/redhat
%optflags -O2
+#==============================================================================
+# ---- script environment macros.
+# Macro(s) that establish the environment for running a script.
+#
+%_preScriptEnvironment \
+ RPM_SOURCE_DIR=\"%{_sourcedir}\"\
+ RPM_BUILD_DIR=\"%{_builddir}\"\
+ RPM_OPT_FLAGS=\"%{optflags}\"\
+ RPM_ARCH=\"%{arch}\"\
+ RPM_OS=\"%{os}\"\
+ export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS\
+ RPM_DOC_DIR=\"%{_docdir}\"\
+ export RPM_DOC_DIR\
+ RPM_PACKAGE_NAME=\"%{name}\"\
+ RPM_PACKAGE_VERSION=\"%{version}\"\
+ RPM_PACKAGE_RELEASE=\"%{release}\"\
+ export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE\
+ %{?buildroot:RPM_BUILD_ROOT=\"%{buildroot}\"\
+ export RPM_BUILD_ROOT\
+ }
+
+#==============================================================================