[521] | 1 | %define name lua |
---|
| 2 | %define version 5.1.4 |
---|
[1897] | 3 | %define release 4%{?_dist_release} |
---|
[521] | 4 | |
---|
| 5 | Summary: Lua is a powerful, light-weight programming language designed for extending applications. |
---|
| 6 | Name: %{name} |
---|
| 7 | Version: %{version} |
---|
| 8 | Release: %{release} |
---|
| 9 | Source0: http://www.lua.org/ftp/%{name}-%{version}.tar.gz |
---|
| 10 | Patch0: lua-5.1.4-autotoolize.patch |
---|
| 11 | License: MIT (Lua 5.0 license) |
---|
| 12 | Group: Development/Languages |
---|
| 13 | URL: http://www.lua.org/ |
---|
| 14 | |
---|
| 15 | #Requires: |
---|
| 16 | BuildRequires: readline-devel, ncurses-devel |
---|
| 17 | # apt-get remove readline-devel |
---|
| 18 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 19 | |
---|
| 20 | Provides: lua = 5.1 |
---|
| 21 | |
---|
| 22 | %description |
---|
| 23 | Lua is an extension programming language designed to support |
---|
| 24 | general procedural programming with data description facilities. |
---|
| 25 | It also offers good support for object-oriented programming, |
---|
| 26 | functional programming, and data-driven programming. |
---|
| 27 | Lua is intended to be used as a powerful, light-weight configuration language |
---|
| 28 | for any program that needs one. |
---|
| 29 | Lua is implemented as a library, written in clean C |
---|
| 30 | (that is, in the common subset of ANSI C and C++). |
---|
| 31 | |
---|
| 32 | %description -l ja |
---|
| 33 | Luaは拡張プログラミング言語である。データ記述機能を持ち、 |
---|
| 34 | 汎用の手続き型プログラミングをサポートするようデザインされた。 |
---|
| 35 | オブジェクト指向プログラミング、関数型プログラミング、 |
---|
| 36 | データ駆動型プログラミングもサポートしている。 |
---|
| 37 | Luaは、パワフルで軽いコンフィギュレーション言語としての意図もあり、 |
---|
| 38 | コンフィギュレーションが必要なあらゆるプログラムに使うことができる。 |
---|
| 39 | Luaは クリーンな C (つまり、ANSI C と C++ の共通のサブセット) で書かれ、 |
---|
| 40 | ライブラリとして実装されている。 |
---|
| 41 | |
---|
| 42 | |
---|
| 43 | %package devel |
---|
| 44 | Summary: Libraries and include files for Lua. |
---|
| 45 | Group: Development/Languages |
---|
| 46 | Requires: %{name} = %{version}-%{release} |
---|
| 47 | Requires: ncurses-devel, pkgconfig |
---|
| 48 | |
---|
| 49 | %description devel |
---|
| 50 | Libraries and include files for Lua. |
---|
| 51 | |
---|
| 52 | %package static |
---|
| 53 | Summary: Static library for %{name} |
---|
| 54 | Group: System Environment/Libraries |
---|
| 55 | Requires: %{name} = %{version}-%{release} |
---|
| 56 | |
---|
| 57 | %description static |
---|
| 58 | This package contains the static version of liblua for %{name}. |
---|
| 59 | |
---|
| 60 | |
---|
| 61 | %prep |
---|
| 62 | rm -rf ${RPM_BUILD_ROOT} |
---|
| 63 | |
---|
| 64 | %setup -q |
---|
| 65 | %patch0 -p1 -E |
---|
| 66 | # fix perms on auto files |
---|
| 67 | chmod u+x \ |
---|
| 68 | autogen.sh config.guess config.sub configure depcomp install-sh missing |
---|
| 69 | |
---|
| 70 | %build |
---|
| 71 | %configure --with-readline |
---|
| 72 | sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool |
---|
| 73 | sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool |
---|
| 74 | # hack so that only /usr/bin/lua gets linked with readline as it is the |
---|
| 75 | # only one which needs this and otherwise we get License troubles |
---|
| 76 | make %{?_smp_mflags} LIBS="-lm -ldl" luac_LDADD="liblua.la -lm -ldl" |
---|
| 77 | # also remove readline from lua.pc |
---|
| 78 | sed -i 's/-lreadline -lncurses //g' etc/lua.pc |
---|
| 79 | |
---|
| 80 | |
---|
| 81 | %install |
---|
| 82 | rm -rf $RPM_BUILD_ROOT |
---|
| 83 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
| 84 | rm $RPM_BUILD_ROOT%{_libdir}/*.la |
---|
| 85 | mkdir -p $RPM_BUILD_ROOT%{_libdir}/lua/5.1 |
---|
| 86 | mkdir -p $RPM_BUILD_ROOT%{_datadir}/lua/5.1 |
---|
| 87 | |
---|
| 88 | |
---|
| 89 | %clean |
---|
| 90 | rm -rf ${RPM_BUILD_ROOT} |
---|
| 91 | |
---|
| 92 | |
---|
| 93 | %files |
---|
| 94 | %defattr(-,root,root,-) |
---|
| 95 | %doc COPYRIGHT HISTORY README doc/*.html doc/*.gif |
---|
| 96 | %{_bindir}/lua* |
---|
| 97 | %{_libdir}/liblua-*.so |
---|
| 98 | %{_mandir}/man1/lua*.1* |
---|
| 99 | %dir %{_libdir}/lua |
---|
| 100 | %dir %{_libdir}/lua/5.1 |
---|
| 101 | %dir %{_datadir}/lua |
---|
| 102 | %dir %{_datadir}/lua/5.1 |
---|
| 103 | |
---|
| 104 | %files devel |
---|
| 105 | %defattr(-,root,root,-) |
---|
| 106 | %{_includedir}/l*.h |
---|
| 107 | %{_includedir}/l*.hpp |
---|
| 108 | %{_libdir}/liblua.so |
---|
| 109 | %{_libdir}/pkgconfig/*.pc |
---|
| 110 | |
---|
| 111 | %files static |
---|
| 112 | %defattr(-,root,root,-) |
---|
| 113 | %{_libdir}/*.a |
---|
| 114 | |
---|
| 115 | |
---|
| 116 | %changelog |
---|
[1897] | 117 | * Sat Sep 25 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 5.1.4-4 |
---|
| 118 | - rebuild with rpm-4.8.1 for pkg-config file |
---|
| 119 | |
---|
[521] | 120 | * Fri Feb 12 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 5.1.4-3 |
---|
| 121 | - rebuilt with gcc-4.4.3-3 on ppc |
---|
| 122 | |
---|
| 123 | * Fri Feb 5 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 5.1.4-2 |
---|
| 124 | - rebuilt with rpm-4.8.0-3 (on ppc) |
---|
| 125 | |
---|
| 126 | * Wed Feb 03 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 5.1.4-1 |
---|
| 127 | - new upstream release |
---|
| 128 | - add lua-static subpackage |
---|
| 129 | |
---|
| 130 | * Sat Jul 26 2008 Shu KONNO <owa@bg.wakwak.com> 5.1.2-1vl5 |
---|
| 131 | - applied new versioning policy and spec in utf-8 |
---|
| 132 | |
---|
| 133 | * Sun Aug 5 2007 Munehiro Yamamoto <myamamoto@g.math.s.chiba-u.ac.jp> 5.1.2-0vl2 |
---|
| 134 | - rebuild for VineSeed |
---|
| 135 | |
---|
| 136 | * Sun Aug 5 2007 Munehiro Yamamoto <myamamoto@g.math.s.chiba-u.ac.jp> 5.1.2-0vl1 |
---|
| 137 | - initial build for Vine Linux 4.1 |
---|
| 138 | - source update |
---|
| 139 | |
---|
| 140 | * Sat Aug 4 2007 Munehiro Yamamoto <myamamoto@g.math.s.chiba-u.ac.jp> 5.1.1-0vlmp1 |
---|
| 141 | - rebuild for Vine Linux 4.1 |
---|
| 142 | |
---|
| 143 | * Fri Jan 19 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 5.1.1-3 |
---|
| 144 | - Remove "-lreadline -lncurses" from lua.pc (bz 213895) |
---|
| 145 | |
---|
| 146 | * Sun Oct 15 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 5.1.1-2 |
---|
| 147 | - Only link /usr/bin/lua with readline / do not link %%{_libdir}/liblua-5.1.so |
---|
| 148 | with readline so that we don't cause any License troubles for packages |
---|
| 149 | linking against liblua-5.1.so, otherwise lua could drag the GPL only readline |
---|
| 150 | lib into the linking of non GPL apps. |
---|
| 151 | |
---|
| 152 | * Sat Oct 14 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 5.1.1-1 |
---|
| 153 | - New upstream release 5.1.1 |
---|
| 154 | - Fix detection of readline during compile (iow add readline support back) |
---|
| 155 | |
---|
| 156 | * Sat Jul 23 2005 Munehiro Yamamoto <myamamoto@g.math.s.chiba-u.ac.jp> 5.0.2vlmp1 |
---|
| 157 | - initial build for Vine Linux 3.2 |
---|