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