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