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