X-Git-Url: https://pwan.org/git/?p=pwan.org.git;a=blobdiff_plain;f=content%2Fhints%2Flua-macros-in-rpm-specfiles.rst;fp=content%2Fhints%2Flua-macros-in-rpm-specfiles.rst;h=f4e437904e89db5b67c44db4a00dd5e09b279591;hp=0000000000000000000000000000000000000000;hb=6b4cb8e61e634b989a887c60fdd26d7140a8224f;hpb=78cc7b9eb414b40bc21c491f6809929573fffc7b diff --git a/content/hints/lua-macros-in-rpm-specfiles.rst b/content/hints/lua-macros-in-rpm-specfiles.rst new file mode 100644 index 0000000..f4e4379 --- /dev/null +++ b/content/hints/lua-macros-in-rpm-specfiles.rst @@ -0,0 +1,17 @@ +Using Lua macros in an RPM specfile +################################### + +:date: 2015-07-12 +:tags: hint,lua,rpmbuild,rpm,specilfe +:fcategory: hints +:author: Jude N + +I've found using Lua macros in rpm spec files to be pretty useful. I haven't found many examples of their use online, so here's how I ended up using them. + +I had a situation where I needed to make a subpackage from all the files in a number of different subdirectories. The structure of the files in the subdirectories was fixed, +but the number of subdirectories could change over time, and I didn't want to have to update the spec file each time a new subdirectory was added or removed. + + + + +.. _lua macros in rpm spec files: http://www.rpm.org/wiki/PackagerDocs/RpmLua