2 # - include ext/ in docs
3 # - replace ri with fastri
4 # - patch ri to search multiple indexes (one per package), so RPMs can install ri docs
5 # - fix inconsistencies with versioned vs not-versioned dirs (see dirname hacks in configure)
6 # - custom-rubygems-location.patch
9 %bcond_without doc # skip (time-consuming) docs generating; intended for speed up test builds
10 %bcond_without tk # skip building package with Tk bindings
11 %bcond_without batteries # Don't include rubygems, json, rake, minitest
12 %bcond_without default_ruby # use this Ruby as default system Ruby
13 %bcond_with bootstrap # build bootstrap version
16 %define ruby_version 1.9
18 %define patchlevel 547
20 %define ruby_suffix %{!?with_default_ruby:%{ruby_version}}
21 %define doc_version 1_9_3
22 %define json_ver 1.5.5
23 %define rake_ver 0.9.2.2
24 %define rubygems_ver 1.8.23.2
25 %define minitest_ver 2.5.1
26 # when increasing rdoc_ver, please remove "11." prefix in rdoc package release
27 %define rdoc_ver 3.9.5
29 %define bigdecimal_ver 1.1.0
30 %define io_console_ver 0.3
32 Summary: Ruby - interpreted scripting language
33 Summary(ja.UTF-8): オブジェクト指向言語Rubyインタプリタ
34 Summary(pl.UTF-8): Ruby - interpretowany język skryptowy
35 Summary(pt_BR.UTF-8): Linguagem de script orientada a objeto
36 Summary(zh_CN.UTF-8): ruby - 一种快速高效的面向对象脚本编程语言
37 Name: ruby%{ruby_suffix}
38 Version: %{basever}.%{patchlevel}
41 # Public Domain for example for: include/ruby/st.h, strftime.c, ...
42 License: (Ruby or BSD) and Public Domain
43 Group: Development/Languages
44 Source0: ftp://ftp.ruby-lang.org/pub/ruby/1.9/%{oname}-%{basever}-p%{patchlevel}.tar.bz2
45 # Source0-md5: 5363d399be7f827c77bf8ae5d1a69b38
46 Source1: http://www.ruby-doc.org/download/%{oname}-doc-bundle.tar.gz
47 # Source1-md5: ad1af0043be98ba1a4f6d0185df63876
48 Source2: http://www.ruby-doc.org/downloads/%{oname}_%{doc_version}_stdlib_rdocs.tgz
49 # Source2-md5: ec622612428672c432b6f65dd31a84b5
50 Source3: http://www.ruby-doc.org/downloads/%{oname}_%{doc_version}_core_rdocs.tgz
51 # Source3-md5: 1892aadde51d36106c513bced2193dff
52 Source100: ftp://ftp.ruby-lang.org/pub/ruby/1.8/%{oname}-1.8.7-p330.tar.gz
53 # Source100-md5: 50a49edb787211598d08e756e733e42e
56 Patch0: %{oname}-lib64.patch
57 Patch1: %{oname}-ffs.patch
58 Patch2: fix-bison-invocation.patch
59 # http://redmine.ruby-lang.org/issues/5231
60 Patch3: disable-versioned-paths.patch
61 # TODO: Should be submitted upstream?
62 Patch4: arch-specific-dir.patch
63 # http://redmine.ruby-lang.org/issues/5281
64 Patch5: site-and-vendor-arch-flags.patch
65 # Make mkmf verbose by default
66 Patch6: mkmf-verbose.patch
67 Patch7: strip-ccache.patch
68 URL: http://www.ruby-lang.org/
69 BuildRequires: autoconf >= 2.60
70 BuildRequires: automake
71 BuildRequires: bison >= 1.875
72 BuildRequires: db-devel
73 BuildRequires: gdbm-devel >= 1.8.3
74 BuildRequires: libffi-devel
75 BuildRequires: ncurses-devel
76 BuildRequires: openssl-devel
77 BuildRequires: pkgconfig
78 BuildRequires: readline-devel >= 4.2
79 BuildRequires: rpm-build >= 5.4.10-49
80 # boostrap needs ruby binary, erb module
81 %{!?with_bootstrap:BuildRequires: rpm-rubyprov}
82 %{!?with_bootstrap:BuildRequires: ruby-modules}
83 %{!?with_bootstrap:BuildRequires: ruby}
84 BuildRequires: sed >= 4.0
85 BuildRequires: yaml-devel
87 BuildRequires: tk-devel
89 Requires(post,postun): /sbin/ldconfig
90 Provides: ruby(ver) = %{ruby_version}
91 Obsoletes: ruby-REXML <= 2.4.0-2
92 Obsoletes: ruby-doc < 1.8.4
93 Obsoletes: ruby-fastthread <= 0.6.3
94 Conflicts: ruby-activesupport < 2.3.11-2
95 Conflicts: ruby-activesupport2 < 2.3.11-2
96 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
98 %define ruby_ridir %{_datadir}/ri/%{ruby_version}/system
99 %define gem_dir %{_datadir}/%{oname}/gems/%{ruby_version}
101 # location where rubygems is installed
102 %define rubygems_dir %{ruby_libdir}
104 %define ruby_archdir %{_libdir}/%{oname}/%{ruby_version}
105 %define ruby_libdir %{_datadir}/%{oname}/%{ruby_version}
107 # This is the local lib/arch and should not be used for packaging.
108 %define sitedir site_ruby
109 %define ruby_sitedir %{_prefix}/local/share/%{oname}/%{sitedir}
110 %define ruby_sitearchdir %{_prefix}/local/%{_lib}/%{oname}/%{sitedir}/%{ruby_version}
111 %define ruby_sitelibdir %{_prefix}/local/share/%{oname}/%{sitedir}/%{ruby_version}
113 # This is the general location for libs/archs compatible with all
114 # or most of the Ruby versions available in the PLD repositories.
115 %define vendordir vendor_ruby
116 %define ruby_vendordir %{_datadir}/%{oname}/%{vendordir}
117 %define ruby_vendorarchdir %{_libdir}/%{oname}/%{vendordir}/%{ruby_version}
118 %define ruby_vendorlibdir %{_datadir}/%{oname}/%{vendordir}/%{ruby_version}
120 # TODO: drop legacy loadpaths after all ruby modules rebuilt in Th
121 %define legacy_libdir %{_libdir}/%{oname}/%{ruby_version}
122 %define legacy_archdir %{_libdir}/%{oname}/%{ruby_version}/%{_target_cpu}-linux
123 %define legacy_sitedir %{_libdir}/%{oname}/%{sitedir}
124 %define legacy_sitelibdir %{_libdir}/%{oname}/%{sitedir}/%{ruby_version}
125 %define legacy_sitearchdir %{_libdir}/%{oname}/%{sitedir}/%{ruby_version}/%{_target_cpu}-linux
126 %define legacy_vendordir %{_libdir}/%{oname}/%{vendordir}
127 %define legacy_vendorlibdir %{_libdir}/%{oname}/%{vendordir}/%{ruby_version}
128 %define legacy_vendorarchdir %{_libdir}/%{oname}/%{vendordir}/%{ruby_version}/%{_target_cpu}-linux
130 %define legacy_siteloadpath %{legacy_sitelibdir}\\0%{legacy_sitearchdir}\\0%{legacy_sitedir}
131 %define legacy_vendorloadpath %{legacy_vendorarchdir}
132 %define legacy_loadpath %{legacy_archdir}
133 %define legacy_loadpaths %{legacy_siteloadpath}\\0%{legacy_vendorloadpath}\\0%{legacy_loadpath}
135 # bleh, some nasty (gcc or ruby) bug still not fixed
136 # (SEGV or "unexpected break" on miniruby run during build)
137 %define specflags_ia64 -O0
139 # ruby needs frame pointers for correct exception handling
140 %define specflags_ia32 -fno-omit-frame-pointer
143 Ruby is the interpreted scripting language for quick and easy
144 object-oriented programming. It has many features to process text
145 files and to do system management tasks (as in Perl). It is simple,
146 straight-forward, extensible, and portable.
148 This package contains only shared library and ruby interpreter. To get
149 full-functional ruby environment install ruby-modules package.
151 %description -l ja.UTF-8
152 Rubyはシンプルかつ強力なオブジェクト指向スクリプト言語です.Rubyは最初
153 から純粋なオブジェクト指向言語として設計されていますから,オブジェクト
154 指向プログラミングを手軽に行う事が出来ます.もちろん通常の手続き型のプ ログラミングも可能です.
156 %description -l pl.UTF-8
157 Ruby to interpretowany język skryptowy, w sam raz dla łatwego i
158 szybkiego pisania zorientowanych obiektowo programów. Ma wiele funkcji
159 ułatwiających przetwarzanie plików tekstowych i wykonywanie prac
160 związanych z zarządzaniem systemu (podobnie jak Perl). Jest prosty,
161 rozszerzalny i przenośny.
163 Ten pakiet zawiera tylko bibliotekę dzieloną i interpreter ruby.
164 Zainstaluj pakiet ruby-modules, jeżeli potrzebujesz w pełni
165 funkcjonalnego środowiska ruby.
167 %description -l pt_BR.UTF-8
168 Ruby é uma linguagem de script interpretada de programação orientada a
169 objeto. Possui diversas características para processamento de texto. É
170 simples, extensível e direta.
173 Summary: Ruby standard modules and utilities
174 Summary(pl.UTF-8): Standardowe moduły i narzędzia dla języka Ruby
175 Group: Development/Languages
176 Requires: %{name} = %{epoch}:%{version}-%{release}
177 Suggests: ruby-rubygems
178 Provides: ruby-bigdecimal = %{bigdecimal_ver}
179 Provides: ruby-io-console = %{io_console_ver}
180 # ruby-modules deprecated, rpm5 generates ruby(abi) itself
181 Provides: ruby-modules(ver) = %{ruby_version}
182 %if %{with batteries}
183 Provides: ruby-minitest = %{minitest_ver}
184 Obsoletes: ruby-minitest <= 1.5.0
188 Ruby standard modules and utilities:
190 - testrb - automatic runner for Test::Unit of Ruby
192 %description modules -l pl.UTF-8
193 Standardowe moduły i narzędzia Ruby:
195 - testrb - automatyczny runner dla Ruby Test::Unit
198 Summary: Ruby/Tk bindings
199 Summary(pl.UTF-8): Wiązania Ruby/Tk
200 Group: Development/Languages
201 Requires: %{name}-modules = %{epoch}:%{version}-%{release}
204 This package contains Ruby/Tk bindings.
206 %description tk -l pl.UTF-8
207 Ten pakiet zawiera wiązania Ruby/Tk.
210 Summary: Ruby development libraries
211 Summary(pl.UTF-8): Biblioteki programistyczne interpretera języka Ruby
212 Group: Development/Languages
213 Requires: %{name}-modules = %{epoch}:%{version}-%{release}
215 Requires: glibc-devel
219 Ruby development libraries.
221 %description devel -l pl.UTF-8
222 Biblioteki programistyczne interpretera języka Ruby.
225 Summary: Ruby static libraries
226 Summary(pl.UTF-8): Biblioteki statyczne Ruby
227 Group: Development/Languages
228 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
231 Ruby static libraries.
233 %description static -l pl.UTF-8
234 Biblioteki statyczne Ruby.
237 Summary: Ruby HTML documentation
238 Summary(pl.UTF-8): Dokumentacja HTML do Ruby
240 %if "%{_rpmversion}" >= "5"
245 Ruby HTML documentation: FAQ, guide, core and standard library.
247 %description doc -l pl.UTF-8
248 Dokumentacja HTML do Ruby: FAQ, przewodnik, dokumentacja dla core i
252 Summary: Ruby ri documentation
253 Summary(pl.UTF-8): Dokumentacja Ruby w formacie ri
255 Requires: %{name}-modules = %{epoch}:%{version}-%{release}
256 %if "%{_rpmversion}" >= "5"
261 Ruby ri documentation.
263 %description doc-ri -l pl.UTF-8
264 Dokumentacja Ruby w formacie ri.
267 Summary: Ruby examples
268 Summary(pl.UTF-8): Przykłady dla języka Ruby
269 Group: Development/Languages
270 %if "%{_rpmversion}" >= "5"
274 %description examples
277 %description examples -l pl.UTF-8
278 Przykłady programów w języku Ruby.
280 # IMPORTANT: keep irb, rdoc, rubygems, rake, json as last packages as we reset epoch/version/release
281 # and %{version},%{release} macros may not be used directly as they take last
282 # subpackage value not main package one what you intend to use
285 Summary: The Interactive Ruby
287 Release: %{basever}.%{patchlevel}.%{rel}
289 Group: Development/Languages
290 Requires: %{name}-modules = 1:%{basever}.%{patchlevel}-%{rel}
291 Provides: irb = %{version}-%{release}
292 Provides: ruby(irb) = %{version}-%{release}
293 %if "%{_rpmversion}" >= "5"
298 The irb is acronym for Interactive Ruby. It evaluates ruby expression
302 Summary: A tool to generate HTML and command-line documentation for Ruby projects
303 Summary(pl.UTF-8): Narzędzie do generowania dokumentacji HTML i linii poleceń dla projektów w Rubym
305 # remove "11." when rdoc_ver is increased
306 Release: 11.%{basever}.%{patchlevel}.%{rel}
308 License: GPL v2 and Ruby and MIT
309 Group: Development/Libraries
310 Requires: %{name}-modules = 1:%{basever}.%{patchlevel}-%{rel}
311 Obsoletes: rdoc <= 0.9.0
312 %if "%{_rpmversion}" >= "5"
317 RDoc produces HTML and command-line documentation for Ruby projects.
318 RDoc includes the 'rdoc' and 'ri' tools for generating and displaying
319 online documentation.
321 %description rdoc -l pl.UTF-8
322 RDoc tworzy dokumentację HTML i linii poleceń dla projektów w języku
323 Ruby. RDoc zawiera narzędzia 'rdoc' i 'ri' do generowania i
324 wyświetlania dokumentacji online.
327 Summary: RubyGems - the Ruby standard for packaging Ruby libraries
328 Summary(pl.UTF-8): RubyGems - standard Ruby'ego pakietowania bibliotek
329 Version: %{rubygems_ver}
330 Release: %{basever}.%{patchlevel}.%{rel}
333 Group: Development/Libraries
334 Requires: %{name}-modules = 1:%{basever}.%{patchlevel}-%{rel}
335 Requires: %{name}-rdoc >= %{rdoc_ver}
336 Suggests: %{name}-devel
337 Provides: rubygems = %{rubygems_ver}
338 %if "%{_rpmversion}" >= "5"
342 %description rubygems
343 RubyGems is the Ruby standard for publishing and managing third party
346 %description rubygems -l pl.UTF-8
347 RubyGems to standardowe narzędzie języka Ruby do publikowania i
348 zarządzania zewnętrznymi bibliotekami.
351 Summary: Rake is a Make-like program implemented in Ruby
352 Summary(pl.UTF-8): Program typu Make dla języka Ruby
354 Release: %{basever}.%{patchlevel}.%{rel}
357 Group: Development/Languages
358 Provides: rake = %{rake_ver}
359 Conflicts: ruby-modules < 1:1.9.3.429-2
360 %if "%{_rpmversion}" >= "5"
365 Rake is a simple Ruby build program with capabilities similar to make.
367 It has the following features:
368 - Rakefiles (rake's version of Makefiles) are completely defined in
369 standard Ruby syntax. No XML files to edit. No quirky Makefile syntax
370 to worry about (is that a tab or a space?)
371 - Users can specify tasks with prerequisites.
372 - Rake supports rule patterns to synthesize implicit tasks.
373 - Rake is lightweight. It can be distributed with other projects as a
374 single file. Projects that depend upon rake do not require that rake
375 be installed on target systems.
377 %description rake -l pl.UTF-8
378 Rake to prosty program do budowania w języku Ruby o możliwościach
381 Ma następujące cechy:
382 - Pliki Rakefile (rake'owa odmiana plików Makefile) są definiowane
383 całkowicie w standardowej składni języka Ruby. Nie trzeba modyfikować
384 plików XML. Nie trzeba martwić się kaprysami składni Makefile (czy to
385 tabulacja czy spacja?).
386 - Użytkownicy mogą określać zadania z ich zależnościami.
387 - Rake obsługuje wzorce reguł do tworzenia z nich wynikowych zadań.
388 - Rake jest lekki. Może być rozpowszechniany z innymi projektami jako
389 pojedynczy plik. Projekty używające rake'a nie wymagają go
390 zainstalowanego na systemach docelowych.
393 Summary: JSON library for Ruby
394 Summary(pl.UTF-8): Biblioteka JSON dla języka Ruby
396 Release: %{basever}.%{patchlevel}.%{rel}
399 Group: Development/Languages
400 Obsoletes: ruby-json-rubyforge
401 Conflicts: ruby-modules < 1:1.9.3.429-3
404 This is a JSON implementation as a Ruby extension in C.
406 %description json -l pl.UTF-8
407 Biblioteka JSON dla języka Ruby.
410 %if %{with bootstrap}
411 %setup -q -n %{oname}-%{basever}-p%{patchlevel} -a1 -a2 -a3 -a100
413 %setup -q -n %{oname}-%{basever}-p%{patchlevel} -a1 -a2 -a3
424 # must be regenerated with new bison
427 find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
429 find -type f '(' -name '*.rb' -o -name '*.cgi' -o -name '*.test' \
430 -o -name 'ruby.1' -o -name '*.html' -o -name '*.tcl' ')' \
431 | xargs %{__sed} -i 's,/usr/local/bin/,%{_bindir}/,'
434 rubygems_ver=$(awk '/VERSION =/ && $1 == "VERSION" {print $3}' lib/rubygems.rb | xargs)
435 if [ $rubygems_ver != %{rubygems_ver} ]; then
436 echo "Set %%define rubygems_ver to $rubygems_ver and re-run."
439 rdoc_ver=$(awk '/VERSION =/ && $1 == "VERSION" {print $3}' lib/rdoc.rb | xargs)
440 if [ $rdoc_ver != %{rdoc_ver} ]; then
441 echo "Set %%define rdoc_ver to $rdoc_ver and re-run."
445 cp -f /usr/share/automake/config.sub .
447 # build ruby-1.8.7 first
448 %if %{with bootstrap}
449 cd %{oname}-1.8.7-p330
457 %{?with_bootstrap:--with-baseruby=%{oname}-1.8.7-p330/miniruby} \
458 --program-suffix=%{ruby_suffix} \
459 --with-rubylibprefix=%(dirname %{ruby_libdir}) \
460 --with-archdir=%{ruby_archdir} \
461 --with-sitedir=%(dirname %{ruby_sitelibdir}) \
462 --with-sitearchdir=%{ruby_sitearchdir} \
463 --with-vendordir=%(dirname %{ruby_vendorlibdir}) \
464 --with-vendorarchdir=%{ruby_vendorarchdir} \
465 --with-search-path="%{legacy_loadpaths}" \
469 --disable-install-doc \
470 --with-ruby-version=minor
474 %{?with_bootstrap:BASERUBY="%{oname}-1.8.7-p330/miniruby -I./ruby-1.8.7-p330/lib"}
481 rm -rf $RPM_BUILD_ROOT
482 install -d $RPM_BUILD_ROOT{%{ruby_rdocdir},%{ruby_ridir}} \
483 $RPM_BUILD_ROOT{%{ruby_vendorarchdir} \
484 $RPM_BUILD_ROOT%{ruby_vendorlibdir}/net \
485 $RPM_BUILD_ROOT%{ruby_vendordir}/data \
486 $RPM_BUILD_ROOT{%{legacy_archdir}/racc,%{legacy_sitelibdir},%{legacy_sitearchdir},%{legacy_vendorarchdir},%{legacy_libdir}/tasks} \
488 %{__make} install %{?with_doc:install-doc} \
489 DESTDIR=$RPM_BUILD_ROOT
491 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{oname}-%{basever}.%{patchlevel}
492 cp -Rf sample/* $RPM_BUILD_ROOT%{_examplesdir}/%{oname}-%{basever}.%{patchlevel}
493 cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_mandir}/man1/rdoc%{ruby_suffix}.1
494 cp -p %{SOURCE5} $RPM_BUILD_ROOT%{_mandir}/man1/testrb%{ruby_suffix}.1
496 %{__rm} -rf $RPM_BUILD_ROOT%{_docdir}/%{name}/html
498 ln -sf %{gem_dir}/gems/rake-%{rake_ver}/bin/rake $RPM_BUILD_ROOT%{_bindir}/rake%{ruby_suffix}
500 %if %{without batteries}
501 # packaged separately
502 %{__rm} -r $RPM_BUILD_ROOT%{ruby_libdir}/{rubygems,rake,json,minitest}
503 %{__rm} -r $RPM_BUILD_ROOT%{ruby_archdir}/json
504 %{__rm} -r $RPM_BUILD_ROOT%{gem_dir}/gems/rake-*
505 %{__rm} $RPM_BUILD_ROOT%{ruby_libdir}/{rake,rubygems,json}.rb
506 %{__rm} $RPM_BUILD_ROOT%{_bindir}/{gem,rake}
507 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/rake*
508 %{__rm} $RPM_BUILD_ROOT%{gem_dir}/specifications/{json,minitest,rake}-*.gemspec
509 %{?with_doc:%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/ri/%{ruby_version}/system/JSON}
514 %{__rm} $RPM_BUILD_ROOT%{ruby_ridir}/cache.ri
515 %{__rm} $RPM_BUILD_ROOT%{ruby_ridir}/created.rid
519 rm -rf $RPM_BUILD_ROOT
521 %post -p /sbin/ldconfig
522 %postun -p /sbin/ldconfig
525 %defattr(644,root,root,755)
526 %doc NEWS LEGAL README README.EXT ChangeLog ToDo
527 %attr(755,root,root) %{_bindir}/ruby%{ruby_suffix}
528 %attr(755,root,root) %{_libdir}/libruby.so.*.*.*
529 %attr(755,root,root) %ghost %{_libdir}/libruby.so.%{ruby_version}
530 %{_mandir}/man1/ruby%{ruby_suffix}.1*
532 %dir %{_libdir}/%{oname}
533 %dir %{_libdir}/%{oname}/%{vendordir}
534 %dir %{_datadir}/%{oname}
538 %dir %{ruby_vendordir}
539 %dir %{ruby_vendordir}/data
540 %dir %{ruby_vendorlibdir}
541 %dir %{ruby_vendorarchdir}
544 %dir %{_datadir}/ri/%{ruby_version}
549 # common dirs for ruby vendor modules
550 %dir %{ruby_vendorlibdir}/net
552 # legacy dirs. when everything rebuilt in Th not using these dirs. drop them
553 %dir %{legacy_archdir}
554 %dir %{legacy_sitedir}
555 %dir %{legacy_sitelibdir}
556 %dir %{legacy_sitearchdir}
557 %dir %{legacy_vendorarchdir}
558 %dir %{legacy_libdir}/tasks
559 %dir %{legacy_archdir}/racc
562 %defattr(644,root,root,755)
563 %attr(755,root,root) %{_libdir}/libruby.so
564 %{_includedir}/%{oname}-%{ruby_version}
565 %{_pkgconfigdir}/ruby-%{ruby_version}.pc
566 %{ruby_libdir}/mkmf.rb
569 %defattr(644,root,root,755)
570 %{_libdir}/libruby-static.a
574 %defattr(644,root,root,755)
575 %{ruby_libdir}/tcltk.rb
576 %{ruby_libdir}/tk*.rb
578 %{ruby_libdir}/tkextlib
579 %attr(755,root,root) %{ruby_archdir}/t*.so
583 %defattr(644,root,root,755)
584 %attr(755,root,root) %{_bindir}/irb%{ruby_suffix}
585 %{ruby_libdir}/irb.rb
587 %{_mandir}/man1/irb%{ruby_suffix}.1*
590 %defattr(644,root,root,755)
591 %attr(755,root,root) %{_bindir}/rdoc%{ruby_suffix}
592 %attr(755,root,root) %{_bindir}/ri%{ruby_suffix}
593 %{_mandir}/man1/rdoc%{ruby_suffix}.1*
595 %dir %{gem_dir}/gems/rdoc-%{rdoc_ver}
596 %dir %{gem_dir}/gems/rdoc-%{rdoc_ver}/bin
597 %attr(755,root,root) %{gem_dir}/gems/rdoc-%{rdoc_ver}/bin/rdoc
598 %{gem_dir}/specifications/rdoc-%{rdoc_ver}.gemspec
599 %attr(755,root,root) %{gem_dir}/gems/rdoc-%{rdoc_ver}/bin/ri
601 %if %{with batteries}
603 %defattr(644,root,root,755)
604 %attr(755,root,root) %{_bindir}/gem%{ruby_suffix}
605 %{rubygems_dir}/rubygems
606 %{rubygems_dir}/rubygems.rb
607 %{rubygems_dir}/ubygems.rb
610 %defattr(644,root,root,755)
611 %attr(755,root,root) %{_bindir}/rake%{ruby_suffix}
612 %{_mandir}/man1/rake%{ruby_suffix}.1*
614 %dir %{gem_dir}/gems/rake-%{rake_ver}
615 %dir %{gem_dir}/gems/rake-%{rake_ver}/bin
616 %attr(755,root,root) %{gem_dir}/gems/rake-%{rake_ver}/bin/rake
617 %{gem_dir}/specifications/rake-%{rake_ver}.gemspec
620 %defattr(644,root,root,755)
622 %dir %{ruby_archdir}/json
623 %dir %{ruby_archdir}/json/ext
624 %attr(755,root,root) %{ruby_archdir}/json/ext/*.so
625 %{gem_dir}/specifications/json-%{json_ver}.gemspec
629 %defattr(644,root,root,755)
630 %attr(755,root,root) %{_bindir}/erb%{ruby_suffix}
631 %attr(755,root,root) %{_bindir}/testrb%{ruby_suffix}
632 %{ruby_libdir}/bigdecimal
635 %{ruby_libdir}/digest
638 %{ruby_libdir}/fiddle
640 %{ruby_libdir}/matrix
642 %{ruby_libdir}/openssl
643 %{ruby_libdir}/optparse
646 %{ruby_libdir}/rbconfig
649 %{ruby_libdir}/ripper
655 %{ruby_libdir}/webrick
656 %{ruby_libdir}/xmlrpc
658 %{ruby_libdir}/[A-Za-s]*.rb
659 %{ruby_libdir}/tempfile.rb
660 %{ruby_libdir}/thread.rb
661 %{ruby_libdir}/thwait.rb
662 %{ruby_libdir}/time.rb
663 %{ruby_libdir}/timeout.rb
664 %{ruby_libdir}/tmpdir.rb
665 %{ruby_libdir}/tracer.rb
666 %{ruby_libdir}/tsort.rb
667 %{ruby_libdir}/[u-z]*.rb
668 %if %{with batteries}
669 %exclude %{ruby_libdir}/rubygems.rb
670 %exclude %{ruby_libdir}/ubygems.rb
672 %exclude %{ruby_libdir}/irb.rb
673 %exclude %{ruby_libdir}/mkmf.rb
674 %attr(755,root,root) %{ruby_archdir}/[a-s]*.so
675 %attr(755,root,root) %{ruby_archdir}/[u-z]*.so
676 %dir %{ruby_archdir}/digest
677 %attr(755,root,root) %{ruby_archdir}/digest/*.so
678 %dir %{ruby_archdir}/dl
679 %attr(755,root,root) %{ruby_archdir}/dl/callback.so
680 %dir %{ruby_archdir}/enc
681 %attr(755,root,root) %{ruby_archdir}/enc/*.so
682 %dir %{ruby_archdir}/enc/trans
683 %attr(755,root,root) %{ruby_archdir}/enc/trans/*.so
684 %dir %{ruby_archdir}/io
685 %attr(755,root,root) %{ruby_archdir}/io/*.so
686 %dir %{ruby_archdir}/mathn
687 %attr(755,root,root) %{ruby_archdir}/mathn/*.so
688 %dir %{ruby_archdir}/racc
689 %attr(755,root,root) %{ruby_archdir}/racc/*.so
690 %{ruby_archdir}/rbconfig.rb
692 %{gem_dir}/specifications/bigdecimal-%{bigdecimal_ver}.gemspec
693 %{gem_dir}/specifications/io-console-%{io_console_ver}.gemspec
695 %if %{with batteries}
697 %{ruby_libdir}/minitest
698 %{gem_dir}/specifications/minitest-%{minitest_ver}.gemspec
702 %dir %{_datadir}/%{oname}/gems
703 #%dir %{_datadir}/%{oname}/gems/%{ruby_version}
704 %dir %{_datadir}/%{oname}/gems/%{ruby_version}/gems
707 %dir %{gem_dir}/specifications
708 %{_mandir}/man1/erb%{ruby_suffix}.1*
709 %{_mandir}/man1/ri%{ruby_suffix}.1*
710 %{_mandir}/man1/testrb%{ruby_suffix}.1*
713 %defattr(644,root,root,755)
714 %doc ruby-doc-bundle/*
715 %{?with_doc:%doc ruby_%{doc_version}_stdlib}
716 %{?with_doc:%doc ruby_%{doc_version}_core}
720 %defattr(644,root,root,755)
725 %defattr(644,root,root,755)
726 %{_examplesdir}/%{oname}-*