summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-10-11 15:06:22 -0700
committerAnas Nashif <anas.nashif@intel.com>2013-02-02 16:44:15 -0800
commit17d40eaa34906a470bf610aa836c4426eac88c66 (patch)
treefb1524b3612c4d92ea30bf0357227362c40cf4fb
parentaa02c75bcf3ed3fd63acdf995e1f93c23983bca9 (diff)
downloadlibrpm-tizen-17d40eaa34906a470bf610aa836c4426eac88c66.tar.gz
librpm-tizen-17d40eaa34906a470bf610aa836c4426eac88c66.tar.bz2
librpm-tizen-17d40eaa34906a470bf610aa836c4426eac88c66.zip
Module aliases
-rw-r--r--macros.in10
1 files changed, 7 insertions, 3 deletions
diff --git a/macros.in b/macros.in
index 352f17a15..2cd1a9749 100644
--- a/macros.in
+++ b/macros.in
@@ -447,14 +447,18 @@ package or when debugging this package.\
#
# Path to scripts to autogenerate package dependencies,
#
+%__set_helper_env %{lua:
+posix.setenv("RPMBUILD_SPECFILE",rpm.expand("%?_specfile"));
+posix.setenv("RPMBUILD_SOURCEDIR",rpm.expand("%?_sourcedir"));
+}
# Note: Used iff _use_internal_dependency_generator is zero.
#%__find_provides %{_rpmconfigdir}/rpmdeps --provides
#%__find_requires %{_rpmconfigdir}/rpmdeps --requires
-%__find_provides %{_rpmconfigdir}/find-provides %name
-%__find_requires %{_rpmconfigdir}/find-requires %name
+%__find_provides %{__set_helper_env}%{_rpmconfigdir}/find-provides %name
+%__find_requires %{__set_helper_env}%{_rpmconfigdir}/find-requires %name
#%__find_conflicts ???
#%__find_obsoletes ???
-#%__find_supplements ???
+%__find_supplements %{__set_helper_env}%{_rpmconfigdir}/find-supplements %name
#%__find_enhances ???
#