ruby.spec 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. ##
  2. ## ruby.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2017 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 versions
  24. %define V_dist 2.4.2
  25. %define V_subdir 2.4.2
  26. %define V_opkg 2.4.2
  27. # package information
  28. Name: ruby
  29. Summary: The Ruby Scripting Language
  30. URL: http://www.ruby-lang.org/
  31. Vendor: Yukihiro 'Matz' Matsumoto
  32. Packager: OpenPKG Foundation e.V.
  33. Distribution: OpenPKG Community
  34. Class: BASE
  35. Group: Language
  36. License: GPL
  37. Version: %{V_opkg}
  38. Release: 20170915
  39. # list of sources
  40. Source0: ftp://ftp.ruby-lang.org/pub/ruby/ruby-%{V_dist}.tar.xz
  41. # build information
  42. BuildPreReq: OpenPKG, openpkg >= 20160101, make, gcc
  43. PreReq: OpenPKG, openpkg >= 20160101
  44. BuildPreReq: ncurses, openssl, readline, zlib
  45. PreReq: ncurses, openssl, readline, zlib
  46. %description
  47. Ruby is an interpreted scripting language for quick and easy
  48. object-oriented programming. It has many features to process text
  49. files and to do system management tasks (as in Perl). It is simple,
  50. straight-forward, extensible, and portable.
  51. %track
  52. prog ruby = {
  53. version = %{V_dist}
  54. url = ftp://ftp.ruby-lang.org/pub/ruby/
  55. regex = ruby-(\d+\.\d+\.\d+)\.tar\.gz
  56. }
  57. %prep
  58. %setup -q -n ruby-%{V_subdir}
  59. %build
  60. CC="%{l_cc}" \
  61. CFLAGS="%{l_cflags -O} %{l_cppflags}" \
  62. GREP="grep" \
  63. ./configure \
  64. --prefix=%{l_prefix} \
  65. --mandir=%{l_prefix}/man \
  66. --with-ldflags="%{l_ldflags}" \
  67. --disable-dtrace \
  68. --disable-shared
  69. %{l_make} %{l_mflags}
  70. %install
  71. %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}
  72. %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
  73. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  74. rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/ri/*/system/IRB/*MagicFile*
  75. rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/ri/*/system/Set/dig*
  76. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  77. %files -f files
  78. %clean