MySQL-ruby-vl.spec 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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: 4%{?_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. * Mon Dec 22 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 2.8.2-4
  49. - removed Requires: ruby(abi)
  50. * Fri Dec 19 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 2.8.2-3
  51. - rebuild with ruby-2.1.5
  52. * Fri Oct 26 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.8.2-2
  53. - rebuild with ruby-1.9.3
  54. * Sat Apr 16 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.8.2-1
  55. - updated to 2.8.2
  56. - built with MySQL-5.1.56
  57. * Fri May 22 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.7.6-2
  58. - rebuilt with MySQL-5.1.34.
  59. * Thu Sep 25 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.7.6-1vl5
  60. - new upstream release
  61. - applied new versioning policy
  62. - spec in UTF-8
  63. - built with MySQL-5.0.51a and ruby-1.8.7
  64. - used --with-mysql-config at configure
  65. - removed BuildRequires: MySQL-shared
  66. * Wed Nov 22 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.5-0vl3
  67. - rebuilt with MySQL 5.0.27
  68. * Tue Oct 24 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.5-0vl2
  69. - rebuilt for Vine Linux 4.0
  70. * Wed Sep 1 2004 Takeyuki FUJIOKA <fuj@rabbix.jp> 2.5-0vl1
  71. - update mysql-ruby-2.5
  72. * Tue Aug 24 2004 Satoshi MACHINO <machino@vinelinux.org> 2.4.5-0vl1
  73. - new upstream version (mysql-ruby-2.4.5)
  74. - adde some defines for ruby in spec file
  75. - changed to use %%setup -q -n %{oname}-%{over}
  76. - added MySQL-shared in BuildRequires
  77. - build with ruby-1.8.1
  78. * Thu Jun 13 2002 Satoshi MACHINO <machino@vinelinux.org> 2.4.2a-0vl2
  79. - added README.ja
  80. * Thu Apr 04 2002 Satoshi MACHINO <machino@vinelinux.org> 2.4.2a-0vl1
  81. - update mysql-ruby-2.4.2a
  82. - changed License tag from Copylight
  83. * Wed Jan 09 2002 Satoshi MACHINO <machino@vinelinux.org> 2.4.2-0vl1
  84. - update mysql-ruby-2.4.2
  85. - update BuildPreReq's ruby version to 1.6.6-0vl3
  86. * Mon Oct 15 2001 akira yamada <akira@redhat.com> 2.4-0vl1
  87. - new upstream version.
  88. - mysql-ruby-2.3.1-extconf.rb.patch is no longer needed.
  89. * Thu Jul 26 2001 akira yamada <akira@redhat.com>
  90. - rebuild with ruby-devel-1.6.4-0vl3.
  91. * Mon Apr 23 2001 akira yamada <akira@redhat.com>
  92. - new upsteram version 2.3.2a.
  93. * Mon Apr 23 2001 akira yamada <akira@redhat.com>
  94. - Initial packaging.