diff options
author | jbj <devnull@localhost> | 1998-09-05 23:13:35 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 1998-09-05 23:13:35 +0000 |
commit | 0a4e182e4003be1497452658b7b3327975694641 (patch) | |
tree | 420695011d8f07c68470d1a1a788bb0e2d17dd42 /macros.in | |
parent | 5973a1a52d424f1e40e944560c1bbe86064a6f4a (diff) | |
download | librpm-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.in | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -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\ + } + +#============================================================================== |