MySQL-ruby-vl.spec 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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: 2%{?_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.9.3
  21. BuildRequires: MySQL-devel
  22. Requires: ruby(abi) = 1.9.1
  23. Provides: ruby(mysql) = %{version}
  24. %description
  25. This is MySQL Ruby API. This have same function as C API.
  26. %description -l ja
  27. これは MySQL の Ruby API です.MySQL の C API とほぼ同等の機能があります.
  28. %prep
  29. %setup -q -n %{oname}-%{version}
  30. %build
  31. export CONFIGURE_ARGS="--with-cflags='%{optflags}'"
  32. ruby extconf.rb --vendor --with-mysql-config
  33. make %{?_smp_mflags}
  34. %install
  35. rm -rf $RPM_BUILD_ROOT
  36. mkdir -p $RPM_BUILD_ROOT%{_libdir}
  37. # installing binaries ...
  38. env DESTDIR=$RPM_BUILD_ROOT make install
  39. %clean
  40. rm -rf $RPM_BUILD_ROOT
  41. %pre
  42. %post
  43. %files
  44. %defattr(-, root, root)
  45. %doc COPYING COPYING.ja README.html README_ja.html tommy.css test.rb
  46. %{ruby_vendorarchdir}/mysql.so
  47. %changelog
  48. * Fri Oct 26 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.8.2-2
  49. - rebuild with ruby-1.9.3
  50. * Sat Apr 16 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.8.2-1
  51. - updated to 2.8.2
  52. - built with MySQL-5.1.56
  53. * Fri May 22 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.7.6-2
  54. - rebuilt with MySQL-5.1.34.
  55. * Thu Sep 25 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.7.6-1vl5
  56. - new upstream release
  57. - applied new versioning policy
  58. - spec in UTF-8
  59. - built with MySQL-5.0.51a and ruby-1.8.7
  60. - used --with-mysql-config at configure
  61. - removed BuildRequires: MySQL-shared
  62. * Wed Nov 22 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.5-0vl3
  63. - rebuilt with MySQL 5.0.27
  64. * Tue Oct 24 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.5-0vl2
  65. - rebuilt for Vine Linux 4.0
  66. * Wed Sep 1 2004 Takeyuki FUJIOKA <fuj@rabbix.jp> 2.5-0vl1
  67. - update mysql-ruby-2.5
  68. * Tue Aug 24 2004 Satoshi MACHINO <machino@vinelinux.org> 2.4.5-0vl1
  69. - new upstream version (mysql-ruby-2.4.5)
  70. - adde some defines for ruby in spec file
  71. - changed to use %%setup -q -n %{oname}-%{over}
  72. - added MySQL-shared in BuildRequires
  73. - build with ruby-1.8.1
  74. * Thu Jun 13 2002 Satoshi MACHINO <machino@vinelinux.org> 2.4.2a-0vl2
  75. - added README.ja
  76. * Thu Apr 04 2002 Satoshi MACHINO <machino@vinelinux.org> 2.4.2a-0vl1
  77. - update mysql-ruby-2.4.2a
  78. - changed License tag from Copylight
  79. * Wed Jan 09 2002 Satoshi MACHINO <machino@vinelinux.org> 2.4.2-0vl1
  80. - update mysql-ruby-2.4.2
  81. - update BuildPreReq's ruby version to 1.6.6-0vl3
  82. * Mon Oct 15 2001 akira yamada <akira@redhat.com> 2.4-0vl1
  83. - new upstream version.
  84. - mysql-ruby-2.3.1-extconf.rb.patch is no longer needed.
  85. * Thu Jul 26 2001 akira yamada <akira@redhat.com>
  86. - rebuild with ruby-devel-1.6.4-0vl3.
  87. * Mon Apr 23 2001 akira yamada <akira@redhat.com>
  88. - new upsteram version 2.3.2a.
  89. * Mon Apr 23 2001 akira yamada <akira@redhat.com>
  90. - Initial packaging.