Mailinglist Archive: opensuse-packaging (99 mails)

< Previous Next >
Re: [opensuse-packaging] RFC: Lua packaging guidelines
On 09/24/2012 01:59 PM, Togan Muftuoglu wrote:


Guidelines for Lua packages

Macros are already defined by the lua and lua51 packages in

# RPM macros for Lua

# The major.minor version of Lua
%lua_version %(lua -e 'print(_VERSION)' | cut -d ' ' -f 2)

# compiled modules should go here
%lua_archdir %{_libdir}/lua/%{lua_version}

# pure Lua modules should go here
%lua_noarchdir %{_datadir}/lua/%{lua_version}

* Addon packages
Lua add-on packages should generally follow the naming scheme of
lua(version)-PKG_NAME -- e.g.

lua51-luafilesystem -- tobe used with lua version 5.1
lua-luafilesystem -- tobe used with lua version 5.2

* Development Packages
Development packages should have devel suffix added to the package name


* Documentation packages
If a package has huge documentation or is just a doc package then naming
should be
lua(version)-PackageName-doc and should be installed to %_defaultdocdir


Many upstream Lua developers use LuaRocks to distribute their modules.
Therefore we probably should be finding a way to integrate luarocks in
our build system and possibly provide a packaging mechanism similar to
py2pack of python

Comments will be appreciated

There were some minor suggestions for improvements of this. Could you resend the proposal following the new change process (see and then let's create a wiki page and document this as part of the packaging guidelines.

Andreas Jaeger aj@{,} Twitter/Identica: jaegerandi
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg)
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups