summaryrefslogtreecommitdiff
path: root/macros.in
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-02-25 12:24:22 +0200
committerPanu Matilainen <pmatilai@redhat.com>2008-02-25 12:24:22 +0200
commit98c5039009406609f661f98623776d6c18a04c2c (patch)
treec509d64083c698d759461806bbc3c08662d41729 /macros.in
parent2b39ddc25d9773c793c4ceaef01de0b9df0c06ad (diff)
downloadlibrpm-tizen-98c5039009406609f661f98623776d6c18a04c2c.tar.gz
librpm-tizen-98c5039009406609f661f98623776d6c18a04c2c.tar.bz2
librpm-tizen-98c5039009406609f661f98623776d6c18a04c2c.zip
Add %{sources} and %{patches} macros to build
- push full patch + source paths to global lua tables - %{sources} and %{patches} are just easy-access wrappers to accessing the lua tables - "git-am -p1 %{patches}" and enjoy...
Diffstat (limited to 'macros.in')
-rw-r--r--macros.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/macros.in b/macros.in
index 543e3bf2a..087b5da46 100644
--- a/macros.in
+++ b/macros.in
@@ -1156,6 +1156,9 @@ done \
%{-C:${_mydir}}%{!-C:.}/configure %{_target_platform} --prefix=%{_prefix} --exec-prefix=%{_exec_prefix} --bindir=%{_bindir} --sbindir=%{_sbindir} --sysconfdir=%{_sysconfdir} --datadir=%{_datadir} --includedir=%{_includedir} --libdir=%{_libdir} --libexecdir=%{_libexecdir} --localstatedir=%{_localstatedir} --sharedstatedir=%{_sharedstatedir} --mandir=%{_mandir} --infodir=%{_infodir} %* ; \
%{-C:cd ${_mydir}; unset _mydir}
+%patches %{lua: for i, p in ipairs(patches) do print(p.." ") end}
+%sources %{lua: for i, s in ipairs(sources) do print(s.." ") end}
+
#------------------------------------------------------------------------------
# Useful perl macros (from Artur Frysiak <wiget@t17.ds.pwr.wroc.pl>)
#