[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: lua.spec for rpm building (was Re: Lua 5.0 ...)
- From: Bennett Todd <bet@...>
- Date: Tue, 1 Apr 2003 20:27:19 -0500
I've no idea whether you've any interest in including a spec file
for automatic rpm building in the distrib or not, but if you do,
this might be a convenient starting point; it's continued to work
with little change for me for a while.
If you were to include this, just make sure it's named with a
filename ending in .spec, e.g. lua.spec, and it can be in a
subdirectory, rpm seaches for such; e.g. it could be
contrib/lua.spec or contrib/redhat/lua.spec or whatever.
Also, it'd be nice to try and update the Version string whenever you
wrap a new version, so it matches the tarball filename and the name
of the dir into which it extracts.
Do that, and people could download your tarball and "rpm -ta" it to
get installable i386.rpm and src.rpm automatically (under RH8 and
later, make that "rpmbuild -ta" rather than "rpm -ta").
-Bennett
Summary: Lua embeddable scripting language
Name: lua
Version: 5.0
Release: 1
Copyright: Freely Redistributable
Packager: Bennett Todd <bet@mordor.net>
Group: Development/Languages
URL: http://www.lua.org/
Source: http://www.lua.org/ftp/%{name}-%{version}.tar.gz
BuildRoot: /var/tmp/lua-rpmroot
%description
Lua is a programming language originally designed for extending applications,
but also frequently used as a general-purpose, stand-alone language.
Lua combines simple procedural syntax (similar to Pascal) with powerful
data description constructs based on associative arrays and extensible
semantics. Lua is dynamically typed, interpreted from bytecodes, and has
automatic memory management, making it ideal for configuration, scripting,
and rapid prototyping.
Lua is implemented as a small library of C functions, written in ANSI C,
and compiles unmodified in all known platforms. The implementation goals
are simplicity, efficiency, portability, and low embedding cost.
%prep
%setup
%build
make
%install
mkdir -p $RPM_BUILD_ROOT/usr/{bin,lib,include/lua,share/man/man1}
install -s bin/lua bin/luac $RPM_BUILD_ROOT/usr/bin/
install lib/lib*.a $RPM_BUILD_ROOT/usr/lib/
install include/*.h $RPM_BUILD_ROOT/usr/include/lua
install doc/*.1 $RPM_BUILD_ROOT/usr/share/man/man1/
%files
%defattr(-,root,root)
/usr/bin/*
/usr/include/*
/usr/lib/*
%doc /usr/share/man/*/*
%doc [A-Z]* etc doc/*.html doc/*.gif test
%changelog
* Thu Jul 18 2002 Bennett Todd <bet@rahul.net>
- 4.0.1-1: simplified URLs to www.lua.org
* Fri Jan 04 2002 Bennett Todd <bet@rahul.net>
- 4.0-2: cleaned up %files
* Tue Apr 25 2000 Bennett Todd <bet@rahul.net>
- Version 4.0alpha, reset Release to 1
* Fri Apr 21 2000 Bennett Todd <bet@rahul.net>
- Release 2, tossed in spe.html
* Wed Dec 15 1999 <bet@mordor.net>
- Initial Wrap
Attachment:
pgpJZiAiuAK5o.pgp
Description: PGP signature