lua-std.spec 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. ##
  2. ## lua-std.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ##
  5. ## Permission to use, copy, modify, and distribute this software for
  6. ## any purpose with or without fee is hereby granted, provided that
  7. ## the above copyright notice and this permission notice appear in all
  8. ## copies.
  9. ##
  10. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  11. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  12. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  13. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  14. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  15. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  16. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  17. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  18. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  19. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  20. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  21. ## SUCH DAMAGE.
  22. ##
  23. # package version
  24. %define V_lua 5.1
  25. %define V_std 10
  26. %define V_subdir 3980
  27. # package information
  28. Name: lua-std
  29. Summary: Lua Extension: Standard Libraries
  30. URL: http://luaforge.net/projects/stdlib/
  31. Vendor: Reuben Thomas et al.
  32. Packager: OpenPKG Foundation e.V.
  33. Distribution: OpenPKG Community
  34. Class: EVAL
  35. Group: Language
  36. License: MIT
  37. Version: %{V_std}
  38. Release: 20090313
  39. # list of sources
  40. Source0: http://luaforge.net/frs/download.php/%{V_subdir}/stdlib-%{V_std}.tar.gz
  41. # build information
  42. Prefix: %{l_prefix}
  43. BuildRoot: %{l_buildroot}
  44. BuildPreReq: OpenPKG, openpkg >= 20060823, gcc
  45. PreReq: OpenPKG, openpkg >= 20060823
  46. BuildPreReq: lua
  47. PreReq: lua, lua-regex
  48. AutoReq: no
  49. AutoReqProv: no
  50. %description
  51. This is the Lua extension package for standard library functions.
  52. %track
  53. prog lua-std = {
  54. version = %{V_std}
  55. url = http://luaforge.net/frs/?group_id=174
  56. regex = stdlib-(__VER__)\.tar\.gz
  57. }
  58. prog lua-std:subdir = {
  59. version = %{V_subdir}
  60. url = http://luaforge.net/frs/?group_id=174
  61. regex = download\.php/(\d+)/stdlib-(__VER__)\.tar\.gz
  62. }
  63. %prep
  64. %setup -q -n stdlib
  65. %build
  66. %install
  67. rm -rf $RPM_BUILD_ROOT
  68. %{l_shtool} mkdir -f -p -m 755 \
  69. $RPM_BUILD_ROOT%{l_prefix}/share/lua/%{V_lua}
  70. %{l_shtool} install -c -m 644 \
  71. modules/* $RPM_BUILD_ROOT%{l_prefix}/share/lua/%{V_lua}/
  72. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  73. %files -f files
  74. %clean
  75. rm -rf $RPM_BUILD_ROOT