MySQL-ruby-vl.spec 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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. Name: MySQL-ruby
  10. Summary: mysql module for Ruby
  11. Summary(ja): Ruby 用の MySQL 拡張モジュール
  12. Version: 2.8.2
  13. Release: 1%{?_dist_release}
  14. Group: Development/Libraries
  15. License: distributable
  16. URL: http://www.tmtm.org/mysql/ruby/
  17. Source: http://www.tmtm.org/mysql/ruby/%{oname}-%{version}.tar.gz
  18. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  19. BuildRequires: ruby
  20. BuildRequires: ruby-devel >= 1.8.1
  21. BuildRequires: MySQL-devel
  22. Requires: libruby >= 1.8.1
  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 sitearchdir=$RPM_BUILD_ROOT%{rarchdir}
  39. #_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 COPYING COPYING.ja README.html README_ja.html tommy.css test.rb
  51. %changelog
  52. * Sat Apr 16 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.8.2-1
  53. - updated to 2.8.2
  54. - built with MySQL-5.1.56
  55. * Fri May 22 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.7.6-2
  56. - rebuilt with MySQL-5.1.34.
  57. * Thu Sep 25 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.7.6-1vl5
  58. - new upstream release
  59. - applied new versioning policy
  60. - spec in UTF-8
  61. - built with MySQL-5.0.51a and ruby-1.8.7
  62. - used --with-mysql-config at configure
  63. - removed BuildRequires: MySQL-shared
  64. * Wed Nov 22 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.5-0vl3
  65. - rebuilt with MySQL 5.0.27
  66. * Tue Oct 24 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.5-0vl2
  67. - rebuilt for Vine Linux 4.0
  68. * Wed Sep 1 2004 Takeyuki FUJIOKA <fuj@rabbix.jp> 2.5-0vl1
  69. - update mysql-ruby-2.5
  70. * Tue Aug 24 2004 Satoshi MACHINO <machino@vinelinux.org> 2.4.5-0vl1
  71. - new upstream version (mysql-ruby-2.4.5)
  72. - adde some defines for ruby in spec file
  73. - changed to use %%setup -q -n %{oname}-%{over}
  74. - added MySQL-shared in BuildRequires
  75. - build with ruby-1.8.1
  76. * Thu Jun 13 2002 Satoshi MACHINO <machino@vinelinux.org> 2.4.2a-0vl2
  77. - added README.ja
  78. * Thu Apr 04 2002 Satoshi MACHINO <machino@vinelinux.org> 2.4.2a-0vl1
  79. - update mysql-ruby-2.4.2a
  80. - changed License tag from Copylight
  81. * Wed Jan 09 2002 Satoshi MACHINO <machino@vinelinux.org> 2.4.2-0vl1
  82. - update mysql-ruby-2.4.2
  83. - update BuildPreReq's ruby version to 1.6.6-0vl3
  84. * Mon Oct 15 2001 akira yamada <akira@redhat.com> 2.4-0vl1
  85. - new upstream version.
  86. - mysql-ruby-2.3.1-extconf.rb.patch is no longer needed.
  87. * Thu Jul 26 2001 akira yamada <akira@redhat.com>
  88. - rebuild with ruby-devel-1.6.4-0vl3.
  89. * Mon Apr 23 2001 akira yamada <akira@redhat.com>
  90. - new upsteram version 2.3.2a.
  91. * Mon Apr 23 2001 akira yamada <akira@redhat.com>
  92. - Initial packaging.