lua-posix-vl.spec 2.0 KB

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