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