1 |
# Taken from the fedora ruby-2.2.3 .spec. Thanks! |
2 |
|
3 |
%global major_version 2 |
4 |
%global minor_version 2 |
5 |
%global teeny_version 3 |
6 |
%global major_minor_version %{major_version}.%{minor_version} |
7 |
|
8 |
%global ruby_version %{major_minor_version}.%{teeny_version} |
9 |
%global ruby_release %{ruby_version} |
10 |
|
11 |
# Specify the named version. It has precedense to revision. |
12 |
#%%global milestone rc1 |
13 |
|
14 |
# Keep the revision enabled for pre-releases from SVN. |
15 |
#%%global revision 48936 |
16 |
|
17 |
%global ruby_archive %{name}-%{ruby_version} |
18 |
|
19 |
# If revision and milestone are removed/commented out, the official release build is expected. |
20 |
%if 0%{?milestone:1}%{?revision:1} != 0 |
21 |
%global development_release %{?milestone}%{?!milestone:%{?revision:r%{revision}}} |
22 |
%global ruby_archive %{ruby_archive}-%{?milestone}%{?!milestone:%{?revision:r%{revision}}} |
23 |
%endif |
24 |
|
25 |
|
26 |
%global rel 11 |
27 |
%{!?release_string:%global release_string %mkrel %{?development_release:0.}%{rel}%{?development_release:.%{development_release}}} |
28 |
|
29 |
%global rubygems_version 2.4.5.1 |
30 |
|
31 |
# The RubyGems library has to stay out of Ruby directory three, since the |
32 |
# RubyGems should be share by all Ruby implementations. |
33 |
%global rubygems_dir %{_datadir}/rubygems |
34 |
|
35 |
# TODO: The IRB has strange versioning. Keep the Ruby's versioning ATM. |
36 |
# http://redmine.ruby-lang.org/issues/5313 |
37 |
%global irb_version %{ruby_version} |
38 |
|
39 |
%global bigdecimal_version 1.2.6 |
40 |
%global io_console_version 0.4.3 |
41 |
%global json_version 1.8.1 |
42 |
%global minitest_version 5.4.3 |
43 |
%global power_assert_version 0.2.2 |
44 |
%global psych_version 2.0.8 |
45 |
%global rake_version 10.4.2 |
46 |
%global rdoc_version 4.2.0 |
47 |
%global test_unit_version 3.0.8 |
48 |
|
49 |
# Might not be needed in the future, if we are lucky enough. |
50 |
# https://bugzilla.redhat.com/show_bug.cgi?id=888262 |
51 |
%global tapset_root %{_datadir}/systemtap |
52 |
%global tapset_dir %{tapset_root}/tapset |
53 |
%global tapset_libdir %(echo %{_libdir} | sed 's/64//')* |
54 |
|
55 |
%global _normalized_cpu %(echo %{_target_cpu} | sed 's/^ppc/powerpc/;s/i.86/i386/;s/sparcv./sparc/') |
56 |
|
57 |
%global with_rubypick 1 |
58 |
|
59 |
# Additional defines by Mageia. |
60 |
|
61 |
%define subver %{major_minor_version} |
62 |
%define rubyapi %{subver}.0 |
63 |
%define rubyver %{ruby_version} |
64 |
|
65 |
%define libname %mklibname ruby %{subver} |
66 |
|
67 |
%define ruby_libdir %{_datadir}/%{name} |
68 |
%define ruby_libarchdir %{_libdir}/%{name} |
69 |
|
70 |
# This is the local lib/arch and should not be used for packaging. |
71 |
%define ruby_sitelibdir %{_datadir}/ruby/site_ruby |
72 |
%define ruby_sitearchdir %{_libdir}/ruby/site_ruby |
73 |
|
74 |
# This is the general location for libs/archs compatible with all |
75 |
# or most of the Ruby versions available in the Fedora repositories. |
76 |
%define ruby_vendorlibdir %{_datadir}/ruby/vendor_ruby |
77 |
%define ruby_vendorarchdir %{_libdir}/ruby/vendor_ruby |
78 |
|
79 |
# The RubyGems library has to stay out of Ruby directory tree, since the |
80 |
# RubyGems should be shared by all Ruby implementations. |
81 |
%define gems_dir %{_datadir}/gems |
82 |
|
83 |
%define bootstrap 0 |
84 |
%define build_gems 0 |
85 |
|
86 |
Summary: Object Oriented Script Language |
87 |
Name: ruby |
88 |
Version: %{rubyver} |
89 |
Release: %release_string |
90 |
License: Ruby or BSD |
91 |
Group: Development/Ruby |
92 |
BuildRequires: autoconf |
93 |
BuildRequires: byacc |
94 |
BuildRequires: doxygen |
95 |
BuildRequires: ncurses-devel |
96 |
BuildRequires: readline-devel |
97 |
BuildRequires: tcl-devel |
98 |
BuildRequires: tk-devel |
99 |
BuildRequires: db-devel |
100 |
BuildRequires: gdbm-devel >= 1.8.3 |
101 |
BuildRequires: openssl-devel |
102 |
BuildRequires: zlib-devel |
103 |
BuildRequires: libffi-devel |
104 |
BuildRequires: yaml-devel |
105 |
BuildRequires: rpm-mageia-setup >= 1.158 |
106 |
Conflicts: ruby-devel < 2.0.0.p451-4.mga5 |
107 |
Obsoletes: ruby-rexml |
108 |
Provides: ruby-rexml |
109 |
# Couldn't get the standalone gem to work |
110 |
Provides: rubygem(psych) |
111 |
# explicit file provides (since such requires are automatically added by find-requires) |
112 |
Provides: /usr/bin/ruby |
113 |
Provides: ruby(abi) = %subver |
114 |
Source0: http://ftp.ruby-lang.org/pub/ruby/%{subver}/ruby-%{rubyver}.tar.xz |
115 |
Source1: operating_system.rb |
116 |
Source3: ruby.macros |
117 |
# From FC: |
118 |
# RPM dependency generators. |
119 |
Source8: rubygems.attr |
120 |
Source9: rubygems.req |
121 |
Source10: rubygems.prov |
122 |
URL: http://ruby-lang.org/ |
123 |
%if !%bootstrap |
124 |
BuildRequires: ruby |
125 |
%endif |
126 |
%if !%bootstrap || %build_gems |
127 |
Requires: rubygems >= %{rubygems_version} |
128 |
%endif |
129 |
|
130 |
# == FEDORA PATCHES BEGINS == |
131 |
# http://bugs.ruby-lang.org/issues/7807 |
132 |
Patch0: ruby-2.1.0-Prevent-duplicated-paths-when-empty-version-string-i.patch |
133 |
# Allows to override libruby.so placement. Hopefully we will be able to return |
134 |
# to plain --with-rubyarchprefix. |
135 |
# http://bugs.ruby-lang.org/issues/8973 |
136 |
Patch1: ruby-2.1.0-Enable-configuration-of-archlibdir.patch |
137 |
# Force multiarch directories for i.86 to be always named i386. This solves |
138 |
# some differencies in build between Fedora and RHEL. |
139 |
Patch2: ruby-2.1.0-always-use-i386.patch |
140 |
# Allows to install RubyGems into custom directory, outside of Ruby's tree. |
141 |
# http://bugs.ruby-lang.org/issues/5617 |
142 |
Patch4: ruby-2.1.0-custom-rubygems-location.patch |
143 |
# Make mkmf verbose by default |
144 |
Patch5: ruby-1.9.3-mkmf-verbose.patch |
145 |
# Adds support for '--with-prelude' configuration option. This allows to built |
146 |
# in support for ABRT. |
147 |
# http://bugs.ruby-lang.org/issues/8566 |
148 |
Patch6: ruby-2.1.0-Allow-to-specify-additional-preludes-by-configuratio.patch |
149 |
# Don't use SSLv3 for tests. |
150 |
# https://bugs.ruby-lang.org/issues/10046 |
151 |
Patch9: ruby-2.3.0-fix-test-ctx-client-session-cb.patch |
152 |
Patch10: ruby-2.3.0-Don-t-force-SSLv3-in-test-as-it-is-insecure-and-may-.patch |
153 |
Patch11: ruby-2.3.0-Use-OP_NO_TICKET-when-testing-SSL-session-cache-call.patch |
154 |
# == FEDORA PATCHES ENDS == |
155 |
# operating_system.rb sets default_dir to user_dir for non root, this causes the build |
156 |
# to install gems into user dir |
157 |
Patch20: ruby-2.3.0-Do-not-install-to-user-dir.patch |
158 |
|
159 |
# Patch22: ruby-2.0.0-tk2.6.patch |
160 |
|
161 |
%package -n %{libname} |
162 |
Summary: Libraries necessary to run Ruby |
163 |
Group: Development/Ruby |
164 |
|
165 |
%package doc |
166 |
Summary: Documentation for the powerful language Ruby |
167 |
Group: Development/Ruby |
168 |
BuildArch: noarch |
169 |
|
170 |
%package devel |
171 |
Summary: Development file for the powerful language Ruby |
172 |
Group: Development/Ruby |
173 |
Requires: %{name} = %{version} |
174 |
Requires: %{libname} = %{version} |
175 |
|
176 |
%package tk |
177 |
Summary: Tk extension for the powerful language Ruby |
178 |
Group: Development/Ruby |
179 |
Requires: %{name} = %{version} |
180 |
|
181 |
%package RubyGems |
182 |
Summary: The Ruby standard for packaging ruby libraries |
183 |
Group: Development/Ruby |
184 |
Version: %{rubygems_version} |
185 |
Requires: ruby(abi) = %{subver} |
186 |
Provides: gem = %{rubygems_version} |
187 |
Provides: rubygems = %{rubygems_version} |
188 |
Provides: ruby(rubygems) = %{rubygems_version} |
189 |
Conflicts: rpm-mageia-setup-build < 1.159 |
190 |
BuildArch: noarch |
191 |
|
192 |
%define rake_ver %{rake_version} |
193 |
%package rake |
194 |
Summary: Simple ruby build program with capabilities similar to make |
195 |
Group: Development/Ruby |
196 |
Version: %{rake_ver} |
197 |
Provides: rubygem(rake) = %{rake_ver} |
198 |
Requires: ruby(abi) = %{subver} |
199 |
BuildArch: noarch |
200 |
|
201 |
%define minitest_ver %{minitest_version} |
202 |
%package minitest |
203 |
Summary: Minitest provides a complete suite of testing facilities |
204 |
Group: Development/Ruby |
205 |
Version: %{minitest_ver} |
206 |
License: MIT |
207 |
Provides: rubygem(minitest) = %{minitest_ver} |
208 |
Requires: ruby(abi) = %{subver} |
209 |
Requires: ruby(rubygems) >= %{rubygems_version} |
210 |
BuildArch: noarch |
211 |
|
212 |
%define power_assert_ver %{power_assert_version} |
213 |
%package power_assert |
214 |
Summary: Power Assert for Ruby |
215 |
Group: Development/Ruby |
216 |
Version: %{power_assert_ver} |
217 |
License: BSD |
218 |
Provides: rubygem(power_assert) = %{power_assert_ver} |
219 |
Requires: ruby(abi) = %{subver} |
220 |
Requires: ruby(rubygems) >= %{rubygems_version} |
221 |
BuildArch: noarch |
222 |
|
223 |
%define json_ver %{json_version} |
224 |
%package json |
225 |
Summary: This is a JSON implementation as a Ruby extension in C |
226 |
Group: Development/Ruby |
227 |
Version: %{json_ver} |
228 |
License: Ruby or GPLv2 |
229 |
Provides: rubygem(json) = %{json_ver} |
230 |
Requires: ruby(abi) = %{subver} |
231 |
Requires: ruby(rubygems) >= %{rubygems_version} |
232 |
|
233 |
%define rdoc_ver %{rdoc_version} |
234 |
%package rdoc |
235 |
Summary: A tool to generate HTML and command-line documentation for Ruby projects |
236 |
Group: Development/Ruby |
237 |
Version: %{rdoc_ver} |
238 |
License: GPLv2 and Ruby and MIT |
239 |
Provides: rubygem(rdoc) = %{rdoc_ver} |
240 |
Requires: ruby(abi) = %{subver} |
241 |
Requires: ruby(rubygems) >= %{rubygems_version} |
242 |
Requires: ruby(irb) = %{version} |
243 |
Provides: rdoc = %{rdoc_ver} |
244 |
Provides: ri = %{rdoc_ver} |
245 |
BuildArch: noarch |
246 |
|
247 |
%package irb |
248 |
Summary: The Interactive Ruby |
249 |
Group: Development/Ruby |
250 |
Provides: irb = %{version}-%{release} |
251 |
Provides: ruby(irb) = %{version}-%{release} |
252 |
Conflicts: ruby < 1.9 |
253 |
BuildArch: noarch |
254 |
|
255 |
%define bigdecimal_ver %{bigdecimal_version} |
256 |
%package bigdecimal |
257 |
Summary: BigDecimal provides arbitrary-precision floating point decimal arithmetic |
258 |
Group: Development/Ruby |
259 |
Version: %{bigdecimal_ver} |
260 |
License: GPL+ or Artistic |
261 |
Provides: rubygem(bigdecimal) = %{bigdecimal_ver} |
262 |
Requires: ruby(abi) = %{subver} |
263 |
Requires: ruby(rubygems) >= %{rubygems_version} |
264 |
|
265 |
%define io_console_ver %{io_console_version} |
266 |
%package io-console |
267 |
Summary: IO/Console is a simple console utilizing library |
268 |
Group: Development/Ruby |
269 |
Version: %{io_console_ver} |
270 |
Provides: rubygem(io-console) = %{io_console_ver} |
271 |
Requires: ruby(abi) = %{subver} |
272 |
Requires: ruby(rubygems) >= %{rubygems_version} |
273 |
|
274 |
%define psych_ver %{psych_version} |
275 |
%package psych |
276 |
Summary: A libyaml wrapper for Ruby |
277 |
Version: %{psych_ver} |
278 |
Group: Development/Ruby |
279 |
License: MIT |
280 |
Provides: rubygem(psych) = %{psych_ver} |
281 |
Requires: ruby(abi) = %{subver} |
282 |
Requires: ruby(rubygems) >= %{rubygems_version} |
283 |
Conflicts: ruby < 2.0.0 |
284 |
|
285 |
%define test_unit_ver %{test_unit_version} |
286 |
%package test-unit |
287 |
Summary: test/unit compatible API testing framework |
288 |
Version: %{test_unit_ver} |
289 |
Group: Development/Ruby |
290 |
License: MIT |
291 |
Provides: rubygem(test-unit) = %{test_unit_ver} |
292 |
Requires: ruby(abi) = %{subver} |
293 |
Requires: ruby(rubygems) >= %{rubygems_version} |
294 |
Conflicts: ruby < 2.0.0 |
295 |
BuildArch: noarch |
296 |
|
297 |
%description |
298 |
Ruby is the interpreted scripting language for quick and |
299 |
easy object-oriented programming. It has many features to |
300 |
process text files and to do system management tasks (as in |
301 |
Perl). It is simple, straight-forward, and extensible. |
302 |
|
303 |
%description doc |
304 |
Ruby is the interpreted scripting language for quick and |
305 |
easy object-oriented programming. It has many features to |
306 |
process text files and to do system management tasks (as in |
307 |
Perl). It is simple, straight-forward, and extensible. |
308 |
|
309 |
This package contains the Ruby's documentation |
310 |
|
311 |
%description -n %{libname} |
312 |
This package includes the libruby, necessary to run Ruby. |
313 |
|
314 |
%description devel |
315 |
Ruby is the interpreted scripting language for quick and |
316 |
easy object-oriented programming. It has many features to |
317 |
process text files and to do system management tasks (as in |
318 |
Perl). It is simple, straight-forward, and extensible. |
319 |
|
320 |
This package contains the Ruby's devel files. |
321 |
|
322 |
%description tk |
323 |
Ruby is the interpreted scripting language for quick and |
324 |
easy object-oriented programming. It has many features to |
325 |
process text files and to do system management tasks (as in |
326 |
Perl). It is simple, straight-forward, and extensible. |
327 |
|
328 |
This package contains the Tk extension for Ruby. |
329 |
|
330 |
%description RubyGems |
331 |
RubyGems is the Ruby standard for publishing and managing third party |
332 |
libraries. |
333 |
|
334 |
%description rake |
335 |
Rake is a Make-like program implemented in Ruby. Tasks and dependencies are |
336 |
specified in standard Ruby syntax. |
337 |
|
338 |
%description rdoc |
339 |
RDoc produces HTML and command-line documentation for Ruby projects. RDoc |
340 |
includes the 'rdoc' and 'ri' tools for generating and displaying online |
341 |
documentation. |
342 |
|
343 |
%description json |
344 |
This is a implementation of the JSON specification according to RFC 4627. |
345 |
You can think of it as a low fat alternative to XML, if you want to store |
346 |
data to disk or transmit it over a network rather than use a verbose |
347 |
markup language. |
348 |
|
349 |
%description minitest |
350 |
minitest/unit is a small and incredibly fast unit testing framework. |
351 |
|
352 |
minitest/spec is a functionally complete spec engine. |
353 |
|
354 |
minitest/benchmark is an awesome way to assert the performance of your |
355 |
algorithms in a repeatable manner. |
356 |
|
357 |
minitest/mock by Steven Baker, is a beautifully tiny mock object |
358 |
framework. |
359 |
|
360 |
minitest/pride shows pride in testing and adds coloring to your test |
361 |
output. |
362 |
|
363 |
%description power_assert |
364 |
Power Assert shows each value of variables and method calls in the expression. |
365 |
It is useful for testing, providing which value wasn't correct when the |
366 |
condition is not satisfied. |
367 |
|
368 |
%description irb |
369 |
The irb is acronym for Interactive Ruby. It evaluates ruby expression |
370 |
from the terminal. |
371 |
|
372 |
%description bigdecimal |
373 |
Ruby provides built-in support for arbitrary precision integer arithmetic. |
374 |
For example: |
375 |
|
376 |
42**13 -> 1265437718438866624512 |
377 |
|
378 |
BigDecimal provides similar support for very large or very accurate floating |
379 |
point numbers. Decimal arithmetic is also useful for general calculation, |
380 |
because it provides the correct answers people expect–whereas normal binary |
381 |
floating point arithmetic often introduces subtle errors because of the |
382 |
conversion between base 10 and base 2. |
383 |
|
384 |
%description io-console |
385 |
IO/Console provides very simple and portable access to console. It doesn't |
386 |
provide higher layer features, such like curses and readline. |
387 |
|
388 |
%description psych |
389 |
Psych is a YAML parser and emitter. Psych leverages |
390 |
libyaml[http://pyyaml.org/wiki/LibYAML] for its YAML parsing and emitting |
391 |
capabilities. In addition to wrapping libyaml, Psych also knows how to |
392 |
serialize and de-serialize most Ruby objects to and from the YAML format. |
393 |
|
394 |
%description test-unit |
395 |
This library implements test/unit compatible API on minitest. |
396 |
The test/unit means that test/unit which was bundled with Ruby 1.8. |
397 |
|
398 |
%prep |
399 |
%setup -q -n ruby-%{rubyver} |
400 |
# When patching mkmf.rb the mkmf.rb.0010 gets installed |
401 |
%patch0 -p1 |
402 |
%patch1 -p1 |
403 |
%patch2 -p1 |
404 |
%patch4 -p1 |
405 |
%patch5 -p1 |
406 |
%patch6 -p1 |
407 |
%patch9 |
408 |
%patch10 |
409 |
%patch11 |
410 |
%patch20 -p1 |
411 |
# #patch22 -p1 |
412 |
|
413 |
%build |
414 |
autoconf |
415 |
CFLAGS=`echo %optflags | sed 's/-fomit-frame-pointer//'` |
416 |
%configure2_5x --enable-shared --disable-rpath --enable-pthread \ |
417 |
--enable-multiarch \ |
418 |
--with-rubylibprefix='%{ruby_libdir}' \ |
419 |
--with-archlibdir='%{_libdir}' \ |
420 |
--with-rubyarchprefix='%{ruby_libarchdir}' \ |
421 |
--with-sitedir='%{ruby_sitelibdir}' \ |
422 |
--with-sitearchdir='%{ruby_sitearchdir}' \ |
423 |
--with-vendordir='%{ruby_vendorlibdir}' \ |
424 |
--with-vendorarchdir='%{ruby_vendorarchdir}' \ |
425 |
--with-rubyhdrdir='%{_includedir}' \ |
426 |
--with-rubyarchhdrdir='%{_includedir}' \ |
427 |
--with-sitearchhdrdir='$(sitehdrdir)/$(arch)' \ |
428 |
--with-vendorarchhdrdir='$(vendorhdrdir)/$(arch)' \ |
429 |
--with-rubygemsdir='%{rubygems_dir}' \ |
430 |
--with-ruby-pc='%{name}.pc' \ |
431 |
--enable-multiarch \ |
432 |
--with-ruby-version='' |
433 |
%make |
434 |
|
435 |
%install |
436 |
%makeinstall_std install-doc |
437 |
|
438 |
install -d %buildroot%{_datadir}/emacs/site-lisp |
439 |
cp -a misc/ruby-mode.el %buildroot%{_datadir}/emacs/site-lisp |
440 |
|
441 |
install -d %buildroot%{_sysconfdir}/emacs/site-start.d |
442 |
cat <<EOF >%buildroot%{_sysconfdir}/emacs/site-start.d/%{name}.el |
443 |
(autoload 'ruby-mode "ruby-mode" "Ruby editing mode." t) |
444 |
(add-to-list 'auto-mode-alist '("\\\\.rb$" . ruby-mode)) |
445 |
(add-to-list 'interpreter-mode-alist '("ruby" . ruby-mode)) |
446 |
EOF |
447 |
|
448 |
# Install the rpm macros |
449 |
mkdir -p %buildroot%{_sysconfdir}/rpm/macros.d |
450 |
cp %{SOURCE3} %buildroot%{_sysconfdir}/rpm/macros.d |
451 |
|
452 |
# Install dependency generators. |
453 |
mkdir -p %{buildroot}%{_rpmconfigdir}/fileattrs |
454 |
install -m 644 %{SOURCE8} %{buildroot}%{_rpmconfigdir}/fileattrs |
455 |
install -m 755 %{SOURCE9} %{buildroot}%{_rpmconfigdir} |
456 |
install -m 755 %{SOURCE10} %{buildroot}%{_rpmconfigdir} |
457 |
|
458 |
# Install custom operating_system.rb |
459 |
mkdir -p %{buildroot}%{rubygems_dir}/rubygems/defaults |
460 |
cp %{SOURCE1} %{buildroot}%{rubygems_dir}/rubygems/defaults |
461 |
|
462 |
# Version is empty if --with-ruby-version is specified. |
463 |
# http://bugs.ruby-lang.org/issues/7807 |
464 |
sed -i 's/Version: .*/Version: %{rubyver}/' %{buildroot}%{_libdir}/pkgconfig/%{name}.pc |
465 |
|
466 |
rm -f %{buildroot}%{gems_dir}/cache/{minitest,power_assert,test-unit}-*.gem |
467 |
|
468 |
# drop gems if not wanted, so that we could split them out as seperated source rpm |
469 |
%if !%build_gems |
470 |
rm -f %{buildroot}%{_bindir}/{rake,rdoc,ri,testrb} |
471 |
rm -f %{buildroot}%{_mandir}/man1/{rake,ri}.* |
472 |
rm -fr %{buildroot}%{ruby_libdir}/{minitest,rake,rdoc,json,bigdecimal}{,.rb} |
473 |
rm -fr %{buildroot}%{ruby_libarchdir}/{json,bigdecimal.so} |
474 |
rm -fr %{buildroot}%{gems_dir}/specifications/{minitest-%{minitest_version},default/rake-%{rake_version},default/rdoc-%{rdoc_version},default/json-%{json_version},default/bigdecimal-%{bigdecimal_version},default/psych-%{psych_version}}.gemspec |
475 |
rm -fr %{buildroot}%{gems_dir}/gems/{minitest-%{minitest_version},rake-%{rake_version},rdoc-%{rdoc_version}} |
476 |
%if !%bootstrap |
477 |
rm -f %{buildroot}%{_bindir}/gem |
478 |
rm -fr %{buildroot}%{rubygems_dir}/rbconfig |
479 |
rm -fr %{buildroot}%{rubygems_dir}/rubygems |
480 |
rm -f %{buildroot}%{rubygems_dir}/rubygems.rb |
481 |
rm -f %{buildroot}%{rubygems_dir}/ubygems.rb |
482 |
%endif |
483 |
%endif |
484 |
|
485 |
%check |
486 |
make test |
487 |
|
488 |
%files |
489 |
%{_bindir}/erb |
490 |
%{_bindir}/ruby |
491 |
%dir %{ruby_libdir} |
492 |
%{ruby_libdir}/*.rb |
493 |
%exclude %{ruby_libdir}/irb.rb |
494 |
%exclude %{ruby_libdir}/multi-tk.rb |
495 |
%exclude %{ruby_libdir}/remote-tk.rb |
496 |
%exclude %{ruby_libdir}/tcltk.rb |
497 |
%exclude %{ruby_libdir}/tk.rb |
498 |
%exclude %{ruby_libdir}/tkafter.rb |
499 |
%exclude %{ruby_libdir}/tkbgerror.rb |
500 |
%exclude %{ruby_libdir}/tkcanvas.rb |
501 |
%exclude %{ruby_libdir}/tkclass.rb |
502 |
%exclude %{ruby_libdir}/tkconsole.rb |
503 |
%exclude %{ruby_libdir}/tkdialog.rb |
504 |
%exclude %{ruby_libdir}/tkentry.rb |
505 |
%exclude %{ruby_libdir}/tkfont.rb |
506 |
%exclude %{ruby_libdir}/tkmacpkg.rb |
507 |
%exclude %{ruby_libdir}/tkmenubar.rb |
508 |
%exclude %{ruby_libdir}/tkmngfocus.rb |
509 |
%exclude %{ruby_libdir}/tkpalette.rb |
510 |
%exclude %{ruby_libdir}/tkscrollbox.rb |
511 |
%exclude %{ruby_libdir}/tktext.rb |
512 |
%exclude %{ruby_libdir}/tkvirtevent.rb |
513 |
%exclude %{ruby_libdir}/tkwinpkg.rb |
514 |
%{ruby_libdir}/cgi |
515 |
%{ruby_libdir}/digest |
516 |
%{ruby_libdir}/drb |
517 |
%{ruby_libdir}/fiddle |
518 |
%{ruby_libdir}/matrix |
519 |
%{ruby_libdir}/net |
520 |
%{ruby_libdir}/openssl |
521 |
%{ruby_libdir}/optparse |
522 |
%{ruby_libdir}/psych |
523 |
%{ruby_libdir}/racc |
524 |
%{ruby_libdir}/rbconfig |
525 |
%{ruby_libdir}/rexml |
526 |
%{ruby_libdir}/rinda |
527 |
%{ruby_libdir}/ripper |
528 |
%{ruby_libdir}/rss |
529 |
%{ruby_libdir}/shell |
530 |
%{ruby_libdir}/syslog |
531 |
%{ruby_libdir}/unicode_normalize/normalize.rb |
532 |
%{ruby_libdir}/unicode_normalize/tables.rb |
533 |
%{ruby_libdir}/unicode_normalize.rb |
534 |
%{ruby_libdir}/uri |
535 |
%{ruby_libdir}/webrick |
536 |
%{ruby_libdir}/xmlrpc |
537 |
%{ruby_libdir}/yaml |
538 |
%dir %{ruby_libarchdir} |
539 |
%{ruby_libarchdir}/continuation.so |
540 |
%{ruby_libarchdir}/coverage.so |
541 |
%{ruby_libarchdir}/date_core.so |
542 |
%{ruby_libarchdir}/dbm.so |
543 |
%dir %{ruby_libarchdir}/digest |
544 |
%{ruby_libarchdir}/digest.so |
545 |
%{ruby_libarchdir}/digest/*.so |
546 |
%dir %{ruby_libarchdir}/enc |
547 |
%{ruby_libarchdir}/enc/*.so |
548 |
%dir %{ruby_libarchdir}/enc/trans |
549 |
%{ruby_libarchdir}/enc/trans/*.so |
550 |
%{ruby_libarchdir}/etc.so |
551 |
%{ruby_libarchdir}/fcntl.so |
552 |
%{ruby_libarchdir}/fiber.so |
553 |
%{ruby_libarchdir}/fiddle.so |
554 |
%{ruby_libarchdir}/gdbm.so |
555 |
%dir %{ruby_libarchdir}/io |
556 |
%{ruby_libarchdir}/io/nonblock.so |
557 |
%{ruby_libarchdir}/io/wait.so |
558 |
%dir %{ruby_libarchdir}/mathn |
559 |
%{ruby_libarchdir}/mathn/*.so |
560 |
%{ruby_libarchdir}/nkf.so |
561 |
%{ruby_libarchdir}/objspace.so |
562 |
%{ruby_libarchdir}/openssl.so |
563 |
%{ruby_libarchdir}/psych.so |
564 |
%{ruby_libarchdir}/pathname.so |
565 |
%{ruby_libarchdir}/pty.so |
566 |
%dir %{ruby_libarchdir}/racc |
567 |
%{ruby_libarchdir}/racc/*.so |
568 |
%{ruby_libarchdir}/rbconfig.rb |
569 |
%{ruby_libarchdir}/rbconfig/sizeof.so |
570 |
%{ruby_libarchdir}/readline.so |
571 |
%{ruby_libarchdir}/ripper.so |
572 |
%{ruby_libarchdir}/sdbm.so |
573 |
%{ruby_libarchdir}/socket.so |
574 |
%{ruby_libarchdir}/stringio.so |
575 |
%{ruby_libarchdir}/strscan.so |
576 |
%{ruby_libarchdir}/syslog.so |
577 |
%{ruby_libarchdir}/thread.so |
578 |
%{ruby_libarchdir}/zlib.so |
579 |
%{_mandir}/man1/erb.1.* |
580 |
%{_mandir}/man1/ruby.1.* |
581 |
%{_datadir}/emacs/site-lisp/* |
582 |
%config(noreplace) %{_sysconfdir}/emacs/site-start.d/* |
583 |
%{_sysconfdir}/rpm/macros.d/%{name}.macros |
584 |
%{_datadir}/ruby/site_ruby |
585 |
%{_libdir}/ruby/site_ruby |
586 |
%{_datadir}/ruby/vendor_ruby |
587 |
%{_libdir}/ruby/vendor_ruby |
588 |
%if %bootstrap |
589 |
%if !%build_gems |
590 |
%{_bindir}/gem |
591 |
%dir %{rubygems_dir} |
592 |
%{rubygems_dir}/rbconfig |
593 |
%{rubygems_dir}/rubygems |
594 |
%{rubygems_dir}/rubygems.rb |
595 |
%{rubygems_dir}/ubygems.rb |
596 |
%endif |
597 |
%endif |
598 |
%{_rpmconfigdir}/fileattrs/rubygems.attr |
599 |
%{_rpmconfigdir}/rubygems.req |
600 |
%{_rpmconfigdir}/rubygems.prov |
601 |
|
602 |
%files doc |
603 |
%{_datadir}/ri |
604 |
%{_datadir}/doc/ruby |
605 |
|
606 |
%files -n %{libname} |
607 |
%{_libdir}/libruby.so.%{subver} |
608 |
%{_libdir}/libruby.so.%{rubyapi} |
609 |
|
610 |
%files devel |
611 |
%{_includedir}/* |
612 |
%{_libdir}/libruby-static.a |
613 |
%{_libdir}/libruby.so |
614 |
%{_libdir}/pkgconfig/*.pc |
615 |
|
616 |
%files tk |
617 |
%{ruby_libarchdir}/tcltklib.so |
618 |
%{ruby_libarchdir}/tkutil.so |
619 |
%{ruby_libdir}/multi-tk.rb |
620 |
%{ruby_libdir}/remote-tk.rb |
621 |
%{ruby_libdir}/tcltk.rb |
622 |
%{ruby_libdir}/tk.rb |
623 |
%{ruby_libdir}/tkafter.rb |
624 |
%{ruby_libdir}/tkbgerror.rb |
625 |
%{ruby_libdir}/tkcanvas.rb |
626 |
%{ruby_libdir}/tkclass.rb |
627 |
%{ruby_libdir}/tkconsole.rb |
628 |
%{ruby_libdir}/tkdialog.rb |
629 |
%{ruby_libdir}/tkentry.rb |
630 |
%{ruby_libdir}/tkfont.rb |
631 |
%{ruby_libdir}/tkmacpkg.rb |
632 |
%{ruby_libdir}/tkmenubar.rb |
633 |
%{ruby_libdir}/tkmngfocus.rb |
634 |
%{ruby_libdir}/tkpalette.rb |
635 |
%{ruby_libdir}/tkscrollbox.rb |
636 |
%{ruby_libdir}/tktext.rb |
637 |
%{ruby_libdir}/tkvirtevent.rb |
638 |
%{ruby_libdir}/tkwinpkg.rb |
639 |
%{ruby_libdir}/tk |
640 |
%{ruby_libdir}/tkextlib |
641 |
|
642 |
%files irb |
643 |
%{_bindir}/irb |
644 |
%{ruby_libdir}/irb.rb |
645 |
%{ruby_libdir}/irb |
646 |
%{_mandir}/man1/irb.1* |
647 |
|
648 |
%files power_assert |
649 |
%{gems_dir}/gems/power_assert-%{power_assert_version} |
650 |
%{gems_dir}/specifications/power_assert-%{power_assert_version}.gemspec |
651 |
|
652 |
%files io-console |
653 |
%{ruby_libdir}/io |
654 |
%{ruby_libarchdir}/io/console.so |
655 |
%{gems_dir}/specifications/default/io-console-%{io_console_version}.gemspec |
656 |
|
657 |
%files test-unit |
658 |
%{gems_dir}/gems/test-unit-* |
659 |
%{gems_dir}/specifications/test-unit-%{test_unit_version}.gemspec |
660 |
|
661 |
%if %build_gems |
662 |
%files RubyGems |
663 |
%{_bindir}/gem |
664 |
%dir %{rubygems_dir} |
665 |
%{rubygems_dir}/rbconfig |
666 |
%{rubygems_dir}/rubygems |
667 |
%{rubygems_dir}/rubygems.rb |
668 |
%{rubygems_dir}/ubygems.rb |
669 |
|
670 |
%files minitest |
671 |
%{gems_dir}/gems/minitest-%{minitest_version} |
672 |
%{gems_dir}/specifications/minitest-%{minitest_version}.gemspec |
673 |
|
674 |
%files rake |
675 |
%{_bindir}/rake |
676 |
%{_mandir}/man1/rake.1.* |
677 |
%{ruby_libdir}/rake |
678 |
%{ruby_libdir}/rake.rb |
679 |
%{gems_dir}/gems/rake-%{rake_version} |
680 |
%{gems_dir}/specifications/default/rake-%{rake_version}.gemspec |
681 |
|
682 |
%files rdoc |
683 |
%{_bindir}/rdoc |
684 |
%{_bindir}/ri |
685 |
%{ruby_libdir}/rdoc |
686 |
%{ruby_libdir}/rdoc.rb |
687 |
%{gems_dir}/gems/rdoc-%{rdoc_version} |
688 |
%{gems_dir}/specifications/default/rdoc-%{rdoc_version}.gemspec |
689 |
%{_mandir}/man1/ri.1.* |
690 |
|
691 |
%files json |
692 |
%dir %{ruby_libarchdir}/json |
693 |
%dir %{ruby_libarchdir}/json/ext |
694 |
%{ruby_libarchdir}/json/ext/*.so |
695 |
%{ruby_libdir}/json |
696 |
%{gems_dir}/specifications/default/json-%{json_version}.gemspec |
697 |
|
698 |
%files bigdecimal |
699 |
%{ruby_libdir}/bigdecimal |
700 |
%{ruby_libarchdir}/bigdecimal.so |
701 |
%{gems_dir}/specifications/default/bigdecimal-%{bigdecimal_version}.gemspec |
702 |
|
703 |
%files psych |
704 |
%{ruby_libdir}/psych |
705 |
%{ruby_libdir}/psych.rb |
706 |
%{ruby_libarchdir}/psych.so |
707 |
%{gems_dir}/specifications/default/psych-%{psych_version}.gemspec |
708 |
%endif |