lua-filesystem-vl.spec 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. %define luaver 5.1
  2. %define lualibdir %{_libdir}/lua/%{luaver}
  3. %define luapkgdir %{_datadir}/lua/%{luaver}
  4. Name: lua-filesystem
  5. Version: 1.4.2
  6. Release: 1%{?_dist_release}
  7. Summary: File System Library for the Lua Programming Language
  8. Summary(ja): プログラミング言語 Lua 用のファイルシステムライブラリ
  9. Group: Development/Libraries
  10. License: MIT
  11. URL: http://www.keplerproject.org/luafilesystem/
  12. Source0: http://luaforge.net/frs/download.php/3931/luafilesystem-1.4.2.tar.gz
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  14. BuildRequires: lua >= %{luaver}, lua-devel >= %{luaver}
  15. Requires: lua
  16. %description
  17. LuaFileSystem is a Lua library developed to complement the set of functions
  18. related to file systems offered by the standard Lua distribution.
  19. LuaFileSystem offers a portable way to access the underlying directory
  20. structure and file attributes.
  21. %prep
  22. %setup -q -n luafilesystem-%{version}
  23. %build
  24. make %{?_smp_mflags} PREFIX=%{_prefix} LUA_LIBDIR=%{lualibdir} CFLAGS="%{optflags} -fPIC"
  25. %install
  26. rm -rf $RPM_BUILD_ROOT
  27. make install PREFIX=$RPM_BUILD_ROOT%{_prefix} LUA_LIBDIR=$RPM_BUILD_ROOT%{lualibdir}
  28. %clean
  29. rm -rf $RPM_BUILD_ROOT
  30. %files
  31. %defattr(-,root,root,-)
  32. %doc doc/us/*
  33. %doc README
  34. %{lualibdir}/*
  35. %changelog
  36. * Thu May 12 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.2-1
  37. - initial build for Vine Linux
  38. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.2-2
  39. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  40. * Tue Sep 29 2009 Tim Niemueller <tim@niemueller.de> - 1.4.2-1
  41. - Upgrade to latest stable release
  42. * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.1-3
  43. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  44. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.1-2
  45. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  46. * Thu May 08 2008 Tim Niemueller <tim@niemueller.de> - 1.4.1-1
  47. - Upgrade to latest stable release
  48. * Sat Apr 05 2008 Tim Niemueller <tim@niemueller.de> - 1.4.0-3
  49. - Add patch to add missing include of stdlib.h
  50. * Sat Apr 05 2008 Tim Niemueller <tim@niemueller.de> - 1.4.0-2
  51. - Pass correct CFLAGS to make to produce proper debuginfo
  52. * Fri Apr 04 2008 Tim Niemueller <tim@niemueller.de> - 1.4.0-1
  53. - Initial package