diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-02-25 12:24:22 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-02-25 12:24:22 +0200 |
commit | 98c5039009406609f661f98623776d6c18a04c2c (patch) | |
tree | c509d64083c698d759461806bbc3c08662d41729 /macros.in | |
parent | 2b39ddc25d9773c793c4ceaef01de0b9df0c06ad (diff) | |
download | librpm-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.in | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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>) # |