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