Mailinglist Archive: opensuse-packaging (266 mails)

< Previous Next >
[opensuse-packaging] RFC: Lua packaging guidelines

Hi,

I have mailed packaging mailing list earlier
<http://lists.opensuse.org/opensuse-packaging/2012-09/msg00123.html>
regarding packaging guidelines for Lua packaging which probably did not
get enough attention.

Following a mail to the opensuse-buildservice regarding lua packages
development
<http://lists.opensuse.org/opensuse-buildservice/2012-09/msg00144.html>
I would like to propose the following packaging guidelines for Lua since
the projct does not have one.

1) The main development should be taking place in devel:languages:lua
and therefore devel:languages:misc should be droped as the devel repo
for Factory.
2) various lua packages that are scattered around the OBS should be
developed in devel:languages:lua

Guidelines for Lua packages

Macros are already defined by the lua and lua51 packages in
devel:languages:misc

# 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
lua(version)-PKG_NAME-devel
Example

lua51-luafilesystem-devel

* 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

/usr/share/doc/packages/lua-{PKG_NAME}-doc/*

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

Togan

--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx

< Previous Next >