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