Skip to content
This repository was archived by the owner on Jul 25, 2025. It is now read-only.

Commit a6b06e5

Browse files
authored
Merge pull request #116 from feedforce/support-ruby-3.1
Support Ruby 3.1
2 parents ef3a2cd + 5dd6dcf commit a6b06e5

2 files changed

Lines changed: 237 additions & 2 deletions

File tree

.circleci/config.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ jobs:
5858
- "2.6"
5959
- "2.7"
6060
- "3.0"
61+
- "3.1"
6162
- "3.2"
6263
arch:
6364
type: enum
@@ -132,6 +133,7 @@ jobs:
132133
- "2.6"
133134
- "2.7"
134135
- "3.0"
136+
- "3.1"
135137
- "3.2"
136138
docker:
137139
- image: cimg/base:stable
@@ -178,13 +180,13 @@ workflows:
178180
name: ruby-<< matrix.version >>-centos7-<< matrix.arch >>-build-and-test
179181
matrix:
180182
parameters:
181-
version: ["2.6", "2.7", "3.0", "3.2"]
183+
version: ["2.6", "2.7", "3.0", "3.1", "3.2"]
182184
arch: ["amd64", "arm64"]
183185
- deploy:
184186
name: ruby-<< matrix.version >>-deploy
185187
matrix:
186188
parameters:
187-
version: ["2.6", "2.7", "3.0", "3.2"]
189+
version: ["2.6", "2.7", "3.0", "3.1", "3.2"]
188190
requires:
189191
- ruby-<< matrix.version >>-centos7-amd64-build-and-test
190192
- ruby-<< matrix.version >>-centos7-arm64-build-and-test

ruby-3.1.spec

