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