MySQL-ruby-vl.spec 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. %define oname mysql-ruby
  2. %define rbindir %(ruby -r rbconfig -e 'print Config::CONFIG["bindir"]')
  3. %define rlibdir %(ruby -r rbconfig -e 'print Config::CONFIG["rubylibdir"]')
  4. %define rarchdir %(ruby -r rbconfig -e 'print Config::CONFIG["archdir"]')
  5. %define rdatadir %(ruby -r rbconfig -e 'print Config::CONFIG["datadir"]')
  6. %define libdir %(ruby -r rbconfig -e 'print Config::CONFIG["libdir"]')
  7. %define incdir %(ruby -r rbconfig -e 'print Config::CONFIG["includedir"]')
  8. %define mandir %(ruby -r rbconfig -e 'print Config::CONFIG["mandir"]')
  9. Summary: mysql module for Ruby
  10. Name: MySQL-ruby
  11. Version: 2.7.6
  12. Release: 2%{?_dist_release}
  13. License: distributable
  14. Group: Development/Libraries
  15. Source: http://www.tmtm.org/mysql/ruby/%{oname}-%{version}.tar.gz
  16. URL: http://www.tmtm.org/mysql/ruby/
  17. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  18. BuildRequires: ruby
  19. BuildRequires: ruby-devel >= 1.8.1
  20. BuildRequires: MySQL-devel
  21. Requires: libruby >= 1.8.1
  22. Summary(ja): Ruby 用の MySQL 拡張モジュール
  23. %description
  24. This is MySQL Ruby API. This have same function as C API.
  25. %description -l ja
  26. これは MySQL の Ruby API です。MySQL の C API とほぼ同等の機能があります。
  27. %prep
  28. %setup -q -n %{oname}-%{version}
  29. %build
  30. ruby extconf.rb --with-mysql-config
  31. # --with-mysql-include-dir=%{_includedir}/mysql \
  32. # --with-mysql-lib-dir=%{_libdir}/mysql
  33. make
  34. %install
  35. rm -rf ${RPM_BUILD_ROOT}
  36. mkdir -p ${RPM_BUILD_ROOT}%{_libdir}
  37. # installing binaries ...
  38. make install prefix=${RPM_BUILD_ROOT}%{prefix} \
  39. sitedir=${RPM_BUILD_ROOT}%{_libdir}/ruby
  40. (find \
  41. $RPM_BUILD_ROOT%{_libdir} \
  42. -type f -o -type l) |
  43. sort | sed -e "s,^$RPM_BUILD_ROOT,," > MySQL-ruby.files
  44. %clean
  45. rm -rf ${RPM_BUILD_ROOT}
  46. %pre
  47. %post
  48. %files -f MySQL-ruby.files
  49. %defattr(-, root, root)
  50. %doc README.html README_ja.html test.rb
  51. %changelog
  52. * Fri May 22 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.7.6-2
  53. - rebuilt with MySQL-5.1.34.
  54. * Thu Sep 25 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.7.6-1vl5
  55. - new upstream release
  56. - applied new versioning policy
  57. - spec in UTF-8
  58. - built with MySQL-5.0.51a and ruby-1.8.7
  59. - used --with-mysql-config at configure
  60. - removed BuildRequires: MySQL-shared
  61. * Wed Nov 22 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.5-0vl3
  62. - rebuilt with MySQL 5.0.27
  63. * Tue Oct 24 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.5-0vl2
  64. - rebuilt for Vine Linux 4.0
  65. * Wed Sep 1 2004 Takeyuki FUJIOKA <fuj@rabbix.jp> 2.5-0vl1
  66. - update mysql-ruby-2.5
  67. * Tue Aug 24 2004 Satoshi MACHINO <machino@vinelinux.org> 2.4.5-0vl1
  68. - new upstream version (mysql-ruby-2.4.5)
  69. - adde some defines for ruby in spec file
  70. - changed to use %%setup -q -n %{oname}-%{over}
  71. - added MySQL-shared in BuildRequires
  72. - build with ruby-1.8.1
  73. * Thu Jun 13 2002 Satoshi MACHINO <machino@vinelinux.org> 2.4.2a-0vl2
  74. - added README.ja
  75. * Thu Apr 04 2002 Satoshi MACHINO <machino@vinelinux.org> 2.4.2a-0vl1
  76. - update mysql-ruby-2.4.2a
  77. - changed License tag from Copylight
  78. * Wed Jan 09 2002 Satoshi MACHINO <machino@vinelinux.org> 2.4.2-0vl1
  79. - update mysql-ruby-2.4.2
  80. - update BuildPreReq's ruby version to 1.6.6-0vl3
  81. * Mon Oct 15 2001 akira yamada <akira@redhat.com> 2.4-0vl1
  82. - new upstream version.
  83. - mysql-ruby-2.3.1-extconf.rb.patch is no longer needed.
  84. * Thu Jul 26 2001 akira yamada <akira@redhat.com>
  85. - rebuild with ruby-devel-1.6.4-0vl3.
  86. * Mon Apr 23 2001 akira yamada <akira@redhat.com>
  87. - new upsteram version 2.3.2a.
  88. * Mon Apr 23 2001 akira yamada <akira@redhat.com>
  89. - Initial packaging.