[3854] | 1 | %define luaver 5.1 |
---|
| 2 | %define lualibdir %{_libdir}/lua/%{luaver} |
---|
| 3 | %define luapkgdir %{_datadir}/lua/%{luaver} |
---|
| 4 | |
---|
| 5 | Name: lua-posix |
---|
| 6 | Version: 5.1.7 |
---|
| 7 | Release: 1%{?_dist_release} |
---|
| 8 | Summary: A POSIX library for Lua |
---|
| 9 | Summary(ja): Lua の POSIX ライブラリ |
---|
| 10 | |
---|
| 11 | Group: Development/Libraries |
---|
| 12 | License: Public Domain |
---|
| 13 | URL: http://luaforge.net/projects/luaposix/ |
---|
| 14 | Source0: http://git.alpinelinux.org/cgit/luaposix/snapshot/luaposix-5.1.7.tar.bz2 |
---|
| 15 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
| 16 | |
---|
| 17 | BuildRequires: lua >= %{luaver}, lua-devel >= %{luaver} |
---|
| 18 | Requires: lua |
---|
| 19 | |
---|
| 20 | %description |
---|
| 21 | This is a POSIX library for Lua which provides access to many POSIX features |
---|
| 22 | to Lua programs. |
---|
| 23 | |
---|
| 24 | %prep |
---|
| 25 | %setup -q -n luaposix-%{version} |
---|
| 26 | |
---|
| 27 | |
---|
| 28 | %build |
---|
| 29 | make %{?_smp_mflags} PREFIX=%{_prefix} LUALIB=%{lualibdir} LUABIN=%{_bindir} CFLAGS="%{optflags} -fPIC" |
---|
| 30 | |
---|
| 31 | |
---|
| 32 | %install |
---|
| 33 | rm -rf $RPM_BUILD_ROOT |
---|
| 34 | make install DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_prefix} LUALIB=%{lualibdir} |
---|
| 35 | |
---|
| 36 | |
---|
| 37 | %clean |
---|
| 38 | rm -rf $RPM_BUILD_ROOT |
---|
| 39 | |
---|
| 40 | |
---|
| 41 | %files |
---|
| 42 | %defattr(-,root,root,-) |
---|
| 43 | %doc README ChangeLog |
---|
| 44 | %{lualibdir}/* |
---|
| 45 | |
---|
| 46 | |
---|
| 47 | %changelog |
---|
| 48 | * Thu May 12 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 5.1.7-1 |
---|
| 49 | - initial build for Vine Linux |
---|
| 50 | |
---|
| 51 | * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.7-2 |
---|
| 52 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
| 53 | |
---|
| 54 | * Sun Aug 15 2010 Tim Niemueller <tim@niemueller.de> - 5.1.7-1 |
---|
| 55 | - Update to 5.1.7 |
---|
| 56 | - Add -fPIC to CFLAGS |
---|
| 57 | |
---|
| 58 | * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.4-3 |
---|
| 59 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
| 60 | |
---|
| 61 | * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.4-2 |
---|
| 62 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
| 63 | |
---|
| 64 | * Mon Dec 22 2008 Tim Niemueller <tim@niemueller.de> - 5.1.4-1 |
---|
| 65 | - Update to 5.1.4 |
---|
| 66 | |
---|
| 67 | * Sat Apr 05 2008 Tim Niemueller <tim@niemueller.de> - 5.1.2-2 |
---|
| 68 | - Set proper CFLAGS for valid debuginfo |
---|
| 69 | |
---|
| 70 | * Fri Apr 04 2008 Tim Niemueller <tim@niemueller.de> - 5.1.2-1 |
---|
| 71 | - Initial package |
---|
| 72 | |
---|