Lines changed: 233 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,233 @@
1+
Name: ruby
2+
Version: 3.1.3
3+
Release: 1%{?dist}
4+
License: Ruby License/GPL - see COPYING
5+
URL: http://www.ruby-lang.org/
6+
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
7+
AutoReqProv: no
8+
Requires: readline ncurses gdbm glibc openssl libyaml libffi zlib
9+
BuildRequires: readline-devel ncurses-devel gdbm-devel glibc-devel gcc openssl-devel make libyaml-devel libffi-devel zlib-devel
10+
Source0: https://cache.ruby-lang.org/pub/ruby/ruby-%{version}.tar.gz
11+
Summary: An interpreter of object-oriented scripting language
12+
Group: Development/Languages
13+
Provides: ruby(abi) = 3.1
14+
Provides: ruby-irb
15+
Provides: ruby-rdoc
16+
Provides: ruby-libs
17+
Provides: ruby-devel
18+
Provides: rubygems
19+
Obsoletes: ruby < %{version}
20+
Obsoletes: ruby-devel < %{version}
21+
Obsoletes: ruby-irb < %{version}
22+
Obsoletes: ruby-libs < %{version}
23+
Obsoletes: rubygem-bigdecimal
24+
Obsoletes: rubygem-io-console
25+
Obsoletes: rubygem-json
26+
Obsoletes: rubygem-psych
27+
Obsoletes: rubygem-rdoc
28+
Obsoletes: rubygems
29+
30+
%description
31+
Ruby is the interpreted scripting language for quick and easy
32+
object-oriented programming. It has many features to process text
33+
files and to do system management tasks (as in Perl). It is simple,
34+
straight-forward, and extensible.
35+
36+
%prep
37+
%setup -n ruby-%{version}
38+
39+
%build
40+
export CFLAGS="$RPM_OPT_FLAGS -Wall -fno-strict-aliasing -std=gnu99"
41+
42+
%configure \
43+
--enable-shared \
44+
--disable-rpath \
45+
--without-X11 \
46+
--includedir=%{_includedir}/ruby \
47+
--libdir=%{_libdir}
48+
49+
make %{?_smp_mflags}
50+
51+
%install
52+
# installing binaries ...
53+
make install DESTDIR=$RPM_BUILD_ROOT
54+
55+
#we don't want to keep the src directory
56+
rm -rf $RPM_BUILD_ROOT/usr/src
57+
58+
%clean
59+
rm -rf $RPM_BUILD_ROOT
60+
61+
%files
62+
%defattr(-, root, root)
63+
%{_bindir}/*
64+
%{_includedir}/*
65+
%{_datadir}/*
66+
%{_libdir}/*
67+
68+
%changelog
69+
70+
* Fri Mar 17 2023 Tsubasa Takayama <tsubasa.takayama@socialplus.jp> - 3.1.3
71+
- Update ruby version to 3.1.3
72+
73+
* Wed Nov 24 2021 feedforce tech team <technical_staff@feedforce.jp> - 3.0.3
74+
- Update ruby version to 3.0.3
75+
76+
* Wed Jul 07 2021 feedforce tech team <technical_staff@feedforce.jp> - 3.0.2
77+
- Update ruby version to 3.0.2
78+
79+
* Wed Apr 07 2021 feedforce tech team <technical_staff@feedforce.jp> - 3.0.1
80+
- Update ruby version to 3.0.1
81+
82+
* Wed Apr 07 2021 Tsubasa Takayama <t-takayama@feedforce.jp> - 3.0.0
83+
- Update ruby version to 3.0.0
84+
85+
* Mon Apr 05 2021 feedforce tech team <technical_staff@feedforce.jp> - 2.7.3
86+
- Update ruby version to 2.7.3
87+
88+
* Fri Oct 02 2020 feedforce tech team <technical_staff@feedforce.jp> - 2.7.2
89+
- Update ruby version to 2.7.2
90+
91+
* Wed Apr 01 2020 feedforce tech team <technical_staff@feedforce.jp> - 2.7.1
92+
- Update ruby version to 2.7.1
93+
94+
* Thu Jan 02 2020 Mike MacDonald <crazymykl@gmail.com> - 2.7.0
95+
- Update ruby version to 2.7.0
96+
97+
* Tue Oct 01 2019 feedforce tech team <technical_staff@feedforce.jp> - 2.6.5
98+
- Update ruby version to 2.6.5
99+
100+
* Wed Aug 28 2019 feedforce tech team <technical_staff@feedforce.jp> - 2.6.4
101+
- Update ruby version to 2.6.4
102+
103+
* Wed Apr 17 2019 feedforce tech team <technical_staff@feedforce.jp> - 2.6.3
104+
- Update ruby version to 2.6.3
105+
106+
* Wed Mar 13 2019 feedforce tech team <technical_staff@feedforce.jp> - 2.6.2
107+
- Update ruby version to 2.6.2
108+
109+
* Wed Jan 30 2019 feedforce tech team <technical_staff@feedforce.jp> - 2.6.1
110+
- Update ruby version to 2.6.1
111+
112+
* Tue Dec 25 2018 feedforce tech team <technical_staff@feedforce.jp> - 2.6.0
113+
- Update ruby version to 2.6.0
114+
115+
* Fri Oct 19 2018 Masataka Suzuki <koshigoe@feedforce.jp> - 2.5.3
116+
- Update ruby version to 2.5.3
117+
118+
* Thu Oct 18 2018 Masataka Suzuki <koshigoe@feedforce.jp> - 2.5.2
119+
- Update ruby version to 2.5.2
120+
121+
* Thu Mar 29 2018 Masataka Suzuki <koshigoe@feedforce.jp> - 2.5.1
122+
- Update ruby version to 2.5.1
123+
124+
* Mon Dec 25 2017 Takashi Masuda <masutaka@feedforce.jp> - 2.5.0
125+
- Update ruby version to 2.5.0
126+
127+
* Fri Dec 15 2017 Masataka Suzuki <koshigoe@feedforce.jp> - 2.4.3
128+
- Update ruby version to 2.4.3
129+
130+
* Fri Sep 15 2017 Masataka Suzuki <koshigoe@feedforce.jp> - 2.4.2
131+
- Update ruby version to 2.4.2
132+
133+
* Thu Mar 23 2017 Masataka Suzuki <koshigoe@feedforce.jp> - 2.4.1
134+
- Update ruby version to 2.4.1
135+
136+
* Mon Dec 26 2016 Takashi Masuda <masutaka@feedforce.jp> - 2.4.0
137+
- Update ruby version to 2.4.0
138+
139+
* Tue Nov 22 2016 Masato Tanaka <tanaka@feedforce.jp> - 2.3.3
140+
- Update ruby version to 2.3.3
141+
142+
* Wed Nov 16 2016 Masato Tanaka <tanaka@feedforce.jp> - 2.3.2
143+
- Update ruby version to 2.3.2
144+
145+
* Tue Apr 26 2016 Takashi Masuda <masutaka@feedforce.jp> - 2.3.1
146+
- Update ruby version to 2.3.1
147+
148+
* Tue Dec 25 2015 Masato Tanaka <tanaka@feedforce.jp> - 2.3.0
149+
- Update ruby version to 2.3.0
150+
151+
* Tue Dec 17 2015 Masato Tanaka <tanaka@feedforce.jp> - 2.2.4
152+
- Update ruby version to 2.2.4
153+
154+
* Tue Aug 19 2015 Masato Tanaka <tanaka@feedforce.jp> - 2.2.3
155+
- Update ruby version to 2.2.3
156+
157+
* Tue Apr 14 2015 Takashi Masuda <masutaka@feedforce.jp> - 2.2.2
158+
- Update ruby version to 2.2.2
159+
160+
* Wed Mar 4 2015 Shota Miyamoto <miyamoto@feedforce.jp> - 2.2.1
161+
- Update ruby version to 2.2.1
162+
163+
* Fri Dec 26 2014 Kenta ONISHI <onishi@feedforce.jp> - 2.2.0
164+
- Version bumped to 2.2.0
165+
166+
* Fri Nov 14 2014 Takashi Masuda <masutaka@feedforce.jp> - 2.1.5
167+
- Update ruby version to 2.1.5
168+
- Remove dependency unzip
169+
170+
* Wed Nov 5 2014 Takashi Masuda <masutaka@feedforce.jp> - 2.1.4-2
171+
- Remove dependency db4 and db4-devel
172+
173+
* Fri Oct 31 2014 Takashi Masuda <masutaka@feedforce.jp> - 2.1.4
174+
- Update ruby version to 2.1.4
175+
176+
* Wed Oct 29 2014 Takashi Masuda <masutaka@feedforce.jp> - 2.1.2
177+
- Remove dependencies on tcl-devel and byacc
178+
179+
* Fri May 9 2014 Masahito Yoshida <masahito@axsh.net> - 2.1.2
180+
- Update ruby version to 2.1.2
181+
182+
* Thu Dec 26 2013 Masahito Yoshida <masahito@axsh.net> - 2.1.0
183+
- Update ruby version to 2.1.0
184+
185+
* Sat Nov 23 2013 Masahito Yoshida <masahito@axsh.net> - 2.0.0-p353
186+
- Update ruby version to 2.0.0-p353
187+
188+
* Tue Jul 2 2013 Masahito Yoshida <masahito@axsh.net> - 2.0.0-p247
189+
- Update ruby version to 2.0.0-p247
190+
191+
* Sun May 19 2013 Masahito Yoshida <masahito@axsh.net> - 2.0.0-p195
192+
- Update ruby version to 2.0.0-p195
193+
194+
* Sat Mar 23 2013 Masahito Yoshida <masahito@axsh.net> - 2.0.0-p0
195+
- Update ruby version to 2.0.0-p0
196+
197+
* Sun Feb 24 2013 Masahito Yoshida <masahito@axsh.net> - 1.9.3-p392
198+
- Update ruby version to 1.9.3-p392
199+
200+
* Tue Jan 29 2013 Carlos Villela <cv@lixo.org> - 1.9.3-p374
201+
- Update ruby version to 1.9.3-p374
202+
203+
* Tue Jan 15 2013 Carlos Villela <cv@lixo.org> - 1.9.3-p362
204+
- Update ruby version to 1.9.3-p362
205+
206+
* Thu Nov 15 2012 Rajat Vig <rajat.vig@gmail.com> - 1.9.3-p327
207+
- Update ruby version to 1.9.3-p327
208+
209+
* Mon Oct 22 2012 Carlos Villela <cv@lixo.org> - 1.9.3-p286
210+
- Update ruby version to 1.9.3-p286
211+
212+
* Wed Jul 4 2012 Carlos Villela <cv@lixo.org> - 1.9.3-p194
213+
- Update ruby version to 1.9.3-p194
214+
215+
* Wed Jan 18 2012 Mandi Walls <mandi.walls@gmail.com> - 1.9.3-p0
216+
- Update ruby version to 1.9.3-p0
217+
218+
* Mon Aug 29 2011 Gregory Graf <graf.gregory@gmail.com> - 1.9.2-p290
219+
- Update ruby version to 1.9.2-p290
220+
221+
* Sat Jun 25 2011 Ian Meyer <ianmmeyer@gmail.com> - 1.9.2-p180-2
222+
- Remove non-existant --sitearchdir and --vedorarchdir from %configure
223+
- Replace --sitedir --vendordir with simpler --libdir
224+
- Change %{_prefix}/share to %{_datadir}
225+
226+
* Mon Mar 7 2011 Robert Duncan <robert@robduncan.co.uk> - 1.9.2-p180-1
227+
- Update prerequisites to include make
228+
- Update ruby version to 1.9.2-p180
229+
- Install /usr/share documentation
230+
- (Hopefully!?) platform agnostic
231+
232+
* Sun Jan 2 2011 Ian Meyer <ianmmeyer@gmail.com> - 1.9.2-p136-1
233+
- Initial spec to replace system ruby with 1.9.2-p136

0 commit comments

Comments
 (0)