Changes of Revision 3
[-] | Added | lua51.spec |
x 1
2 +# 3 +# spec file for package lua51 (Version 5.1) 4 +# 5 +# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. 6 +# This file and all modifications and additions to the pristine 7 +# package are under the same license as the package itself. 8 +# 9 +# Please submit bugfixes or comments via http://bugs.opensuse.org/ 10 +# 11 + 12 +# norootforbuild 13 + 14 +Name: lua51 15 +%define pkg_name lua 16 +%define pkg_major 5.1 17 +Version: 5.1 18 +Release: 1 19 +# 20 +Group: Development/Languages/Lua 21 +License: MIT 22 +# 23 +BuildRoot: %{_tmppath}/%{name}-%{version}-build 24 +BuildRequires: ncurses-devel readline-devel 25 +# 26 +Url: http://www.lua.org/ 27 +Source0: http://www.lua.org/ftp/lua-%{version}.tar.gz 28 +Source1: http://www.lua.org/ftp/refman-5.0.pdf 29 +Patch0: lua-5.1-autotoolize-r1.patch.bz2 30 +Patch1: lua51-5.1.1_pkgconfig_libdir.patch 31 +Patch2: lua-5.1_automake18.patch 32 +# 33 +Summary: Powerful light-weight programming language 34 + 35 +%description 36 +Lua is a powerful light-weight programming language designed for 37 +extending applications. Lua is also frequently used as a 38 +general-purpose, stand-alone language. Lua is free software. 39 +Lua combines simple procedural syntax with powerful data description 40 +constructs based on associative arrays and extensible semantics. Lua 41 +is dynamically typed, interpreted from bytecodes, and has automatic 42 +memory management with garbage collection, making it ideal for 43 +configuration, scripting, and rapid prototyping. 44 + 45 +%package libs 46 +Summary: Development files for %{pkg_name} 47 +Group: Development/Languages/Lua 48 + 49 +%description libs 50 +Libraries for lua 5.1 51 + 52 +%package devel 53 +Summary: Development files for %{pkg_name} 54 +Group: Development/Languages/Lua 55 +Requires: %{name} = %{version}-%{release} 56 +Requires: ncurses-devel, readline-devel, pkgconfig 57 + 58 +%description devel 59 +This package contains development files for %{pkg_name}. 60 + 61 +%prep 62 +%setup -q -n %{pkg_name}-%{version} 63 +%patch0 -p1 64 +%patch1 65 +%patch2 66 +%{__cp} %{S:1} . 67 + 68 +%build 69 +# fix perms on auto files 70 +chmod u+x autogen.sh config.guess config.sub configure depcomp install-sh missing 71 +./autogen.sh 72 +%configure --with-readline 73 +%{__make} 74 + 75 +%install 76 +%makeinstall -C src 77 +find %{buildroot} -type f -name "*.la" -exec rm -f {} ';' 78 +%{__install} -d -m 0755 %{buildroot}{%{_datadir},%{_libdir}}/lua/%{pkg_major}/ %{buildroot}%{_mandir}/man1/ 79 +%{__install} -m 0644 doc/*.1 %{buildroot}%{_mandir}/man1/ 80 +%{__install} -m 0644 -D etc/lua.pc %{buildroot}%{_libdir}/pkgconfig/lua.pc 81 + 82 +%clean 83 +%{__rm} -rf %{buildroot} 84 + 85 +%post -p /sbin/ldconfig 86 + 87 +%postun -p /sbin/ldconfig 88 + 89 +%files 90 +%defattr(-,root,root,-) 91 +%doc COPYRIGHT HISTORY README doc/*.html doc/*.gif *.pdf 92 +%{_bindir}/lua* 93 +%{_mandir}/man1/lua*.1* 94 + 95 +%files libs 96 +%defattr(-,root,root,-) 97 +%{_libdir}/liblua-*.so 98 +%dir %{_datadir}/lua/ 99 +%dir %{_libdir}/lua/ 100 +%dir %{_datadir}/lua/%{pkg_major}/ 101 +%dir %{_libdir}/lua/%{pkg_major}/ 102 + 103 +%files devel 104 +%defattr(-,root,root,-) 105 +%{_includedir}/l*.h 106 +%{_libdir}/liblua.so 107 +%{_libdir}/*.a 108 +%{_libdir}/pkgconfig/*.pc 109 + 110 +%changelog -n lua51 111 +* Mon Nov 27 2006 - mrueckert@suse.de 112 +- actually build again 113 |
||
[+] | Added | lua-5.1-autotoolize-r1.patch.bz2 ^ |
@@ -0,0 +1,43604 @@ +diff -urN lua-5.1/aclocal.m4 lua-at-5.1/aclocal.m4 +--- lua-5.1/aclocal.m4 1970-01-01 02:00:00.000000000 +0200 ++++ lua-at-5.1/aclocal.m4 2006-05-06 11:02:39.000000000 +0300 +@@ -0,0 +1,7307 @@ ++# generated automatically by aclocal 1.9.6 -*- Autoconf -*- ++ ++# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, ++# 2005 Free Software Foundation, Inc. ++# This file is free software; the Free Software Foundation ++# gives unlimited permission to copy and/or distribute it, ++# with or without modifications, as long as this notice is preserved. ++ ++# This program is distributed in the hope that it will be useful, ++# but WITHOUT ANY WARRANTY, to the extent permitted by law; without ++# even the implied warranty of MERCHANTABILITY or FITNESS FOR A ++# PARTICULAR PURPOSE. ++ ++# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- ++ ++# serial 48 AC_PROG_LIBTOOL ++ ++ ++# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) ++# ----------------------------------------------------------- ++# If this macro is not defined by Autoconf, define it here. ++m4_ifdef([AC_PROVIDE_IFELSE], ++ [], ++ [m4_define([AC_PROVIDE_IFELSE], ++ [m4_ifdef([AC_PROVIDE_$1], ++ [$2], [$3])])]) ++ ++ ++# AC_PROG_LIBTOOL ++# --------------- ++AC_DEFUN([AC_PROG_LIBTOOL], ++[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl ++dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX ++dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. ++ AC_PROVIDE_IFELSE([AC_PROG_CXX], ++ [AC_LIBTOOL_CXX], ++ [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX ++ ])]) ++dnl And a similar setup for Fortran 77 support ++ AC_PROVIDE_IFELSE([AC_PROG_F77], ++ [AC_LIBTOOL_F77], ++ [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 ++])]) ++ ++dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. ++dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run ++dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. ++ AC_PROVIDE_IFELSE([AC_PROG_GCJ], ++ [AC_LIBTOOL_GCJ], ++ [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], ++ [AC_LIBTOOL_GCJ], ++ [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], ++ [AC_LIBTOOL_GCJ], ++ [ifdef([AC_PROG_GCJ], ++ [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) ++ ifdef([A][M_PROG_GCJ], ++ [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) ++ ifdef([LT_AC_PROG_GCJ], ++ [define([LT_AC_PROG_GCJ], ++ defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) ++])])# AC_PROG_LIBTOOL ++ ++ ++# _AC_PROG_LIBTOOL ++# ---------------- ++AC_DEFUN([_AC_PROG_LIBTOOL], ++[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl ++AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl ++AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl ++AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl ++ ++# This can be used to rebuild libtool when needed ++LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" ++ ++# Always use our own libtool. ++LIBTOOL='$(SHELL) $(top_builddir)/libtool' ++AC_SUBST(LIBTOOL)dnl ++ ++# Prevent multiple expansion ++define([AC_PROG_LIBTOOL], []) ++])# _AC_PROG_LIBTOOL ++ ++ ++# AC_LIBTOOL_SETUP ++# ---------------- ++AC_DEFUN([AC_LIBTOOL_SETUP], ++[AC_PREREQ(2.50)dnl ++AC_REQUIRE([AC_ENABLE_SHARED])dnl ++AC_REQUIRE([AC_ENABLE_STATIC])dnl ++AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl ++AC_REQUIRE([AC_CANONICAL_HOST])dnl ++AC_REQUIRE([AC_CANONICAL_BUILD])dnl ++AC_REQUIRE([AC_PROG_CC])dnl ++AC_REQUIRE([AC_PROG_LD])dnl ++AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl ++AC_REQUIRE([AC_PROG_NM])dnl ++ ++AC_REQUIRE([AC_PROG_LN_S])dnl ++AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl ++# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! ++AC_REQUIRE([AC_OBJEXT])dnl ++AC_REQUIRE([AC_EXEEXT])dnl ++dnl ++ ++AC_LIBTOOL_SYS_MAX_CMD_LEN ++AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE ++AC_LIBTOOL_OBJDIR ++ ++AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl ++_LT_AC_PROG_ECHO_BACKSLASH ++ ++case $host_os in ++aix3*) ++ # AIX sometimes has problems with the GCC collect2 program. For some ++ # reason, if we set the COLLECT_NAMES environment variable, the problems ++ # vanish in a puff of smoke. ++ if test "X${COLLECT_NAMES+set}" != Xset; then ++ COLLECT_NAMES= ++ export COLLECT_NAMES ++ fi ++ ;; ++esac ++ ++# Sed substitution that helps us do robust quoting. It backslashifies ++# metacharacters that are still active within double-quoted strings. ++Xsed='sed -e 1s/^X//' ++[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] ++ ++# Same as above, but do not quote variable references. ++[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] ++ ++# Sed substitution to delay expansion of an escaped shell variable in a ++# double_quote_subst'ed string. ++delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' ++ ++# Sed substitution to avoid accidental globbing in evaled expressions ++no_glob_subst='s/\*/\\\*/g' ++ ++# Constants: ++rm="rm -f" ++ ++# Global variables: ++default_ofile=libtool ++can_build_shared=yes ++ ++# All known linkers require a `.a' archive for static linking (except MSVC, ++# which needs '.lib'). ++libext=a ++ltmain="$ac_aux_dir/ltmain.sh" ++ofile="$default_ofile" ++with_gnu_ld="$lt_cv_prog_gnu_ld" ++ ++AC_CHECK_TOOL(AR, ar, false) ++AC_CHECK_TOOL(RANLIB, ranlib, :) ++AC_CHECK_TOOL(STRIP, strip, :) ++ ++old_CC="$CC" ++old_CFLAGS="$CFLAGS" ++ ++# Set sane defaults for various variables ++test -z "$AR" && AR=ar ++test -z "$AR_FLAGS" && AR_FLAGS=cru ++test -z "$AS" && AS=as ++test -z "$CC" && CC=cc ++test -z "$LTCC" && LTCC=$CC ++test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS ++test -z "$DLLTOOL" && DLLTOOL=dlltool ++test -z "$LD" && LD=ld ++test -z "$LN_S" && LN_S="ln -s" ++test -z "$MAGIC_CMD" && MAGIC_CMD=file ++test -z "$NM" && NM=nm ++test -z "$SED" && SED=sed ++test -z "$OBJDUMP" && OBJDUMP=objdump ++test -z "$RANLIB" && RANLIB=: ++test -z "$STRIP" && STRIP=: ++test -z "$ac_objext" && ac_objext=o ++ ++# Determine commands to create old-style static archives. ++old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' ++old_postinstall_cmds='chmod 644 $oldlib' ++old_postuninstall_cmds= ++ ++if test -n "$RANLIB"; then ++ case $host_os in ++ openbsd*) ++ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" ++ ;; ++ *) ++ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" ++ ;; ++ esac ++ old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" ++fi ++ ++_LT_CC_BASENAME([$compiler]) | ||
[+] | Added | lua-5.1_automake18.patch ^ |
@@ -0,0 +1,13 @@ +Index: configure.ac +=================================================================== +--- configure.ac.orig ++++ configure.ac +@@ -4,7 +4,7 @@ + AC_CONFIG_HEADERS([config.h]) + AC_CONFIG_SRCDIR([src/lapi.c]) + +-AM_INIT_AUTOMAKE([1.9 foreign]) ++AM_INIT_AUTOMAKE() + + AC_PROG_CC + AC_PROG_LIBTOOL | ||
[+] | Added | lua51-5.1.1_pkgconfig_libdir.patch ^ |
@@ -0,0 +1,13 @@ +Index: etc/lua.pc.in +=================================================================== +--- etc/lua.pc.in.orig ++++ etc/lua.pc.in +@@ -1,7 +1,7 @@ + V= 5.1 + prefix= @prefix@ + exec_prefix=${prefix} +-libdir=${exec_prefix}/lib ++libdir=@libdir@ + includedir=${prefix}/include + + Name: Lua | ||
Added | lua-5.1.tar.gz ^ | |
[+] | Added | lua51-rpmlintrc ^ |
@@ -0,0 +1 @@ +addFilter("shlib-policy-name-error") | ||
[+] | Added | refman-5.0.pdf ^ |
@@ -0,0 +1,10015 @@ +%PDF-1.3 +5 0 obj +<< /S /GoTo /D (section.1) >> +endobj +8 0 obj +(Introduction) +endobj +9 0 obj +<< /S /GoTo /D (section.2) >> +endobj +12 0 obj +(The Language) +endobj +13 0 obj +<< /S /GoTo /D (subsection.2.1) >> +endobj +16 0 obj +(Lexical Conventions) +endobj +17 0 obj +<< /S /GoTo /D (subsection.2.2) >> +endobj +20 0 obj +(Values and Types) +endobj +21 0 obj +<< /S /GoTo /D (subsubsection.2.2.1) >> +endobj +24 0 obj +(Coercion) +endobj +25 0 obj +<< /S /GoTo /D (subsection.2.3) >> +endobj +28 0 obj +(Variables) +endobj +29 0 obj +<< /S /GoTo /D (subsection.2.4) >> +endobj +32 0 obj +(Statements) +endobj +33 0 obj +<< /S /GoTo /D (subsubsection.2.4.1) >> +endobj +36 0 obj +(Chunks) +endobj +37 0 obj +<< /S /GoTo /D (subsubsection.2.4.2) >> +endobj +40 0 obj +(Blocks) +endobj +41 0 obj +<< /S /GoTo /D (subsubsection.2.4.3) >> +endobj +44 0 obj +(Assignment) +endobj +45 0 obj +<< /S /GoTo /D (subsubsection.2.4.4) >> +endobj +48 0 obj +(Control Structures) +endobj +49 0 obj +<< /S /GoTo /D (subsubsection.2.4.5) >> +endobj +52 0 obj +(For Statement) +endobj +53 0 obj +<< /S /GoTo /D (subsubsection.2.4.6) >> +endobj +56 0 obj +(Function Calls as Statements) +endobj +57 0 obj +<< /S /GoTo /D (subsubsection.2.4.7) >> +endobj +60 0 obj +(Local Declarations) +endobj +61 0 obj +<< /S /GoTo /D (subsection.2.5) >> +endobj +64 0 obj +(Expressions) +endobj +65 0 obj +<< /S /GoTo /D (subsubsection.2.5.1) >> +endobj +68 0 obj +(Arithmetic Operators) +endobj +69 0 obj +<< /S /GoTo /D (subsubsection.2.5.2) >> +endobj +72 0 obj +(Relational Operators) +endobj +73 0 obj +<< /S /GoTo /D (subsubsection.2.5.3) >> +endobj +76 0 obj +(Logical Operators) +endobj +77 0 obj +<< /S /GoTo /D (subsubsection.2.5.4) >> +endobj +80 0 obj +(Concatenation) +endobj +81 0 obj +<< /S /GoTo /D (subsubsection.2.5.5) >> +endobj +84 0 obj +(Precedence) +endobj +85 0 obj +<< /S /GoTo /D (subsubsection.2.5.6) >> +endobj +88 0 obj +(Table Constructors) +endobj +89 0 obj +<< /S /GoTo /D (subsubsection.2.5.7) >> +endobj +92 0 obj +(Function Calls) +endobj +93 0 obj +<< /S /GoTo /D (subsubsection.2.5.8) >> +endobj +96 0 obj +(Function Definitions) +endobj +97 0 obj +<< /S /GoTo /D (subsection.2.6) >> +endobj +100 0 obj +(Visibility Rules) +endobj +101 0 obj +<< /S /GoTo /D (subsection.2.7) >> +endobj +104 0 obj +(Error Handling) +endobj +105 0 obj +<< /S /GoTo /D (subsection.2.8) >> +endobj +108 0 obj +(Metatables) +endobj +109 0 obj +<< /S /GoTo /D (subsection.2.9) >> +endobj +112 0 obj +(Garbage Collection) +endobj +113 0 obj +<< /S /GoTo /D (subsubsection.2.9.1) >> +endobj +116 0 obj +(Garbage-Collection Metamethods) +endobj +117 0 obj +<< /S /GoTo /D (subsubsection.2.9.2) >> +endobj +120 0 obj +(Weak Tables) +endobj +121 0 obj +<< /S /GoTo /D (subsection.2.10) >> +endobj +124 0 obj +(Coroutines) +endobj +125 0 obj +<< /S /GoTo /D (section.3) >> +endobj +128 0 obj +(The Application Program Interface) +endobj +129 0 obj +<< /S /GoTo /D (subsection.3.1) >> +endobj +132 0 obj +(States) +endobj +133 0 obj +<< /S /GoTo /D (subsection.3.2) >> +endobj +136 0 obj +(The Stack and Indices) +endobj |