On 17.09.2012 22:54:59, Alexander V. Nikolaev wrote:
I develop tool to generate proper debian/ and build few "packaged"
rock
for ubuntu/natty. Patch to LR (discussed in this thread) -- part of
this work. It required to allow rocks installed in old fashion way use
"system-wide" installed packages. Built packages have little manifest,
inside /usr/lib/pk-rocks-tree/lib/luarocks/manifest.d/$package
Full manifest rebuilt in
/usr/lib/pk-rocks-tree/lib/luarocks/manifest.d
on any install/remove operation. Little "runtime support" care about
it.
I believe this tool can be enchanced to support other major linux
distributives (generate .spec for RPM for example).
PS All paths taken from "live" prototype, it not published yet. But we
have plans to release it soon (when it will work fine for us, and look
less ugly than now)
As you mentioned RPM .spec, I couldn't keep silent :)
Let me show what I got (see attachment). It is generated automatically
with a little clean up & small fixes work afterwards.
Given rocspec+tarball it compiles an RPM with all deps correctly set
etc.
Regards,
--
Ildar Mulyukov, free SW designer/programmer
================================================
email: [email protected]
blog: http://johan-notes.blogspot.com/
ALT Linux Sisyphus
================================================
# Original package name LuaSocket
%define oname luasocket
%define oversion 2.0.2-3
%define rockspec luasocket-2.0.2-3.rockspec
Name: lua-module-luasocket
Version: 2.0.2
Release: alt1_lr3
Summary: Network support for the Lua language
License: MIT
Group: Development/Other
Url: http://luaforge.net/projects/luasocket/
Packager: Ildar Mulyukov <[email protected]>
Provides: luarocks(%oname) = %version
Source: http://luaforge.net/frs/download.php/2664/luasocket-2.0.2.tar.gz
Source1: http://luarocks.org/repositories/rocks/luasocket-2.0.2-3.rockspec
#TODO Requires
BuildPreReq: rpm-macros-lua
# Automatically added by buildreq on ...
BuildRequires: liblua5-devel luarocks
%description
LuaSocket is a Lua extension library that is composed by two parts: a C core
that provides support for the TCP and UDP transport layers, and a set of Lua
modules that add support for functionality commonly needed by applications
that deal with the Internet.
%prep
%setup -n %oname-%version
%install
%luarocks_make %SOURCE1
%luarocks_move_docs doc
%check
%lua_path_add_buildroot
( lua %buildroot%luarocks_dbdir/%oname/%oversion/test/testsrvr.lua ||: )&
sleep 1
lua %buildroot%luarocks_dbdir/%oname/%oversion/test/testclnt.lua
%files
%lua_modulesdir/*
%lua_modulesdir_noarch/*
%luarocks_dbdir/%oname
%doc LICENSE NEW README docs_from_rockstree/*
%exclude %luarocks_dbdir/manifest
%changelog
* Thu Jan 06 2011 Ildar Mulyukov <[email protected]> 2.0.2-alt1_lr3
- autogenerated by lrimport
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Luarocks-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luarocks-developers