2004-11-08 04:49:49 +00:00
|
|
|
Name: lua
|
2008-09-03 12:27:53 +00:00
|
|
|
Version: 5.1.4
|
2011-01-28 18:32:52 +00:00
|
|
|
Release: 6%{?dist}
|
2005-10-16 18:00:53 +00:00
|
|
|
Summary: Powerful light-weight programming language
|
2004-11-08 04:49:49 +00:00
|
|
|
Group: Development/Languages
|
|
|
|
License: MIT
|
|
|
|
URL: http://www.lua.org/
|
2005-02-01 16:15:27 +00:00
|
|
|
Source0: http://www.lua.org/ftp/lua-%{version}.tar.gz
|
2008-09-03 12:27:53 +00:00
|
|
|
Patch0: lua-5.1.4-autotoolize.patch
|
2010-05-09 10:46:41 +00:00
|
|
|
Patch1: lua-5.1.4-lunatic.patch
|
2011-01-28 18:32:52 +00:00
|
|
|
Patch2: lua-5.1.4-idsize.patch
|
2004-11-08 04:49:49 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
2006-10-14 20:32:35 +00:00
|
|
|
BuildRequires: readline-devel ncurses-devel
|
2008-04-13 20:39:17 +00:00
|
|
|
Provides: lua = 5.1
|
2004-11-08 04:49:49 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Lua is a powerful light-weight programming language designed for
|
|
|
|
extending applications. Lua is also frequently used as a
|
|
|
|
general-purpose, stand-alone language. Lua is free software.
|
|
|
|
Lua combines simple procedural syntax with powerful data description
|
|
|
|
constructs based on associative arrays and extensible semantics. Lua
|
|
|
|
is dynamically typed, interpreted from bytecodes, and has automatic
|
|
|
|
memory management with garbage collection, making it ideal for
|
|
|
|
configuration, scripting, and rapid prototyping.
|
|
|
|
|
2006-10-14 20:32:35 +00:00
|
|
|
|
2007-04-02 18:17:55 +00:00
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: pkgconfig
|
2006-06-06 02:14:28 +00:00
|
|
|
|
2007-04-02 18:17:55 +00:00
|
|
|
%description devel
|
2006-06-06 02:14:28 +00:00
|
|
|
This package contains development files for %{name}.
|
2004-11-08 04:49:49 +00:00
|
|
|
|
2008-05-12 16:59:32 +00:00
|
|
|
%package static
|
|
|
|
Summary: Static library for %{name}
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description static
|
|
|
|
This package contains the static version of liblua for %{name}.
|
|
|
|
|
2006-10-14 20:32:35 +00:00
|
|
|
|
2004-11-08 04:49:49 +00:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2007-04-02 18:17:55 +00:00
|
|
|
%patch0 -p1 -E -z .autoxxx
|
2010-05-09 10:46:41 +00:00
|
|
|
%patch1 -p0 -z .lunatic
|
2011-01-28 18:32:52 +00:00
|
|
|
%patch2 -p1 -z .idsize
|
2006-05-29 07:01:54 +00:00
|
|
|
# fix perms on auto files
|
|
|
|
chmod u+x autogen.sh config.guess config.sub configure depcomp install-sh missing
|
2004-11-08 04:49:49 +00:00
|
|
|
|
|
|
|
|
2006-10-14 20:32:35 +00:00
|
|
|
%build
|
2006-05-29 07:01:54 +00:00
|
|
|
%configure --with-readline
|
2007-04-02 18:17:55 +00:00
|
|
|
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|
|
|
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
2006-10-15 07:44:53 +00:00
|
|
|
# hack so that only /usr/bin/lua gets linked with readline as it is the
|
|
|
|
# only one which needs this and otherwise we get License troubles
|
2009-06-11 22:37:45 +00:00
|
|
|
make %{?_smp_mflags} LIBS="-lm -ldl" luac_LDADD="liblua.la -lm -ldl"
|
2007-01-19 15:02:30 +00:00
|
|
|
# also remove readline from lua.pc
|
|
|
|
sed -i 's/-lreadline -lncurses //g' etc/lua.pc
|
2004-11-08 04:49:49 +00:00
|
|
|
|
2006-10-14 20:32:35 +00:00
|
|
|
|
2006-05-29 07:01:54 +00:00
|
|
|
%install
|
2006-10-14 20:32:35 +00:00
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
2008-05-12 16:59:32 +00:00
|
|
|
rm $RPM_BUILD_ROOT%{_libdir}/*.la
|
2008-03-14 10:20:17 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_libdir}/lua/5.1
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}/lua/5.1
|
2004-11-08 04:49:49 +00:00
|
|
|
|
2006-06-06 02:14:28 +00:00
|
|
|
|
2004-11-08 04:49:49 +00:00
|
|
|
%clean
|
2006-10-14 20:32:35 +00:00
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2004-11-08 04:49:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2007-04-02 18:17:55 +00:00
|
|
|
%doc COPYRIGHT HISTORY README doc/*.html doc/*.css doc/*.gif doc/*.png
|
2004-11-08 04:49:52 +00:00
|
|
|
%{_bindir}/lua*
|
2006-06-06 02:14:28 +00:00
|
|
|
%{_libdir}/liblua-*.so
|
|
|
|
%{_mandir}/man1/lua*.1*
|
2008-04-05 07:24:12 +00:00
|
|
|
%dir %{_libdir}/lua
|
2008-03-14 10:20:17 +00:00
|
|
|
%dir %{_libdir}/lua/5.1
|
2008-04-05 07:24:12 +00:00
|
|
|
%dir %{_datadir}/lua
|
2008-03-14 10:20:17 +00:00
|
|
|
%dir %{_datadir}/lua/5.1
|
|
|
|
|
2006-06-06 02:14:28 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
2004-11-08 04:49:52 +00:00
|
|
|
%{_includedir}/l*.h
|
2006-05-07 22:26:23 +00:00
|
|
|
%{_includedir}/l*.hpp
|
2006-06-06 02:14:28 +00:00
|
|
|
%{_libdir}/liblua.so
|
2006-05-29 07:01:54 +00:00
|
|
|
%{_libdir}/pkgconfig/*.pc
|
2004-11-08 04:49:49 +00:00
|
|
|
|
2008-05-12 16:59:32 +00:00
|
|
|
%files static
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/*.a
|
2004-11-08 04:49:49 +00:00
|
|
|
|
|
|
|
%changelog
|
2011-01-28 18:32:52 +00:00
|
|
|
* Fri Jan 28 2011 Tim Niemueller <tim@niemueller.de> - 5.1.4-6
|
|
|
|
- Add patch to increase IDSIZE for more useful error messages
|
|
|
|
|
2010-05-09 10:46:41 +00:00
|
|
|
* Sun May 09 2010 Tim Niemueller <tim@niemueller.de> - 5.1.4-5
|
|
|
|
- Add patch regarding dlopen flags to support Lunatic (Lua-Python bridge)
|
|
|
|
|
2009-07-25 11:23:42 +00:00
|
|
|
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.4-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-06-11 22:37:45 +00:00
|
|
|
* Thu Jun 11 2009 Tim Niemueller <tim@niemueller.de> - 5.1.4-2
|
|
|
|
- Link liblua.so with -lm (math lib), fixes rhbz #499238
|
|
|
|
|
2009-02-25 21:58:04 +00:00
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.4-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2008-09-03 12:27:53 +00:00
|
|
|
* Wed Sep 03 2008 Tim Niemueller <tim@niemueller.de> - 5.1.4-1
|
|
|
|
- New upstream release 5.1.4
|
|
|
|
|
2008-05-12 16:59:32 +00:00
|
|
|
* Mon May 12 2008 Tim Niemueller <tim@niemueller.de> - 5.1.3-6
|
|
|
|
- Add -static subpackage with static liblua, fixes rh bug #445939
|
|
|
|
|
2008-04-13 20:39:17 +00:00
|
|
|
* Sun Apr 13 2008 Tim Niemueller <tim@niemueller.de> - 5.1.3-5
|
|
|
|
- Provide lua = 5.1, this way add-on packages can easily depend on the Lua
|
|
|
|
base version and expect certain paths for packages
|
|
|
|
|
2008-04-05 07:24:12 +00:00
|
|
|
* Sat Apr 5 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 5.1.3-4
|
|
|
|
- Not only own $libdir/lua/5.1 and $datadir/lua/5.1 but also $libdir/lua
|
|
|
|
and $datadir/lua for proper removal of these dirs upon lua removal
|
|
|
|
|
2008-03-14 10:20:17 +00:00
|
|
|
* Fri Mar 14 2008 Tim Niemueller <tim@niemueller.de> - 5.1.3-3
|
|
|
|
- own $libdir/lua/5.1 and $datadir/lua/5.1. These are the standard package
|
|
|
|
search path for Lua. Packaging them properly allows for easy creation of
|
|
|
|
Lua addon packages.
|
|
|
|
|
2008-02-19 09:11:48 +00:00
|
|
|
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 5.1.3-2
|
|
|
|
- Autorebuild for GCC 4.3
|
|
|
|
|
2008-01-26 23:07:49 +00:00
|
|
|
* Sat Jan 26 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 5.1.3-1
|
|
|
|
- New upstream release 5.1.3
|
|
|
|
|
2007-11-26 08:44:36 +00:00
|
|
|
* Mon Nov 26 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 5.1.2-4
|
|
|
|
- Fix libdir in lua.pc being /usr/lib on x86_64 (bz 399101)
|
|
|
|
|
2007-10-21 18:02:12 +00:00
|
|
|
* Sun Oct 21 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 5.1.2-3
|
|
|
|
- Also use lib64 instead of lib on ia64 and sparc64
|
|
|
|
|
2007-10-21 17:43:45 +00:00
|
|
|
* Sun Oct 21 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 5.1.2-2
|
|
|
|
- Fix multilib condlict in luaconf.h (bz 342561)
|
|
|
|
|
2007-04-02 18:17:55 +00:00
|
|
|
* Mon Apr 2 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 5.1.2-1
|
|
|
|
- New upstream release 5.1.2
|
|
|
|
- Fix use of rpath on x86_64
|
|
|
|
|
2007-01-19 15:02:30 +00:00
|
|
|
* Fri Jan 19 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 5.1.1-3
|
|
|
|
- Remove "-lreadline -lncurses" from lua.pc (bz 213895)
|
|
|
|
|
2006-10-15 07:44:53 +00:00
|
|
|
* Sun Oct 15 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 5.1.1-2
|
|
|
|
- Only link /usr/bin/lua with readline / do not link %%{_libdir}/liblua-5.1.so
|
|
|
|
with readline so that we don't cause any License troubles for packages
|
|
|
|
linking against liblua-5.1.so, otherwise lua could drag the GPL only readline
|
|
|
|
lib into the linking of non GPL apps.
|
|
|
|
|
2006-10-14 20:32:35 +00:00
|
|
|
* Sat Oct 14 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 5.1.1-1
|
|
|
|
- New upstream release 5.1.1
|
|
|
|
- Fix detection of readline during compile (iow add readline support back)
|
|
|
|
|
2006-08-28 04:24:13 +00:00
|
|
|
* Mon Aug 27 2006 Michael J. Knox <michael[AT]knox.net.nz> - 5.1-7
|
|
|
|
- Rebuild for FC6
|
|
|
|
|
2006-06-07 20:03:20 +00:00
|
|
|
* Thu Jun 08 2006 Michael J. Knox <michael[AT]knox.net.nz> - 5.1-6
|
|
|
|
- fixed broken provides
|
|
|
|
|
2006-06-06 02:14:28 +00:00
|
|
|
* Tue Jun 06 2006 Michael J. Knox <michael[AT]knox.net.nz> - 5.1-5
|
|
|
|
- split out devel subpackage
|
|
|
|
|
2006-05-31 20:02:47 +00:00
|
|
|
* Thu Jun 01 2006 Michael J. Knox <michael[AT]knox.net.nz> - 5.1-4
|
|
|
|
- added Requires for pkgconfig BZ#193674
|
|
|
|
|
2006-05-29 07:01:54 +00:00
|
|
|
* Mon May 29 2006 Michael J. Knox <michael[AT]knox.net.nz> - 5.1-3
|
|
|
|
- added autotools patch from Petri Lehtinen, http://lua-users.org
|
|
|
|
|
2006-05-07 22:52:05 +00:00
|
|
|
* Mon May 08 2006 Michael J. Knox <michael[AT]knox.net.nz> - 5.1-2
|
|
|
|
- fixed x86_64 builds
|
|
|
|
|
2006-05-07 22:26:23 +00:00
|
|
|
* Mon May 08 2006 Michael J. Knox <michael[AT]knox.net.nz> - 5.1-1
|
|
|
|
- version bump
|
|
|
|
|
2005-10-16 18:00:53 +00:00
|
|
|
* Sun Oct 16 2005 Ville Skyttä <ville.skytta at iki.fi> - 5.0.2-5
|
|
|
|
- Fix -debuginfo (#165304).
|
|
|
|
- Cosmetic specfile improvements.
|
|
|
|
|
2005-05-23 00:06:22 +00:00
|
|
|
* Sun May 22 2005 Jeremy Katz <katzj@redhat.com> - 5.0.2-4
|
|
|
|
- rebuild on all arches
|
|
|
|
|
2005-10-16 18:00:53 +00:00
|
|
|
* Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 5.0.2-3
|
2005-04-06 22:12:23 +00:00
|
|
|
- rebuilt
|
|
|
|
|
2005-02-12 14:19:55 +00:00
|
|
|
* Sat Feb 12 2005 David Woodhouse <dwmw2@infradead.org> - 5.0.2-2
|
|
|
|
- Don't use fastround on ppc
|
|
|
|
|
2005-02-01 16:15:27 +00:00
|
|
|
* Tue Feb 01 2005 Panu Matilainen <pmatilai@welho.com> - 5.0.2-1
|
|
|
|
- update to 5.0.2
|
|
|
|
- remove epoch 0, drop fedora.us release tag
|
|
|
|
|
2004-11-08 04:49:52 +00:00
|
|
|
* Mon Nov 17 2003 Oren Tirosh <oren at hishome.net> - 0:5.0-0.fdr.2
|
|
|
|
- Enable readline support.
|
|
|
|
|
2004-11-08 04:49:49 +00:00
|
|
|
* Sat Jun 21 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:5.0-0.fdr.1
|
|
|
|
- First build.
|