[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Red Hat Package Manager (RPM) for Lua
- From: lhf@... (Luiz Henrique de Figueiredo)
- Date: Wed, 30 Dec 1998 16:38:52 -0200 (EDT)
listproc rejected this message (don't ask me why), so I'm posting it on behalf
of Bennett Todd <bet@mordor.net>.
--lhf
-----------------------------------------------------------------------------
From bet@mordor.net Wed Dec 30 13:55:22 1998
Date: Wed, 30 Dec 1998 11:10:29 -0500
From: Bennett Todd <bet@mordor.net>
To: Lua list <lua-l@tecgraf.puc-rio.br>
Subject: Red Hat Package Manager (RPM) for Lua
I just whipped up a simple spec file for Lua.
On a system running RPM (like e.g. any Red Hat Linux release) you can place
this file in /usr/src/redhat/SPECS/lua.spec, place the source code in
/usr/src/redhat/SOURCES/lua-3.1.tar.gz, then issue the command
rpm -ba /usr/src/redhat/SPECS/lua.spec
This will create the files
/usr/src/redhat/RPMS/i386/lua-3.1-1.i386.rpm
/usr/src/redhat/SRPMS/lua-3.1-1.src.rpm
(i386 will be alpha or sparc or whatever is you're using another
architecture).
Cleanup after the build with
rm -rf /usr/src/redhat/{BUILD/lua,SOURCES/lua-3.1.tar.gz,SPEC/lua.spec}
Install the rpm with
rpm -i /usr/src/redhat/RPMS/i386/lua-3.1-1.i386.rpm
Spec file attached.
-Bennett
Summary: Lua --- small, fast, extensible, embeddable extension language
Name: lua
Version: 3.1
Release: 1
Copyright: distributable
Group: Development/Languages/Lua
Source: ftp://ftp.tecgraf.puc-rio.br/pub/lua/lua-3.1.tar.gz
URL: http://www.tecgraf.puc-rio.br/lua/
Packager: Bennett Todd <bet@mordor.net>
%description
Lua is a very small and fast extension language, easy to extend and customize
to fit the needs of various applications.
%prep
%setup -n lua
%build
make
%install
install -s bin/* /usr/bin
install doc/luac.man /usr/man/man1/luac.1
install -d /usr/include/lua
install include/*.h /usr/include/lua
install lib/liblua*.a /usr/lib
%files
%doc [A-Z]* doc test etc
/usr/bin/lua
/usr/bin/luac
/usr/man/man1/luac.1
/usr/include/lua
/usr/lib/liblua*.a
%changelog
* Wed Dec 30 1998 Bennett Todd <bet@mordor.net>
- Initial wrap