1 |
%define subver 2.0 |
2 |
%define rubyapi 2.0.0 |
3 |
%define rubyver 2.0.0 |
4 |
%define patchversion p247 |
5 |
%define rel 2 |
6 |
|
7 |
%define libname %mklibname ruby %{subver} |
8 |
|
9 |
%define ruby_libdir %{_datadir}/%{name} |
10 |
%define ruby_libarchdir %{_libdir}/%{name} |
11 |
|
12 |
# This is the local lib/arch and should not be used for packaging. |
13 |
%define ruby_sitelibdir %{_datadir}/ruby/site_ruby |
14 |
%define ruby_sitearchdir %{_libdir}/ruby/site_ruby |
15 |
|
16 |
# This is the general location for libs/archs compatible with all |
17 |
# or most of the Ruby versions available in the Fedora repositories. |
18 |
%define ruby_vendorlibdir %{_datadir}/ruby/vendor_ruby |
19 |
%define ruby_vendorarchdir %{_libdir}/ruby/vendor_ruby |
20 |
|
21 |
# The RubyGems library has to stay out of Ruby directory three, since the |
22 |
# RubyGems should be share by all Ruby implementations. |
23 |
%define rubygems_dir %{_datadir}/ruby/gems |
24 |
%define rubygems_version 2.0.2 |
25 |
|
26 |
%define bootstrap 1 |
27 |
%define build_gems 0 |
28 |
|
29 |
Summary: Object Oriented Script Language |
30 |
Name: ruby |
31 |
Version: %{rubyver}.%{patchversion} |
32 |
Release: %mkrel %rel |
33 |
License: Ruby or BSD |
34 |
Group: Development/Ruby |
35 |
BuildRequires: autoconf |
36 |
BuildRequires: byacc |
37 |
BuildRequires: doxygen |
38 |
BuildRequires: ncurses-devel |
39 |
BuildRequires: readline-devel |
40 |
BuildRequires: tcl-devel tk-devel |
41 |
BuildRequires: db-devel |
42 |
BuildRequires: gdbm-devel >= 1.8.3 |
43 |
BuildRequires: openssl-devel |
44 |
BuildRequires: zlib-devel |
45 |
BuildRequires: libffi-devel |
46 |
BuildRequires: yaml-devel |
47 |
BuildRequires: rpm-mageia-setup >= 1.158 |
48 |
Obsoletes: ruby-rexml |
49 |
Provides: ruby-rexml |
50 |
# Couldn't get the standalone gem to work |
51 |
Provides: rubygem(psych) |
52 |
# explicit file provides (since such requires are automatically added by find-requires) |
53 |
Provides: /usr/bin/ruby |
54 |
Provides: ruby(abi) = %rubyapi |
55 |
Source0: http://ftp.ruby-lang.org/pub/ruby/%{subver}/ruby-%{rubyver}-%{patchversion}.tar.bz2 |
56 |
Source1: operating_system.rb |
57 |
Source3: ruby.macros |
58 |
URL: http://www.ruby-lang.org/ |
59 |
%if !%bootstrap |
60 |
Requires: rubygems >= %{rubygems_version} |
61 |
BuildRequires: ruby |
62 |
%endif |
63 |
Obsoletes: ruby-RubyGems < 2.0.2-%{release} |
64 |
Obsoletes: ruby-minitest < 4.3.2-%{release} |
65 |
Obsoletes: ruby-rake < 0.9.6-%{release} |
66 |
Obsoletes: ruby-rdoc < 4.0.0-%{release} |
67 |
Obsoletes: ruby-json < 1.7.7-%{release} |
68 |
Obsoletes: ruby-bigdecimal < 1.2.0-%{release} |
69 |
Obsoletes: ruby-io-console < 0.4.2-%{release} |
70 |
Obsoletes: ruby-psych < 2.0.0-%{release} |
71 |
Obsoletes: ruby-test-unit < 2.0.0-%{release} |
72 |
|
73 |
# == FEDORA PATCHES BEGINS == |
74 |
# http://bugs.ruby-lang.org/issues/7807 |
75 |
Patch0: ruby-2.0.0-Prevent-duplicated-paths-when-empty-version-string-i.patch |
76 |
# Fixes random WEBRick test failures. |
77 |
# https://bugs.ruby-lang.org/issues/6573. |
78 |
Patch5: ruby-1.9.3.p195-fix-webrick-tests.patch |
79 |
# Allows to install RubyGems into custom directory, outside of Ruby's tree. |
80 |
# http://redmine.ruby-lang.org/issues/5617 |
81 |
Patch8: ruby-1.9.3-custom-rubygems-location.patch |
82 |
# Add support for installing binary extensions according to FHS. |
83 |
# https://github.com/rubygems/rubygems/issues/210 |
84 |
# Note that 8th patch might be resolved by |
85 |
# https://bugs.ruby-lang.org/issues/7897 |
86 |
Patch9: rubygems-2.0.0-binary-extensions.patch |
87 |
# Make mkmf verbose by default |
88 |
Patch12: ruby-1.9.3-mkmf-verbose.patch |
89 |
# This slightly changes behavior of "gem install --install-dir" behavior. |
90 |
# Without this patch, Specifications.dirs is modified and gems installed on |
91 |
# the system cannot be required anymore. This causes later issues when RDoc |
92 |
# documentation should be generated, since json gem is sudenly not accessible. |
93 |
# https://github.com/rubygems/rubygems/pull/452 |
94 |
Patch13: rubygems-2.0.0-Do-not-modify-global-Specification.dirs-during-insta.patch |
95 |
# This prevents issues, when ruby configuration specifies --with-ruby-version=''. |
96 |
# https://github.com/rubygems/rubygems/pull/455 |
97 |
Patch14: rubygems-2.0.0-Fixes-for-empty-ruby-version.patch |
98 |
# == FEDORA PATCHES ENDS == |
99 |
|
100 |
%package -n %{libname} |
101 |
Summary: Libraries necessary to run Ruby |
102 |
Group: Development/Ruby |
103 |
|
104 |
%package doc |
105 |
Summary: Documentation for the powerful language Ruby |
106 |
Group: Development/Ruby |
107 |
BuildArch: noarch |
108 |
|
109 |
%package devel |
110 |
Summary: Development file for the powerful language Ruby |
111 |
Group: Development/Ruby |
112 |
Requires: %{name} = %{version} |
113 |
Requires: %{libname} = %{version} |
114 |
|
115 |
%package tk |
116 |
Summary: Tk extension for the powerful language Ruby |
117 |
Group: Development/Ruby |
118 |
Requires: %{name} = %{version} |
119 |
|
120 |
%package RubyGems |
121 |
Summary: The Ruby standard for packaging ruby libraries |
122 |
Group: Development/Ruby |
123 |
Version: %{rubygems_version} |
124 |
Requires: ruby(abi) = %{subver} |
125 |
Provides: gem = %{rubygems_version} |
126 |
Provides: rubygems = %{rubygems_version} |
127 |
Provides: ruby(rubygems) = %{rubygems_version} |
128 |
Conflicts: rpm-mageia-setup-build < 1.159 |
129 |
BuildArch: noarch |
130 |
|
131 |
%define rake_ver 0.9.6 |
132 |
%package rake |
133 |
Summary: Simple ruby build program with capabilities similar to make |
134 |
Group: Development/Ruby |
135 |
Version: %{rake_ver} |
136 |
Requires: ruby(abi) = %{subver} |
137 |
BuildArch: noarch |
138 |
|
139 |
%define minitest_ver 4.3.2 |
140 |
%package minitest |
141 |
Summary: Minitest provides a complete suite of testing facilities |
142 |
Group: Development/Ruby |
143 |
Version: %{minitest_ver} |
144 |
License: MIT |
145 |
Requires: ruby(abi) = %{subver} |
146 |
Requires: ruby(rubygems) >= %{rubygems_version} |
147 |
BuildArch: noarch |
148 |
|
149 |
%define json_ver 1.7.7 |
150 |
%package json |
151 |
Summary: This is a JSON implementation as a Ruby extension in C |
152 |
Group: Development/Ruby |
153 |
Version: %{json_ver} |
154 |
License: Ruby or GPLv2 |
155 |
Requires: ruby(abi) = %{subver} |
156 |
Requires: ruby(rubygems) >= %{rubygems_version} |
157 |
|
158 |
%define rdoc_ver 4.0.0 |
159 |
%package rdoc |
160 |
Summary: A tool to generate HTML and command-line documentation for Ruby projects |
161 |
Group: Development/Ruby |
162 |
Version: %{rdoc_ver} |
163 |
License: GPLv2 and Ruby and MIT |
164 |
Requires: ruby(abi) = %{subver} |
165 |
Requires: ruby(rubygems) >= %{rubygems_version} |
166 |
Requires: ruby(irb) = %{version} |
167 |
Provides: rdoc = %{rdoc_ver} |
168 |
Provides: ri = %{rdoc_ver} |
169 |
BuildArch: noarch |
170 |
|
171 |
%package irb |
172 |
Summary: The Interactive Ruby |
173 |
Group: Development/Ruby |
174 |
Provides: irb = %{version}-%{release} |
175 |
Provides: ruby(irb) = %{version}-%{release} |
176 |
Conflicts: ruby < 1.9 |
177 |
BuildArch: noarch |
178 |
|
179 |
%define bigdecimal_ver 1.2.0 |
180 |
%package bigdecimal |
181 |
Summary: BigDecimal provides arbitrary-precision floating point decimal arithmetic |
182 |
Group: Development/Ruby |
183 |
Version: %{bigdecimal_ver} |
184 |
License: GPL+ or Artistic |
185 |
Requires: ruby(abi) = %{subver} |
186 |
Requires: ruby(rubygems) >= %{rubygems_version} |
187 |
|
188 |
%define io_console_ver 0.4.2 |
189 |
%package io-console |
190 |
Summary: IO/Console is a simple console utilizing library |
191 |
Group: Development/Ruby |
192 |
Version: %{io_console_ver} |
193 |
Requires: ruby(abi) = %{subver} |
194 |
Requires: ruby(rubygems) >= %{rubygems_version} |
195 |
|
196 |
%define psych_ver 2.0.0 |
197 |
%package psych |
198 |
Summary: A libyaml wrapper for Ruby |
199 |
Version: %{psych_ver} |
200 |
Group: Development/Ruby |
201 |
License: MIT |
202 |
Requires: ruby(abi) = %{subver} |
203 |
Requires: ruby(rubygems) >= %{rubygems_version} |
204 |
Conflicts: ruby < 2.0.0 |
205 |
|
206 |
%define test_unit_ver 2.0.0 |
207 |
%package test-unit |
208 |
Summary: test/unit compatible API testing framework |
209 |
Version: %{psych_ver} |
210 |
Group: Development/Ruby |
211 |
License: MIT |
212 |
Requires: ruby(abi) = %{subver} |
213 |
Requires: ruby(rubygems) >= %{rubygems_version} |
214 |
Conflicts: ruby < 2.0.0 |
215 |
BuildArch: noarch |
216 |
|
217 |
%description |
218 |
Ruby is the interpreted scripting language for quick and |
219 |
easy object-oriented programming. It has many features to |
220 |
process text files and to do system management tasks (as in |
221 |
Perl). It is simple, straight-forward, and extensible. |
222 |
|
223 |
%description doc |
224 |
Ruby is the interpreted scripting language for quick and |
225 |
easy object-oriented programming. It has many features to |
226 |
process text files and to do system management tasks (as in |
227 |
Perl). It is simple, straight-forward, and extensible. |
228 |
|
229 |
This package contains the Ruby's documentation |
230 |
|
231 |
%description -n %{libname} |
232 |
This package includes the libruby, necessary to run Ruby. |
233 |
|
234 |
%description devel |
235 |
Ruby is the interpreted scripting language for quick and |
236 |
easy object-oriented programming. It has many features to |
237 |
process text files and to do system management tasks (as in |
238 |
Perl). It is simple, straight-forward, and extensible. |
239 |
|
240 |
This package contains the Ruby's devel files. |
241 |
|
242 |
%description tk |
243 |
Ruby is the interpreted scripting language for quick and |
244 |
easy object-oriented programming. It has many features to |
245 |
process text files and to do system management tasks (as in |
246 |
Perl). It is simple, straight-forward, and extensible. |
247 |
|
248 |
This package contains the Tk extension for Ruby. |
249 |
|
250 |
%description RubyGems |
251 |
RubyGems is the Ruby standard for publishing and managing third party |
252 |
libraries. |
253 |
|
254 |
%description rake |
255 |
Rake is a Make-like program implemented in Ruby. Tasks and dependencies are |
256 |
specified in standard Ruby syntax. |
257 |
|
258 |
%description rdoc |
259 |
RDoc produces HTML and command-line documentation for Ruby projects. RDoc |
260 |
includes the 'rdoc' and 'ri' tools for generating and displaying online |
261 |
documentation. |
262 |
|
263 |
%description json |
264 |
This is a implementation of the JSON specification according to RFC 4627. |
265 |
You can think of it as a low fat alternative to XML, if you want to store |
266 |
data to disk or transmit it over a network rather than use a verbose |
267 |
markup language. |
268 |
|
269 |
%description minitest |
270 |
minitest/unit is a small and incredibly fast unit testing framework. |
271 |
|
272 |
minitest/spec is a functionally complete spec engine. |
273 |
|
274 |
minitest/benchmark is an awesome way to assert the performance of your |
275 |
algorithms in a repeatable manner. |
276 |
|
277 |
minitest/mock by Steven Baker, is a beautifully tiny mock object |
278 |
framework. |
279 |
|
280 |
minitest/pride shows pride in testing and adds coloring to your test |
281 |
output. |
282 |
|
283 |
%description irb |
284 |
The irb is acronym for Interactive Ruby. It evaluates ruby expression |
285 |
from the terminal. |
286 |
|
287 |
%description bigdecimal |
288 |
Ruby provides built-in support for arbitrary precision integer arithmetic. |
289 |
For example: |
290 |
|
291 |
42**13 -> 1265437718438866624512 |
292 |
|
293 |
BigDecimal provides similar support for very large or very accurate floating |
294 |
point numbers. Decimal arithmetic is also useful for general calculation, |
295 |
because it provides the correct answers people expect–whereas normal binary |
296 |
floating point arithmetic often introduces subtle errors because of the |
297 |
conversion between base 10 and base 2. |
298 |
|
299 |
%description io-console |
300 |
IO/Console provides very simple and portable access to console. It doesn't |
301 |
provide higher layer features, such like curses and readline. |
302 |
|
303 |
%description psych |
304 |
Psych is a YAML parser and emitter. Psych leverages |
305 |
libyaml[http://pyyaml.org/wiki/LibYAML] for its YAML parsing and emitting |
306 |
capabilities. In addition to wrapping libyaml, Psych also knows how to |
307 |
serialize and de-serialize most Ruby objects to and from the YAML format. |
308 |
|
309 |
%description test-unit |
310 |
This library implements test/unit compatible API on minitest. |
311 |
The test/unit means that test/unit which was bundled with Ruby 1.8. |
312 |
|
313 |
%prep |
314 |
%setup -q -n ruby-%{rubyver}-%{patchversion} |
315 |
%apply_patches |
316 |
# When patching mkmf.rb the mkmf.rb.0010 gets installed |
317 |
rm lib/mkmf.rb.0* |
318 |
|
319 |
%build |
320 |
autoconf |
321 |
CFLAGS=`echo %optflags | sed 's/-fomit-frame-pointer//'` |
322 |
%configure2_5x --enable-shared --disable-rpath --enable-pthread \ |
323 |
--with-rubylibprefix='%{ruby_libdir}' \ |
324 |
--with-rubyarchprefix='%{ruby_libarchdir}' \ |
325 |
--with-sitedir='%{ruby_sitelibdir}' \ |
326 |
--with-sitearchdir='%{ruby_sitearchdir}' \ |
327 |
--with-vendordir='%{ruby_vendorlibdir}' \ |
328 |
--with-vendorarchdir='%{ruby_vendorarchdir}' \ |
329 |
--with-rubyhdrdir='%{_includedir}' \ |
330 |
--with-rubyarchhdrdir='$(archincludedir)' \ |
331 |
--with-sitearchhdrdir='$(sitehdrdir)/$(arch)' \ |
332 |
--with-vendorarchhdrdir='$(vendorhdrdir)/$(arch)' \ |
333 |
--with-rubygemsdir='%{rubygems_dir}' \ |
334 |
--with-ruby-pc='%{name}.pc' \ |
335 |
--enable-multiarch \ |
336 |
--with-ruby-version='' |
337 |
%make |
338 |
|
339 |
%install |
340 |
%makeinstall_std install-doc |
341 |
|
342 |
install -d %buildroot%{_datadir}/emacs/site-lisp |
343 |
cp -a misc/ruby-mode.el %buildroot%{_datadir}/emacs/site-lisp |
344 |
|
345 |
install -d %buildroot%{_sysconfdir}/emacs/site-start.d |
346 |
cat <<EOF >%buildroot%{_sysconfdir}/emacs/site-start.d/%{name}.el |
347 |
(autoload 'ruby-mode "ruby-mode" "Ruby editing mode." t) |
348 |
(add-to-list 'auto-mode-alist '("\\\\.rb$" . ruby-mode)) |
349 |
(add-to-list 'interpreter-mode-alist '("ruby" . ruby-mode)) |
350 |
EOF |
351 |
|
352 |
# Install the rpm macros |
353 |
mkdir -p %buildroot%{_sysconfdir}/rpm/macros.d |
354 |
cp %{SOURCE3} %buildroot%{_sysconfdir}/rpm/macros.d |
355 |
|
356 |
# Install custom operating_system.rb |
357 |
mkdir -p %{buildroot}%{rubygems_dir}/rubygems/defaults |
358 |
cp %{SOURCE1} %{buildroot}%{rubygems_dir}/rubygems/defaults |
359 |
|
360 |
# drop gems if not wanted, so that we could split them out as seperated source rpm |
361 |
%if !%build_gems |
362 |
rm -f %{buildroot}%{_bindir}/{rake,rdoc,ri,testrb} |
363 |
rm -f %{buildroot}%{_mandir}/man1/{rake,ri}.* |
364 |
rm -fr %{buildroot}%{ruby_libdir}/{minitest,rake,rdoc,json,bigdecimal,io,test} |
365 |
rm -fr %{buildroot}%{ruby_libarchdir}/{json,bigdecimal.so,io/console.so} |
366 |
rm -fr %{buildroot}%{rubygems_dir}/{gems,specifications} |
367 |
%if !%bootstrap |
368 |
rm -f %{buildroot}%{_bindir}/gem |
369 |
rm -fr %{buildroot}%{rubygems_dir}/rbconfig |
370 |
rm -fr %{buildroot}%{rubygems_dir}/rubygems |
371 |
rm -f %{buildroot}%{rubygems_dir}/rubygems.rb |
372 |
rm -f %{buildroot}%{rubygems_dir}/ubygems.rb |
373 |
%endif |
374 |
%endif |
375 |
|
376 |
%check |
377 |
make test |
378 |
|
379 |
%files |
380 |
%{_bindir}/erb |
381 |
%{_bindir}/ruby |
382 |
%dir %{ruby_libdir} |
383 |
%{ruby_libdir}/*.rb |
384 |
%exclude %{ruby_libdir}/irb.rb |
385 |
%exclude %{ruby_libdir}/multi-tk.rb |
386 |
%exclude %{ruby_libdir}/remote-tk.rb |
387 |
%exclude %{ruby_libdir}/tcltk.rb |
388 |
%exclude %{ruby_libdir}/tk.rb |
389 |
%exclude %{ruby_libdir}/tkafter.rb |
390 |
%exclude %{ruby_libdir}/tkbgerror.rb |
391 |
%exclude %{ruby_libdir}/tkcanvas.rb |
392 |
%exclude %{ruby_libdir}/tkclass.rb |
393 |
%exclude %{ruby_libdir}/tkconsole.rb |
394 |
%exclude %{ruby_libdir}/tkdialog.rb |
395 |
%exclude %{ruby_libdir}/tkentry.rb |
396 |
%exclude %{ruby_libdir}/tkfont.rb |
397 |
%exclude %{ruby_libdir}/tkmacpkg.rb |
398 |
%exclude %{ruby_libdir}/tkmenubar.rb |
399 |
%exclude %{ruby_libdir}/tkmngfocus.rb |
400 |
%exclude %{ruby_libdir}/tkpalette.rb |
401 |
%exclude %{ruby_libdir}/tkscrollbox.rb |
402 |
%exclude %{ruby_libdir}/tktext.rb |
403 |
%exclude %{ruby_libdir}/tkvirtevent.rb |
404 |
%exclude %{ruby_libdir}/tkwinpkg.rb |
405 |
%{ruby_libdir}/cgi |
406 |
%{ruby_libdir}/date |
407 |
%{ruby_libdir}/digest |
408 |
%{ruby_libdir}/dl |
409 |
%{ruby_libdir}/drb |
410 |
%{ruby_libdir}/fiddle |
411 |
%{ruby_libdir}/matrix |
412 |
%{ruby_libdir}/net |
413 |
%{ruby_libdir}/openssl |
414 |
%{ruby_libdir}/optparse |
415 |
%{ruby_libdir}/psych |
416 |
%{ruby_libdir}/racc |
417 |
%{ruby_libdir}/rbconfig |
418 |
%{ruby_libdir}/rexml |
419 |
%{ruby_libdir}/rinda |
420 |
%{ruby_libdir}/ripper |
421 |
%{ruby_libdir}/rss |
422 |
%{ruby_libdir}/shell |
423 |
%{ruby_libdir}/syslog |
424 |
%{ruby_libdir}/uri |
425 |
%{ruby_libdir}/webrick |
426 |
%{ruby_libdir}/xmlrpc |
427 |
%{ruby_libdir}/yaml |
428 |
%dir %{ruby_libarchdir} |
429 |
%{ruby_libarchdir}/continuation.so |
430 |
%{ruby_libarchdir}/coverage.so |
431 |
%{ruby_libarchdir}/curses.so |
432 |
%{ruby_libarchdir}/date_core.so |
433 |
%{ruby_libarchdir}/dbm.so |
434 |
%dir %{ruby_libarchdir}/digest |
435 |
%{ruby_libarchdir}/digest.so |
436 |
%{ruby_libarchdir}/digest/*.so |
437 |
%dir %{ruby_libarchdir}/dl |
438 |
%{ruby_libarchdir}/dl.so |
439 |
%{ruby_libarchdir}/dl/*.so |
440 |
%dir %{ruby_libarchdir}/enc |
441 |
%{ruby_libarchdir}/enc/*.so |
442 |
%dir %{ruby_libarchdir}/enc/trans |
443 |
%{ruby_libarchdir}/enc/trans/*.so |
444 |
%{ruby_libarchdir}/etc.so |
445 |
%{ruby_libarchdir}/fcntl.so |
446 |
%{ruby_libarchdir}/fiber.so |
447 |
%{ruby_libarchdir}/fiddle.so |
448 |
%{ruby_libarchdir}/gdbm.so |
449 |
%dir %{ruby_libarchdir}/io |
450 |
%{ruby_libarchdir}/io/nonblock.so |
451 |
%{ruby_libarchdir}/io/wait.so |
452 |
%dir %{ruby_libarchdir}/mathn |
453 |
%{ruby_libarchdir}/mathn/*.so |
454 |
%{ruby_libarchdir}/nkf.so |
455 |
%{ruby_libarchdir}/objspace.so |
456 |
%{ruby_libarchdir}/openssl.so |
457 |
%{ruby_libarchdir}/psych.so |
458 |
%{ruby_libarchdir}/pathname.so |
459 |
%{ruby_libarchdir}/pty.so |
460 |
%dir %{ruby_libarchdir}/racc |
461 |
%{ruby_libarchdir}/racc/*.so |
462 |
%{ruby_libarchdir}/rbconfig.rb |
463 |
%{ruby_libarchdir}/readline.so |
464 |
%{ruby_libarchdir}/ripper.so |
465 |
%{ruby_libarchdir}/sdbm.so |
466 |
%{ruby_libarchdir}/socket.so |
467 |
%{ruby_libarchdir}/stringio.so |
468 |
%{ruby_libarchdir}/strscan.so |
469 |
%{ruby_libarchdir}/syslog.so |
470 |
%{ruby_libarchdir}/zlib.so |
471 |
%{_mandir}/man1/erb.1.* |
472 |
%{_mandir}/man1/ruby.1.* |
473 |
%{_datadir}/emacs/site-lisp/* |
474 |
%config(noreplace) %{_sysconfdir}/emacs/site-start.d/* |
475 |
%{_sysconfdir}/rpm/macros.d/%{name}.macros |
476 |
%{_datadir}/ruby/site_ruby |
477 |
%{_libdir}/ruby/site_ruby |
478 |
%{_datadir}/ruby/vendor_ruby |
479 |
%{_libdir}/ruby/vendor_ruby |
480 |
%if %bootstrap |
481 |
%{_bindir}/gem |
482 |
%dir %{rubygems_dir} |
483 |
%{rubygems_dir}/rbconfig |
484 |
%{rubygems_dir}/rubygems |
485 |
%{rubygems_dir}/rubygems.rb |
486 |
%{rubygems_dir}/ubygems.rb |
487 |
%endif |
488 |
|
489 |
%files doc |
490 |
%{_datadir}/ri |
491 |
%{_datadir}/doc/ruby |
492 |
|
493 |
%files -n %{libname} |
494 |
%{_libdir}/libruby.so.%{subver} |
495 |
%{_libdir}/libruby.so.%{rubyapi} |
496 |
|
497 |
%files devel |
498 |
%{_includedir}/* |
499 |
%{_libdir}/libruby-static.a |
500 |
%{_libdir}/libruby.so |
501 |
%{_libdir}/pkgconfig/*.pc |
502 |
|
503 |
%files tk |
504 |
%{ruby_libarchdir}/tcltklib.so |
505 |
%{ruby_libarchdir}/tkutil.so |
506 |
%{ruby_libdir}/multi-tk.rb |
507 |
%{ruby_libdir}/remote-tk.rb |
508 |
%{ruby_libdir}/tcltk.rb |
509 |
%{ruby_libdir}/tk.rb |
510 |
%{ruby_libdir}/tkafter.rb |
511 |
%{ruby_libdir}/tkbgerror.rb |
512 |
%{ruby_libdir}/tkcanvas.rb |
513 |
%{ruby_libdir}/tkclass.rb |
514 |
%{ruby_libdir}/tkconsole.rb |
515 |
%{ruby_libdir}/tkdialog.rb |
516 |
%{ruby_libdir}/tkentry.rb |
517 |
%{ruby_libdir}/tkfont.rb |
518 |
%{ruby_libdir}/tkmacpkg.rb |
519 |
%{ruby_libdir}/tkmenubar.rb |
520 |
%{ruby_libdir}/tkmngfocus.rb |
521 |
%{ruby_libdir}/tkpalette.rb |
522 |
%{ruby_libdir}/tkscrollbox.rb |
523 |
%{ruby_libdir}/tktext.rb |
524 |
%{ruby_libdir}/tkvirtevent.rb |
525 |
%{ruby_libdir}/tkwinpkg.rb |
526 |
%{ruby_libdir}/tk |
527 |
%{ruby_libdir}/tkextlib |
528 |
|
529 |
%files irb |
530 |
%{_bindir}/irb |
531 |
%{ruby_libdir}/irb.rb |
532 |
%{ruby_libdir}/irb |
533 |
%{_mandir}/man1/irb.1* |
534 |
|
535 |
%if %build_gems |
536 |
%files RubyGems |
537 |
%{_bindir}/gem |
538 |
%dir %{rubygems_dir} |
539 |
%{rubygems_dir}/rbconfig |
540 |
%{rubygems_dir}/rubygems |
541 |
%{rubygems_dir}/rubygems.rb |
542 |
%{rubygems_dir}/ubygems.rb |
543 |
|
544 |
%files minitest |
545 |
%{ruby_libdir}/minitest |
546 |
%{rubygems_dir}/specifications/default/minitest-*.gemspec |
547 |
|
548 |
%files rake |
549 |
%{_bindir}/rake |
550 |
%{_mandir}/man1/rake.1.* |
551 |
%{ruby_libdir}/rake |
552 |
%{rubygems_dir}/gems/rake-* |
553 |
%{rubygems_dir}/specifications/default/rake-*.gemspec |
554 |
|
555 |
%files rdoc |
556 |
%{_bindir}/rdoc |
557 |
%{_bindir}/ri |
558 |
%{ruby_libdir}/rdoc |
559 |
%{rubygems_dir}/gems/rdoc-* |
560 |
%{rubygems_dir}/specifications/default/rdoc-*.gemspec |
561 |
%{_mandir}/man1/ri.1.* |
562 |
|
563 |
%files json |
564 |
%dir %{ruby_libarchdir}/json |
565 |
%dir %{ruby_libarchdir}/json/ext |
566 |
%{ruby_libarchdir}/json/ext/*.so |
567 |
%{ruby_libdir}/json |
568 |
%{rubygems_dir}/specifications/default/json-*.gemspec |
569 |
|
570 |
%files bigdecimal |
571 |
%{ruby_libdir}/bigdecimal |
572 |
%{ruby_libarchdir}/bigdecimal.so |
573 |
%{rubygems_dir}/specifications/default/bigdecimal-*.gemspec |
574 |
|
575 |
%files io-console |
576 |
%{ruby_libdir}/io |
577 |
%{ruby_libarchdir}/io/console.so |
578 |
%{rubygems_dir}/specifications/default/io-console-*.gemspec |
579 |
|
580 |
%files psych |
581 |
%{ruby_libdir}/psych |
582 |
%{ruby_libarchdir}/psych.so |
583 |
%{rubygems_dir}/specifications/default/psych-*.gemspec |
584 |
|
585 |
%files test-unit |
586 |
%{_bindir}/testrb |
587 |
%{ruby_libdir}/test |
588 |
%{rubygems_dir}/gems/test-unit-* |
589 |
%{rubygems_dir}/specifications/default/test-unit-*.gemspec |
590 |
%endif |