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