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 7 |
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 |
%define rel 1 |
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 |
# Use miniruby to regenerate prelude.c. |
150 |
# https://bugs.ruby-lang.org/issues/10554 |
151 |
Patch7: ruby-2.2.3-Generate-preludes-using-miniruby.patch |
152 |
# == FEDORA PATCHES ENDS == |
153 |
# operating_system.rb sets default_dir to user_dir for non root, this causes the build |
154 |
# to install gems into user dir |
155 |
Patch20: ruby-2.3.0-Do-not-install-to-user-dir.patch |
156 |
Patch21: ruby-2.2.5-CVE-2016-7798.patch |
157 |
# Patch22: ruby-2.0.0-tk2.6.patch |
158 |
Patch23: ruby-2.2.5-npn_protocols.patch |
159 |
|
160 |
%package -n %{libname} |
161 |
Summary: Libraries necessary to run Ruby |
162 |
Group: Development/Ruby |
163 |
|
164 |
%package doc |
165 |
Summary: Documentation for the powerful language Ruby |
166 |
Group: Development/Ruby |
167 |
BuildArch: noarch |
168 |
|
169 |
%package devel |
170 |
Summary: Development file for the powerful language Ruby |
171 |
Group: Development/Ruby |
172 |
Requires: %{name} = %{version} |
173 |
Requires: %{libname} = %{version} |
174 |
|
175 |
%package tk |
176 |
Summary: Tk extension for the powerful language Ruby |
177 |
Group: Development/Ruby |
178 |
Requires: %{name} = %{version} |
179 |
|
180 |
%package RubyGems |
181 |
Summary: The Ruby standard for packaging ruby libraries |
182 |
Group: Development/Ruby |
183 |
Version: %{rubygems_version} |
184 |
Requires: ruby(abi) = %{subver} |
185 |
Provides: gem = %{rubygems_version} |
186 |
Provides: rubygems = %{rubygems_version} |
187 |
Provides: ruby(rubygems) = %{rubygems_version} |
188 |
Conflicts: rpm-mageia-setup-build < 1.159 |
189 |
BuildArch: noarch |
190 |
|
191 |
%define rake_ver %{rake_version} |
192 |
%package rake |
193 |
Summary: Simple ruby build program with capabilities similar to make |
194 |
Group: Development/Ruby |
195 |
Version: %{rake_ver} |
196 |
Provides: rubygem(rake) = %{rake_ver} |
197 |
Requires: ruby(abi) = %{subver} |
198 |
BuildArch: noarch |
199 |
|
200 |
%define minitest_ver %{minitest_version} |
201 |
%package minitest |
202 |
Summary: Minitest provides a complete suite of testing facilities |
203 |
Group: Development/Ruby |
204 |
Version: %{minitest_ver} |
205 |
License: MIT |
206 |
Provides: rubygem(minitest) = %{minitest_ver} |
207 |
Requires: ruby(abi) = %{subver} |
208 |
Requires: ruby(rubygems) >= %{rubygems_version} |
209 |
BuildArch: noarch |
210 |
|
211 |
%define power_assert_ver %{power_assert_version} |
212 |
%package power_assert |
213 |
Summary: Power Assert for Ruby |
214 |
Group: Development/Ruby |
215 |
Version: %{power_assert_ver} |
216 |
License: BSD |
217 |
Provides: rubygem(power_assert) = %{power_assert_ver} |
218 |
Requires: ruby(abi) = %{subver} |
219 |
Requires: ruby(rubygems) >= %{rubygems_version} |
220 |
BuildArch: noarch |
221 |
|
222 |
%define json_ver %{json_version} |
223 |
%package json |
224 |
Summary: This is a JSON implementation as a Ruby extension in C |
225 |
Group: Development/Ruby |
226 |
Version: %{json_ver} |
227 |
License: Ruby or GPLv2 |
228 |
Provides: rubygem(json) = %{json_ver} |
229 |
Requires: ruby(abi) = %{subver} |
230 |
Requires: ruby(rubygems) >= %{rubygems_version} |
231 |
|
232 |
%define rdoc_ver %{rdoc_version} |
233 |
%package rdoc |
234 |
Summary: A tool to generate HTML and command-line documentation for Ruby projects |
235 |
Group: Development/Ruby |
236 |
Version: %{rdoc_ver} |
237 |
License: GPLv2 and Ruby and MIT |
238 |
Provides: rubygem(rdoc) = %{rdoc_ver} |
239 |
Requires: ruby(abi) = %{subver} |
240 |
Requires: ruby(rubygems) >= %{rubygems_version} |
241 |
Requires: ruby(irb) = %{version} |
242 |
Provides: rdoc = %{rdoc_ver} |
243 |
Provides: ri = %{rdoc_ver} |
244 |
BuildArch: noarch |
245 |
|
246 |
%package irb |
247 |
Summary: The Interactive Ruby |
248 |
Group: Development/Ruby |
249 |
Provides: irb = %{version}-%{release} |
250 |
Provides: ruby(irb) = %{version}-%{release} |
251 |
Conflicts: ruby < 1.9 |
252 |
BuildArch: noarch |
253 |
|
254 |
%define bigdecimal_ver %{bigdecimal_version} |
255 |
%package bigdecimal |
256 |
Summary: BigDecimal provides arbitrary-precision floating point decimal arithmetic |
257 |
Group: Development/Ruby |
258 |
Version: %{bigdecimal_ver} |
259 |
License: GPL+ or Artistic |
260 |
Provides: rubygem(bigdecimal) = %{bigdecimal_ver} |
261 |
Requires: ruby(abi) = %{subver} |
262 |
Requires: ruby(rubygems) >= %{rubygems_version} |
263 |
|
264 |
%define io_console_ver %{io_console_version} |
265 |
%package io-console |
266 |
Summary: IO/Console is a simple console utilizing library |
267 |
Group: Development/Ruby |
268 |
Version: %{io_console_ver} |
269 |
Provides: rubygem(io-console) = %{io_console_ver} |
270 |
Requires: ruby(abi) = %{subver} |
271 |
Requires: ruby(rubygems) >= %{rubygems_version} |
272 |
|
273 |
%define psych_ver %{psych_version} |
274 |
%package psych |
275 |
Summary: A libyaml wrapper for Ruby |
276 |
Version: %{psych_ver} |
277 |
Group: Development/Ruby |
278 |
License: MIT |
279 |
Provides: rubygem(psych) = %{psych_ver} |
280 |
Requires: ruby(abi) = %{subver} |
281 |
Requires: ruby(rubygems) >= %{rubygems_version} |
282 |
Conflicts: ruby < 2.0.0 |
283 |
|
284 |
%define test_unit_ver %{test_unit_version} |
285 |
%package test-unit |
286 |
Summary: test/unit compatible API testing framework |
287 |
Version: %{test_unit_ver} |
288 |
Group: Development/Ruby |
289 |
License: MIT |
290 |
Provides: rubygem(test-unit) = %{test_unit_ver} |
291 |
Requires: ruby(abi) = %{subver} |
292 |
Requires: ruby(rubygems) >= %{rubygems_version} |
293 |
Conflicts: ruby < 2.0.0 |
294 |
BuildArch: noarch |
295 |
|
296 |
%description |
297 |
Ruby is the interpreted scripting language for quick and |
298 |
easy object-oriented programming. It has many features to |
299 |
process text files and to do system management tasks (as in |
300 |
Perl). It is simple, straight-forward, and extensible. |
301 |
|
302 |
%description doc |
303 |
Ruby is the interpreted scripting language for quick and |
304 |
easy object-oriented programming. It has many features to |
305 |
process text files and to do system management tasks (as in |
306 |
Perl). It is simple, straight-forward, and extensible. |
307 |
|
308 |
This package contains the Ruby's documentation |
309 |
|
310 |
%description -n %{libname} |
311 |
This package includes the libruby, necessary to run Ruby. |
312 |
|
313 |
%description devel |
314 |
Ruby is the interpreted scripting language for quick and |
315 |
easy object-oriented programming. It has many features to |
316 |
process text files and to do system management tasks (as in |
317 |
Perl). It is simple, straight-forward, and extensible. |
318 |
|
319 |
This package contains the Ruby's devel files. |
320 |
|
321 |
%description tk |
322 |
Ruby is the interpreted scripting language for quick and |
323 |
easy object-oriented programming. It has many features to |
324 |
process text files and to do system management tasks (as in |
325 |
Perl). It is simple, straight-forward, and extensible. |
326 |
|
327 |
This package contains the Tk extension for Ruby. |
328 |
|
329 |
%description RubyGems |
330 |
RubyGems is the Ruby standard for publishing and managing third party |
331 |
libraries. |
332 |
|
333 |
%description rake |
334 |
Rake is a Make-like program implemented in Ruby. Tasks and dependencies are |
335 |
specified in standard Ruby syntax. |
336 |
|
337 |
%description rdoc |
338 |
RDoc produces HTML and command-line documentation for Ruby projects. RDoc |
339 |
includes the 'rdoc' and 'ri' tools for generating and displaying online |
340 |
documentation. |
341 |
|
342 |
%description json |
343 |
This is a implementation of the JSON specification according to RFC 4627. |
344 |
You can think of it as a low fat alternative to XML, if you want to store |
345 |
data to disk or transmit it over a network rather than use a verbose |
346 |
markup language. |
347 |
|
348 |
%description minitest |
349 |
minitest/unit is a small and incredibly fast unit testing framework. |
350 |
|
351 |
minitest/spec is a functionally complete spec engine. |
352 |
|
353 |
minitest/benchmark is an awesome way to assert the performance of your |
354 |
algorithms in a repeatable manner. |
355 |
|
356 |
minitest/mock by Steven Baker, is a beautifully tiny mock object |
357 |
framework. |
358 |
|
359 |
minitest/pride shows pride in testing and adds coloring to your test |
360 |
output. |
361 |
|
362 |
%description power_assert |
363 |
Power Assert shows each value of variables and method calls in the expression. |
364 |
It is useful for testing, providing which value wasn't correct when the |
365 |
condition is not satisfied. |
366 |
|
367 |
%description irb |
368 |
The irb is acronym for Interactive Ruby. It evaluates ruby expression |
369 |
from the terminal. |
370 |
|
371 |
%description bigdecimal |
372 |
Ruby provides built-in support for arbitrary precision integer arithmetic. |
373 |
For example: |
374 |
|
375 |
42**13 -> 1265437718438866624512 |
376 |
|
377 |
BigDecimal provides similar support for very large or very accurate floating |
378 |
point numbers. Decimal arithmetic is also useful for general calculation, |
379 |
because it provides the correct answers people expect–whereas normal binary |
380 |
floating point arithmetic often introduces subtle errors because of the |
381 |
conversion between base 10 and base 2. |
382 |
|
383 |
%description io-console |
384 |
IO/Console provides very simple and portable access to console. It doesn't |
385 |
provide higher layer features, such like curses and readline. |
386 |
|
387 |
%description psych |
388 |
Psych is a YAML parser and emitter. Psych leverages |
389 |
libyaml[http://pyyaml.org/wiki/LibYAML] for its YAML parsing and emitting |
390 |
capabilities. In addition to wrapping libyaml, Psych also knows how to |
391 |
serialize and de-serialize most Ruby objects to and from the YAML format. |
392 |
|
393 |
%description test-unit |
394 |
This library implements test/unit compatible API on minitest. |
395 |
The test/unit means that test/unit which was bundled with Ruby 1.8. |
396 |
|
397 |
%prep |
398 |
%setup -q -n ruby-%{rubyver} |
399 |
%autopatch -p1 |
400 |
|
401 |
%build |
402 |
autoconf |
403 |
CFLAGS=`echo %optflags | sed 's/-fomit-frame-pointer//'` |
404 |
%configure2_5x --enable-shared --disable-rpath --enable-pthread \ |
405 |
--enable-multiarch \ |
406 |
--with-rubylibprefix='%{ruby_libdir}' \ |
407 |
--with-archlibdir='%{_libdir}' \ |
408 |
--with-rubyarchprefix='%{ruby_libarchdir}' \ |
409 |
--with-sitedir='%{ruby_sitelibdir}' \ |
410 |
--with-sitearchdir='%{ruby_sitearchdir}' \ |
411 |
--with-vendordir='%{ruby_vendorlibdir}' \ |
412 |
--with-vendorarchdir='%{ruby_vendorarchdir}' \ |
413 |
--with-rubyhdrdir='%{_includedir}' \ |
414 |
--with-rubyarchhdrdir='%{_includedir}' \ |
415 |
--with-sitearchhdrdir='$(sitehdrdir)/$(arch)' \ |
416 |
--with-vendorarchhdrdir='$(vendorhdrdir)/$(arch)' \ |
417 |
--with-rubygemsdir='%{rubygems_dir}' \ |
418 |
--with-ruby-pc='%{name}.pc' \ |
419 |
--enable-multiarch \ |
420 |
--with-ruby-version='' |
421 |
%make |
422 |
|
423 |
%install |
424 |
%makeinstall_std install-doc |
425 |
|
426 |
install -d %buildroot%{_datadir}/emacs/site-lisp |
427 |
cp -a misc/ruby-mode.el %buildroot%{_datadir}/emacs/site-lisp |
428 |
|
429 |
install -d %buildroot%{_sysconfdir}/emacs/site-start.d |
430 |
cat <<EOF >%buildroot%{_sysconfdir}/emacs/site-start.d/%{name}.el |
431 |
(autoload 'ruby-mode "ruby-mode" "Ruby editing mode." t) |
432 |
(add-to-list 'auto-mode-alist '("\\\\.rb$" . ruby-mode)) |
433 |
(add-to-list 'interpreter-mode-alist '("ruby" . ruby-mode)) |
434 |
EOF |
435 |
|
436 |
# Install the rpm macros |
437 |
mkdir -p %buildroot%{_sysconfdir}/rpm/macros.d |
438 |
cp %{SOURCE3} %buildroot%{_sysconfdir}/rpm/macros.d |
439 |
|
440 |
# Install dependency generators. |
441 |
mkdir -p %{buildroot}%{_rpmconfigdir}/fileattrs |
442 |
install -m 644 %{SOURCE8} %{buildroot}%{_rpmconfigdir}/fileattrs |
443 |
install -m 755 %{SOURCE9} %{buildroot}%{_rpmconfigdir} |
444 |
install -m 755 %{SOURCE10} %{buildroot}%{_rpmconfigdir} |
445 |
|
446 |
# Install custom operating_system.rb |
447 |
mkdir -p %{buildroot}%{rubygems_dir}/rubygems/defaults |
448 |
cp %{SOURCE1} %{buildroot}%{rubygems_dir}/rubygems/defaults |
449 |
|
450 |
# Version is empty if --with-ruby-version is specified. |
451 |
# http://bugs.ruby-lang.org/issues/7807 |
452 |
sed -i 's/Version: .*/Version: %{rubyver}/' %{buildroot}%{_libdir}/pkgconfig/%{name}.pc |
453 |
|
454 |
rm -f %{buildroot}%{gems_dir}/cache/{minitest,power_assert,test-unit}-*.gem |
455 |
|
456 |
# drop gems if not wanted, so that we could split them out as seperated source rpm |
457 |
%if !%build_gems |
458 |
rm -f %{buildroot}%{_bindir}/{rake,rdoc,ri,testrb} |
459 |
rm -f %{buildroot}%{_mandir}/man1/{rake,ri}.* |
460 |
rm -fr %{buildroot}%{ruby_libdir}/{minitest,rake,rdoc,json,bigdecimal}{,.rb} |
461 |
rm -fr %{buildroot}%{ruby_libarchdir}/{json,bigdecimal.so} |
462 |
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 |
463 |
rm -fr %{buildroot}%{gems_dir}/gems/{minitest-%{minitest_version},rake-%{rake_version},rdoc-%{rdoc_version}} |
464 |
%if !%bootstrap |
465 |
rm -f %{buildroot}%{_bindir}/gem |
466 |
rm -fr %{buildroot}%{rubygems_dir}/rbconfig |
467 |
rm -fr %{buildroot}%{rubygems_dir}/rubygems |
468 |
rm -f %{buildroot}%{rubygems_dir}/rubygems.rb |
469 |
rm -f %{buildroot}%{rubygems_dir}/ubygems.rb |
470 |
%endif |
471 |
%endif |
472 |
|
473 |
%check |
474 |
DISABLE_TESTS="-x test_gem.rb -x test_gem_commands_cleanup_command.rb -x test_gem_commands_contents_command.rb -x test_gem_commands_pristine_command.rb -x test_gem_commands_query_command.rb -x test_gem_commands_uninstall_command.rb -x test_gem_ext_builder.rb -x /test_gem_installer.rb -x test_gem_specification.rb -x test_gem_uninstaller.rb -x test_gem_validator.rb" |
475 |
|
476 |
make check TESTS="-v $DISABLE_TESTS" |
477 |
|
478 |
%files |
479 |
%{_bindir}/erb |
480 |
%{_bindir}/ruby |
481 |
%dir %{ruby_libdir} |
482 |
%{ruby_libdir}/*.rb |
483 |
%exclude %{ruby_libdir}/irb.rb |
484 |
%exclude %{ruby_libdir}/multi-tk.rb |
485 |
%exclude %{ruby_libdir}/remote-tk.rb |
486 |
%exclude %{ruby_libdir}/tcltk.rb |
487 |
%exclude %{ruby_libdir}/tk.rb |
488 |
%exclude %{ruby_libdir}/tkafter.rb |
489 |
%exclude %{ruby_libdir}/tkbgerror.rb |
490 |
%exclude %{ruby_libdir}/tkcanvas.rb |
491 |
%exclude %{ruby_libdir}/tkclass.rb |
492 |
%exclude %{ruby_libdir}/tkconsole.rb |
493 |
%exclude %{ruby_libdir}/tkdialog.rb |
494 |
%exclude %{ruby_libdir}/tkentry.rb |
495 |
%exclude %{ruby_libdir}/tkfont.rb |
496 |
%exclude %{ruby_libdir}/tkmacpkg.rb |
497 |
%exclude %{ruby_libdir}/tkmenubar.rb |
498 |
%exclude %{ruby_libdir}/tkmngfocus.rb |
499 |
%exclude %{ruby_libdir}/tkpalette.rb |
500 |
%exclude %{ruby_libdir}/tkscrollbox.rb |
501 |
%exclude %{ruby_libdir}/tktext.rb |
502 |
%exclude %{ruby_libdir}/tkvirtevent.rb |
503 |
%exclude %{ruby_libdir}/tkwinpkg.rb |
504 |
%{ruby_libdir}/cgi |
505 |
%{ruby_libdir}/digest |
506 |
%{ruby_libdir}/drb |
507 |
%{ruby_libdir}/fiddle |
508 |
%{ruby_libdir}/matrix |
509 |
%{ruby_libdir}/net |
510 |
%{ruby_libdir}/openssl |
511 |
%{ruby_libdir}/optparse |
512 |
%{ruby_libdir}/psych |
513 |
%{ruby_libdir}/racc |
514 |
%{ruby_libdir}/rbconfig |
515 |
%{ruby_libdir}/rexml |
516 |
%{ruby_libdir}/rinda |
517 |
%{ruby_libdir}/ripper |
518 |
%{ruby_libdir}/rss |
519 |
%{ruby_libdir}/shell |
520 |
%{ruby_libdir}/syslog |
521 |
%{ruby_libdir}/unicode_normalize/normalize.rb |
522 |
%{ruby_libdir}/unicode_normalize/tables.rb |
523 |
%{ruby_libdir}/unicode_normalize.rb |
524 |
%{ruby_libdir}/uri |
525 |
%{ruby_libdir}/webrick |
526 |
%{ruby_libdir}/xmlrpc |
527 |
%{ruby_libdir}/yaml |
528 |
%dir %{ruby_libarchdir} |
529 |
%{ruby_libarchdir}/continuation.so |
530 |
%{ruby_libarchdir}/coverage.so |
531 |
%{ruby_libarchdir}/date_core.so |
532 |
%{ruby_libarchdir}/dbm.so |
533 |
%dir %{ruby_libarchdir}/digest |
534 |
%{ruby_libarchdir}/digest.so |
535 |
%{ruby_libarchdir}/digest/*.so |
536 |
%dir %{ruby_libarchdir}/enc |
537 |
%{ruby_libarchdir}/enc/*.so |
538 |
%dir %{ruby_libarchdir}/enc/trans |
539 |
%{ruby_libarchdir}/enc/trans/*.so |
540 |
%{ruby_libarchdir}/etc.so |
541 |
%{ruby_libarchdir}/fcntl.so |
542 |
%{ruby_libarchdir}/fiber.so |
543 |
%{ruby_libarchdir}/fiddle.so |
544 |
%{ruby_libarchdir}/gdbm.so |
545 |
%dir %{ruby_libarchdir}/io |
546 |
%{ruby_libarchdir}/io/nonblock.so |
547 |
%{ruby_libarchdir}/io/wait.so |
548 |
%dir %{ruby_libarchdir}/mathn |
549 |
%{ruby_libarchdir}/mathn/*.so |
550 |
%{ruby_libarchdir}/nkf.so |
551 |
%{ruby_libarchdir}/objspace.so |
552 |
%{ruby_libarchdir}/openssl.so |
553 |
%{ruby_libarchdir}/psych.so |
554 |
%{ruby_libarchdir}/pathname.so |
555 |
%{ruby_libarchdir}/pty.so |
556 |
%dir %{ruby_libarchdir}/racc |
557 |
%{ruby_libarchdir}/racc/*.so |
558 |
%{ruby_libarchdir}/rbconfig.rb |
559 |
%{ruby_libarchdir}/rbconfig/sizeof.so |
560 |
%{ruby_libarchdir}/readline.so |
561 |
%{ruby_libarchdir}/ripper.so |
562 |
%{ruby_libarchdir}/sdbm.so |
563 |
%{ruby_libarchdir}/socket.so |
564 |
%{ruby_libarchdir}/stringio.so |
565 |
%{ruby_libarchdir}/strscan.so |
566 |
%{ruby_libarchdir}/syslog.so |
567 |
%{ruby_libarchdir}/thread.so |
568 |
%{ruby_libarchdir}/zlib.so |
569 |
%{_mandir}/man1/erb.1.* |
570 |
%{_mandir}/man1/ruby.1.* |
571 |
%{_datadir}/emacs/site-lisp/* |
572 |
%config(noreplace) %{_sysconfdir}/emacs/site-start.d/* |
573 |
%{_sysconfdir}/rpm/macros.d/%{name}.macros |
574 |
%{_datadir}/ruby/site_ruby |
575 |
%{_libdir}/ruby/site_ruby |
576 |
%{_datadir}/ruby/vendor_ruby |
577 |
%{_libdir}/ruby/vendor_ruby |
578 |
%if %bootstrap |
579 |
%if !%build_gems |
580 |
%{_bindir}/gem |
581 |
%dir %{rubygems_dir} |
582 |
%{rubygems_dir}/rbconfig |
583 |
%{rubygems_dir}/rubygems |
584 |
%{rubygems_dir}/rubygems.rb |
585 |
%{rubygems_dir}/ubygems.rb |
586 |
%endif |
587 |
%endif |
588 |
%{_rpmconfigdir}/fileattrs/rubygems.attr |
589 |
%{_rpmconfigdir}/rubygems.req |
590 |
%{_rpmconfigdir}/rubygems.prov |
591 |
|
592 |
%files doc |
593 |
%{_datadir}/ri |
594 |
%{_datadir}/doc/ruby |
595 |
|
596 |
%files -n %{libname} |
597 |
%{_libdir}/libruby.so.%{subver} |
598 |
%{_libdir}/libruby.so.%{rubyapi} |
599 |
|
600 |
%files devel |
601 |
%{_includedir}/* |
602 |
%{_libdir}/libruby-static.a |
603 |
%{_libdir}/libruby.so |
604 |
%{_libdir}/pkgconfig/*.pc |
605 |
|
606 |
%files tk |
607 |
%{ruby_libarchdir}/tcltklib.so |
608 |
%{ruby_libarchdir}/tkutil.so |
609 |
%{ruby_libdir}/multi-tk.rb |
610 |
%{ruby_libdir}/remote-tk.rb |
611 |
%{ruby_libdir}/tcltk.rb |
612 |
%{ruby_libdir}/tk.rb |
613 |
%{ruby_libdir}/tkafter.rb |
614 |
%{ruby_libdir}/tkbgerror.rb |
615 |
%{ruby_libdir}/tkcanvas.rb |
616 |
%{ruby_libdir}/tkclass.rb |
617 |
%{ruby_libdir}/tkconsole.rb |
618 |
%{ruby_libdir}/tkdialog.rb |
619 |
%{ruby_libdir}/tkentry.rb |
620 |
%{ruby_libdir}/tkfont.rb |
621 |
%{ruby_libdir}/tkmacpkg.rb |
622 |
%{ruby_libdir}/tkmenubar.rb |
623 |
%{ruby_libdir}/tkmngfocus.rb |
624 |
%{ruby_libdir}/tkpalette.rb |
625 |
%{ruby_libdir}/tkscrollbox.rb |
626 |
%{ruby_libdir}/tktext.rb |
627 |
%{ruby_libdir}/tkvirtevent.rb |
628 |
%{ruby_libdir}/tkwinpkg.rb |
629 |
%{ruby_libdir}/tk |
630 |
%{ruby_libdir}/tkextlib |
631 |
|
632 |
%files irb |
633 |
%{_bindir}/irb |
634 |
%{ruby_libdir}/irb.rb |
635 |
%{ruby_libdir}/irb |
636 |
%{_mandir}/man1/irb.1* |
637 |
|
638 |
%files power_assert |
639 |
%{gems_dir}/gems/power_assert-%{power_assert_version} |
640 |
%{gems_dir}/specifications/power_assert-%{power_assert_version}.gemspec |
641 |
|
642 |
%files io-console |
643 |
%{ruby_libdir}/io |
644 |
%{ruby_libarchdir}/io/console.so |
645 |
%{gems_dir}/specifications/default/io-console-%{io_console_version}.gemspec |
646 |
|
647 |
%files test-unit |
648 |
%{gems_dir}/gems/test-unit-* |
649 |
%{gems_dir}/specifications/test-unit-%{test_unit_version}.gemspec |
650 |
|
651 |
%if %build_gems |
652 |
%files RubyGems |
653 |
%{_bindir}/gem |
654 |
%dir %{rubygems_dir} |
655 |
%{rubygems_dir}/rbconfig |
656 |
%{rubygems_dir}/rubygems |
657 |
%{rubygems_dir}/rubygems.rb |
658 |
%{rubygems_dir}/ubygems.rb |
659 |
|
660 |
%files minitest |
661 |
%{gems_dir}/gems/minitest-%{minitest_version} |
662 |
%{gems_dir}/specifications/minitest-%{minitest_version}.gemspec |
663 |
|
664 |
%files rake |
665 |
%{_bindir}/rake |
666 |
%{_mandir}/man1/rake.1.* |
667 |
%{ruby_libdir}/rake |
668 |
%{ruby_libdir}/rake.rb |
669 |
%{gems_dir}/gems/rake-%{rake_version} |
670 |
%{gems_dir}/specifications/default/rake-%{rake_version}.gemspec |
671 |
|
672 |
%files rdoc |
673 |
%{_bindir}/rdoc |
674 |
%{_bindir}/ri |
675 |
%{ruby_libdir}/rdoc |
676 |
%{ruby_libdir}/rdoc.rb |
677 |
%{gems_dir}/gems/rdoc-%{rdoc_version} |
678 |
%{gems_dir}/specifications/default/rdoc-%{rdoc_version}.gemspec |
679 |
%{_mandir}/man1/ri.1.* |
680 |
|
681 |
%files json |
682 |
%dir %{ruby_libarchdir}/json |
683 |
%dir %{ruby_libarchdir}/json/ext |
684 |
%{ruby_libarchdir}/json/ext/*.so |
685 |
%{ruby_libdir}/json |
686 |
%{gems_dir}/specifications/default/json-%{json_version}.gemspec |
687 |
|
688 |
%files bigdecimal |
689 |
%{ruby_libdir}/bigdecimal |
690 |
%{ruby_libarchdir}/bigdecimal.so |
691 |
%{gems_dir}/specifications/default/bigdecimal-%{bigdecimal_version}.gemspec |
692 |
|
693 |
%files psych |
694 |
%{ruby_libdir}/psych |
695 |
%{ruby_libdir}/psych.rb |
696 |
%{ruby_libarchdir}/psych.so |
697 |
%{gems_dir}/specifications/default/psych-%{psych_version}.gemspec |
698 |
%endif |