|
@@ -0,0 +1,72 @@
|
|
|
|
+%define luaver 5.1
|
|
|
|
+%define lualibdir %{_libdir}/lua/%{luaver}
|
|
|
|
+%define luapkgdir %{_datadir}/lua/%{luaver}
|
|
|
|
+
|
|
|
|
+Name: lua-posix
|
|
|
|
+Version: 5.1.7
|
|
|
|
+Release: 1%{?_dist_release}
|
|
|
|
+Summary: A POSIX library for Lua
|
|
|
|
+Summary(ja): Lua の POSIX ライブラリ
|
|
|
|
+
|
|
|
|
+Group: Development/Libraries
|
|
|
|
+License: Public Domain
|
|
|
|
+URL: http://luaforge.net/projects/luaposix/
|
|
|
|
+Source0: http://git.alpinelinux.org/cgit/luaposix/snapshot/luaposix-5.1.7.tar.bz2
|
|
|
|
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
|
+
|
|
|
|
+BuildRequires: lua >= %{luaver}, lua-devel >= %{luaver}
|
|
|
|
+Requires: lua
|
|
|
|
+
|
|
|
|
+%description
|
|
|
|
+This is a POSIX library for Lua which provides access to many POSIX features
|
|
|
|
+to Lua programs.
|
|
|
|
+
|
|
|
|
+%prep
|
|
|
|
+%setup -q -n luaposix-%{version}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+%build
|
|
|
|
+make %{?_smp_mflags} PREFIX=%{_prefix} LUALIB=%{lualibdir} LUABIN=%{_bindir} CFLAGS="%{optflags} -fPIC"
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+%install
|
|
|
|
+rm -rf $RPM_BUILD_ROOT
|
|
|
|
+make install DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_prefix} LUALIB=%{lualibdir}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+%clean
|
|
|
|
+rm -rf $RPM_BUILD_ROOT
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+%files
|
|
|
|
+%defattr(-,root,root,-)
|
|
|
|
+%doc README ChangeLog
|
|
|
|
+%{lualibdir}/*
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+%changelog
|
|
|
|
+* Thu May 12 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 5.1.7-1
|
|
|
|
+- initial build for Vine Linux
|
|
|
|
+
|
|
|
|
+* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.7-2
|
|
|
|
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
+
|
|
|
|
+* Sun Aug 15 2010 Tim Niemueller <tim@niemueller.de> - 5.1.7-1
|
|
|
|
+- Update to 5.1.7
|
|
|
|
+- Add -fPIC to CFLAGS
|
|
|
|
+
|
|
|
|
+* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.4-3
|
|
|
|
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
+
|
|
|
|
+* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.4-2
|
|
|
|
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
+
|
|
|
|
+* Mon Dec 22 2008 Tim Niemueller <tim@niemueller.de> - 5.1.4-1
|
|
|
|
+- Update to 5.1.4
|
|
|
|
+
|
|
|
|
+* Sat Apr 05 2008 Tim Niemueller <tim@niemueller.de> - 5.1.2-2
|
|
|
|
+- Set proper CFLAGS for valid debuginfo
|
|
|
|
+
|
|
|
|
+* Fri Apr 04 2008 Tim Niemueller <tim@niemueller.de> - 5.1.2-1
|
|
|
|
+- Initial package
|
|
|
|
+
|