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