日本OpenSolaris Users Group有志による、レポジトリサーバ作成のためのspecファイル群です。
Revision | 9f703c01352bd936a2b4f5ecfd0322d7b7a11693 (tree) |
---|---|
Time | 2017-04-20 20:24:45 |
Author | Fumihisa TONAKA <fumi.ftnk@gmai...> |
Commiter | Fumihisa TONAKA |
SFEfluent-plugin-mysql: bump to 0.2.1 and use ruby-23 instead of ruby-21
@@ -3,24 +3,24 @@ | ||
3 | 3 | %define gemname fluent-plugin-mysql |
4 | 4 | %define generate_executable 0 |
5 | 5 | |
6 | -%define bindir21 /usr/ruby/2.1/bin | |
7 | -%define gemdir21 %(%{bindir21}/ruby -rubygems -e 'puts Gem::dir' 2>/dev/null) | |
8 | -%define geminstdir21 %{gemdir21}/gems/%{gemname}-%{version} | |
6 | +%define bindir23 /usr/ruby/2.3/bin | |
7 | +%define gemdir23 %(%{bindir23}/ruby -rubygems -e 'puts Gem::dir' 2>/dev/null) | |
8 | +%define geminstdir23 %{gemdir23}/gems/%{gemname}-%{version} | |
9 | 9 | |
10 | 10 | Name: fluent-plugin-mysql |
11 | 11 | IPS_package_name: system/fluentd/plugins/mysql |
12 | 12 | Summary: fluent plugin to insert mysql as json(single column) or insert statement |
13 | -Version: 0.1.0 | |
13 | +Version: 0.2.1 | |
14 | 14 | License: APLv2 |
15 | 15 | URL: http://rubygems.org/gems/%{gemname} |
16 | 16 | Source0: http://rubygems.org/downloads/%{gemname}-%{version}.gem |
17 | 17 | BuildRoot: %{_tmppath}/%{name}-%{version}-build |
18 | 18 | |
19 | -BuildRequires: runtime/ruby-21 | |
20 | -Requires: runtime/ruby-21 | |
21 | -Requires: system/fluentd | |
22 | -Requires: library/ruby-21/jsonpath | |
23 | -Requires: library/ruby-21/mysql2-cs-bind | |
19 | +BuildRequires: runtime/ruby-23 | |
20 | +Requires: runtime/ruby-23 | |
21 | +Requires: system/fluentd >= 0.14.8 | |
22 | +Requires: library/ruby-23/jsonpath | |
23 | +Requires: library/ruby-23/mysql2-cs-bind | |
24 | 24 | |
25 | 25 | %description |
26 | 26 | fluent plugin to insert mysql as json(single column) or insert statement |
@@ -30,10 +30,10 @@ | ||
30 | 30 | |
31 | 31 | %build |
32 | 32 | |
33 | -# ruby-21 | |
34 | -%{bindir21}/gem install --local \ | |
35 | - --install-dir .%{gemdir21} \ | |
36 | - --bindir .%{bindir21} \ | |
33 | +# ruby-23 | |
34 | +%{bindir23}/gem install --local \ | |
35 | + --install-dir .%{gemdir23} \ | |
36 | + --bindir .%{bindir23} \ | |
37 | 37 | --no-rdoc \ |
38 | 38 | --no-ri \ |
39 | 39 | -V \ |
@@ -42,14 +42,14 @@ | ||
42 | 42 | %install |
43 | 43 | rm -rf %{buildroot} |
44 | 44 | |
45 | -mkdir -p %{buildroot}/%{gemdir21} | |
46 | -cp -a .%{gemdir21}/* \ | |
47 | - %{buildroot}/%{gemdir21}/ | |
45 | +mkdir -p %{buildroot}/%{gemdir23} | |
46 | +cp -a .%{gemdir23}/* \ | |
47 | + %{buildroot}/%{gemdir23}/ | |
48 | 48 | |
49 | 49 | %if %generate_executable |
50 | -mkdir -p %{buildroot}%{bindir21} | |
51 | -cp -a .%{bindir21}/* \ | |
52 | - %{buildroot}%{bindir21}/ | |
50 | +mkdir -p %{buildroot}%{bindir23} | |
51 | +cp -a .%{bindir23}/* \ | |
52 | + %{buildroot}%{bindir23}/ | |
53 | 53 | %endif |
54 | 54 | |
55 | 55 | %clean |
@@ -59,9 +59,11 @@ | ||
59 | 59 | %files |
60 | 60 | %defattr(0755,root,bin,-) |
61 | 61 | %dir %attr (0755, root, sys) /usr |
62 | -/usr/ruby/2.1 | |
62 | +/usr/ruby/2.3 | |
63 | 63 | |
64 | 64 | %changelog |
65 | +* Thu Apr 10 2017 - Fumihisa TONAKA <fumi.ftnk@gmail.com> | |
66 | +- bump to 0.2.1 and use ruby-23 instead of ruby-21 | |
65 | 67 | * Thu Feb 25 2016 - Fumihisa TONAKA <fumi.ftnk@gmail.com> |
66 | 68 | - bump to 0.1.0 |
67 | 69 | * Sun Nov 02 2014 - Fumihisa TONAKA <fumi.ftnk@gmail.com> |