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 # - fix requires/provides 'ruby(abi) = '
7 # - nil this macro: %ruby_mod_ver_requires_eq "Requires: ruby-modules(ver) = "
9 # - %ruby_version is empty and rpm error then
10 # - vendor packages get installed to /usr/share/ruby/vendor_ruby/PACKAGE, which
11 # will be installed fine on ruby < 2.0, but not usable as path not in include
12 # path, how to force vendor packages built with ruby 2.0 pull ruby 2.0?
13 # for packages with gem deps it's simple: ruby-listen-2.7.1-0.2.noarch marks ruby-modules-2.0.0.451-0.17.x86_64 (cap /usr/share/gems/specifications)
16 %bcond_without doc # skip (time-consuming) docs generating; intended for speed up test builds
17 %bcond_without tk # skip building package with Tk bindings
18 %bcond_without batteries # Don't include rubygems, json, rake, minitest
19 %bcond_without default_ruby # use this Ruby as default system Ruby
20 %bcond_with bootstrap # build bootstrap version
23 %define ruby_version 2.0
25 %define patchlevel 481
27 %define ruby_suffix %{!?with_default_ruby:%{ruby_version}}
28 %define doc_version 2_0_0
30 %define bigdecimal_ver 1.2.0
31 %define io_console_ver 0.4.2
33 %define json_ver 1.7.7
34 %define minitest_ver 4.3.2
35 %define psych_ver 2.0.0
36 %define rake_ver 0.9.6
37 %define rdoc_ver 4.0.0
38 %define rubygems_ver 2.0.14
39 %define test_unit_ver 2.0.0.0
42 Summary: Ruby - interpreted scripting language
43 Summary(ja.UTF-8): オブジェクト指向言語Rubyインタプリタ
44 Summary(pl.UTF-8): Ruby - interpretowany język skryptowy
45 Summary(pt_BR.UTF-8): Linguagem de script orientada a objeto
46 Summary(zh_CN.UTF-8): ruby - 一种快速高效的面向对象脚本编程语言
47 Name: ruby%{ruby_suffix}
48 Version: %{basever}.%{patchlevel}
51 # Public Domain for example for: include/ruby/st.h, strftime.c, ...
52 License: (Ruby or BSD) and Public Domain
53 Group: Development/Languages
54 Source0: ftp://ftp.ruby-lang.org/pub/ruby/2.0/%{oname}-%{basever}-p%{patchlevel}.tar.bz2
55 # Source0-md5: ea406a8d415a1a5d8365596d4288f3da
56 Source1: http://www.ruby-doc.org/download/%{oname}-doc-bundle.tar.gz
57 # Source1-md5: ad1af0043be98ba1a4f6d0185df63876
58 Source2: http://www.ruby-doc.org/downloads/%{oname}_%{doc_version}_stdlib_rdocs.tgz
59 # Source2-md5: e93307804295a43512cafbf660a4cbe0
60 Source3: http://www.ruby-doc.org/downloads/%{oname}_%{doc_version}_core_rdocs.tgz
61 # Source3-md5: 900186f317b51edfbb2f5317f8855719
62 Source100: ftp://ftp.ruby-lang.org/pub/ruby/1.8/%{oname}-1.8.7-p330.tar.gz
63 # Source100-md5: 50a49edb787211598d08e756e733e42e
66 Patch0: %{oname}-lib64.patch
67 Patch1: %{oname}-ffs.patch
68 Patch2: fix-bison-invocation.patch
69 # http://redmine.ruby-lang.org/issues/5231
70 #Patch3: disable-versioned-paths.patch
71 # TODO: Should be submitted upstream?
72 #Patch4: arch-specific-dir.patch
73 # http://redmine.ruby-lang.org/issues/5281
74 #Patch5: site-and-vendor-arch-flags.patch
75 # Make mkmf verbose by default
76 Patch6: mkmf-verbose.patch
77 Patch7: strip-ccache.patch
78 Patch8: duplicated-paths.patch
80 Patch10: empty-ruby-version.patch
81 Patch11: rubygems-2.0.0-binary-extensions.patch
82 Patch12: custom-rubygems-location.patch
83 URL: http://www.ruby-lang.org/
84 BuildRequires: autoconf >= 2.60
85 BuildRequires: automake
86 BuildRequires: bison >= 1.875
87 BuildRequires: db-devel
88 BuildRequires: gdbm-devel >= 1.8.3
89 BuildRequires: libffi-devel
90 BuildRequires: ncurses-devel
91 BuildRequires: openssl-devel
92 BuildRequires: pkgconfig
93 BuildRequires: readline-devel >= 4.2
94 BuildRequires: rpm-build >= 5.4.10-49
95 # bootstrap needs ruby binary, erb module
96 %{!?with_bootstrap:BuildRequires: rpm-rubyprov}
97 %{!?with_bootstrap:BuildRequires: ruby-modules}
98 %{!?with_bootstrap:BuildRequires: ruby}
99 BuildRequires: sed >= 4.0
100 BuildRequires: yaml-devel
102 BuildRequires: tk-devel
104 Requires(post,postun): /sbin/ldconfig
105 Provides: ruby(ver) = %{ruby_version}
106 Obsoletes: ruby-REXML <= 2.4.0-2
107 Obsoletes: ruby-doc < 1.8.4
108 Obsoletes: ruby-fastthread <= 0.6.3
109 Conflicts: rpm-build-macros < 1.692
110 Conflicts: ruby-activesupport < 2.3.11-2
111 Conflicts: ruby-activesupport2 < 2.3.11-2
112 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
114 %define ruby_ridir %{_datadir}/ri/%{ruby_version}/system
115 #%define gem_dir %{_datadir}/gems
116 #%define gem_dir %{_datadir}/%{oname}/gems/%{ruby_version}
117 %define gem_dir %{_datadir}/%{oname}/%{ruby_version}/gems
119 # location where rubygems is installed
120 %define rubygems_dir %{ruby_libdir}
122 %define ruby_archdir %{_libdir}/%{oname}/%{ruby_version}
123 %define ruby_libarchdir %{_libdir}/%{oname}/%{ruby_version}
124 %define ruby_libdir %{_datadir}/%{oname}/%{ruby_version}
126 # This is the local lib/arch and should not be used for packaging.
127 %define sitedir site_ruby
128 %define ruby_sitearchdir %{_prefix}/local/%{_lib}/%{oname}/%{sitedir}/%{ruby_version}
129 %define ruby_sitelibdir %{_prefix}/local/share/%{oname}/%{sitedir}
131 # This is the general location for libs/archs compatible with all
132 # or most of the Ruby versions available in the PLD repositories.
133 %define vendordir vendor_ruby
134 %define ruby_vendorarchdir %{_libdir}/%{oname}/%{vendordir}/%{ruby_version}
135 %define ruby_vendorlibdir %{_datadir}/%{oname}/%{vendordir}
137 # TODO: drop legacy loadpaths after all ruby modules rebuilt in Th
138 %define legacy_libdir %{_libdir}/%{oname}/%{ruby_version}
139 %define legacy_archdir %{_libdir}/%{oname}/%{ruby_version}/%{_target_cpu}-linux
140 %define legacy_sitedir %{_libdir}/%{oname}/%{sitedir}
141 %define legacy_sitelibdir %{_libdir}/%{oname}/%{sitedir}/%{ruby_version}
142 %define legacy_sitearchdir %{_libdir}/%{oname}/%{sitedir}/%{ruby_version}/%{_target_cpu}-linux
143 %define legacy_vendordir %{_libdir}/%{oname}/%{vendordir}
144 %define legacy_vendorlibdir %{_libdir}/%{oname}/%{vendordir}/%{ruby_version}
145 %define legacy_vendorarchdir %{_libdir}/%{oname}/%{vendordir}/%{ruby_version}/%{_target_cpu}-linux
147 %define legacy_siteloadpath %{legacy_sitelibdir}\\0%{legacy_sitearchdir}\\0%{legacy_sitedir}
148 %define legacy_vendorloadpath %{legacy_vendorarchdir}
149 %define legacy_loadpath %{legacy_archdir}
150 %define legacy_loadpaths %{legacy_siteloadpath}\\0%{legacy_vendorloadpath}\\0%{legacy_loadpath}
152 # bleh, some nasty (gcc or ruby) bug still not fixed
153 # (SEGV or "unexpected break" on miniruby run during build)
154 %define specflags_ia64 -O0
156 # ruby needs frame pointers for correct exception handling
157 %define specflags_ia32 -fno-omit-frame-pointer
160 Ruby is the interpreted scripting language for quick and easy
161 object-oriented programming. It has many features to process text
162 files and to do system management tasks (as in Perl). It is simple,
163 straight-forward, extensible, and portable.
165 This package contains only shared library and ruby interpreter. To get
166 full-functional ruby environment install ruby-modules package.
168 %description -l ja.UTF-8
169 Rubyはシンプルかつ強力なオブジェクト指向スクリプト言語です.Rubyは最初
170 から純粋なオブジェクト指向言語として設計されていますから,オブジェクト
171 指向プログラミングを手軽に行う事が出来ます.もちろん通常の手続き型のプ ログラミングも可能です.
173 %description -l pl.UTF-8
174 Ruby to interpretowany język skryptowy, w sam raz dla łatwego i
175 szybkiego pisania zorientowanych obiektowo programów. Ma wiele funkcji
176 ułatwiających przetwarzanie plików tekstowych i wykonywanie prac
177 związanych z zarządzaniem systemu (podobnie jak Perl). Jest prosty,
178 rozszerzalny i przenośny.
180 Ten pakiet zawiera tylko bibliotekę dzieloną i interpreter ruby.
181 Zainstaluj pakiet ruby-modules, jeżeli potrzebujesz w pełni
182 funkcjonalnego środowiska ruby.
184 %description -l pt_BR.UTF-8
185 Ruby é uma linguagem de script interpretada de programação orientada a
186 objeto. Possui diversas características para processamento de texto. É
187 simples, extensível e direta.
190 Summary: Ruby standard modules and utilities
191 Summary(pl.UTF-8): Standardowe moduły i narzędzia dla języka Ruby
192 Group: Development/Languages
193 Requires: %{name} = %{epoch}:%{version}-%{release}
194 Suggests: ruby-rubygems
195 Provides: ruby-bigdecimal = %{bigdecimal_ver}
196 Provides: ruby-io-console = %{io_console_ver}
197 # ruby-modules deprecated, rpm5 generates ruby(abi) itself
198 Provides: ruby-modules(ver) = %{ruby_version}
199 %if %{with batteries}
200 Provides: ruby-minitest = %{minitest_ver}
201 Obsoletes: ruby-minitest <= 1.5.0
204 Provides: ruby(abi) = %{ruby_version}
207 Ruby standard modules and utilities:
209 - testrb - automatic runner for Test::Unit of Ruby
211 %description modules -l pl.UTF-8
212 Standardowe moduły i narzędzia Ruby:
214 - testrb - automatyczny runner dla Ruby Test::Unit
217 Summary: Ruby/Tk bindings
218 Summary(pl.UTF-8): Wiązania Ruby/Tk
219 Group: Development/Languages
220 Requires: %{name}-modules = %{epoch}:%{version}-%{release}
223 This package contains Ruby/Tk bindings.
225 %description tk -l pl.UTF-8
226 Ten pakiet zawiera wiązania Ruby/Tk.
229 Summary: Ruby development libraries
230 Summary(pl.UTF-8): Biblioteki programistyczne interpretera języka Ruby
231 Group: Development/Languages
232 Requires: %{name}-modules = %{epoch}:%{version}-%{release}
234 Requires: glibc-devel
238 Ruby development libraries.
240 %description devel -l pl.UTF-8
241 Biblioteki programistyczne interpretera języka Ruby.
244 Summary: Ruby static libraries
245 Summary(pl.UTF-8): Biblioteki statyczne Ruby
246 Group: Development/Languages
247 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
250 Ruby static libraries.
252 %description static -l pl.UTF-8
253 Biblioteki statyczne Ruby.
256 Summary: Ruby HTML documentation
257 Summary(pl.UTF-8): Dokumentacja HTML do Ruby
259 %if "%{_rpmversion}" >= "5"
264 Ruby HTML documentation: FAQ, guide, core and standard library.
266 %description doc -l pl.UTF-8
267 Dokumentacja HTML do Ruby: FAQ, przewodnik, dokumentacja dla core i
271 Summary: Ruby ri documentation
272 Summary(pl.UTF-8): Dokumentacja Ruby w formacie ri
274 Requires: %{name}-modules = %{epoch}:%{version}-%{release}
275 %if "%{_rpmversion}" >= "5"
280 Ruby ri documentation.
282 %description doc-ri -l pl.UTF-8
283 Dokumentacja Ruby w formacie ri.
286 Summary: Ruby examples
287 Summary(pl.UTF-8): Przykłady dla języka Ruby
288 Group: Development/Languages
289 %if "%{_rpmversion}" >= "5"
293 %description examples
296 %description examples -l pl.UTF-8
297 Przykłady programów w języku Ruby.
299 # IMPORTANT: keep irb, rdoc, rubygems, rake, json as last packages as we reset epoch/version/release
300 # and %{version},%{release} macros may not be used directly as they take last
301 # subpackage value not main package one what you intend to use
304 Summary: The Interactive Ruby
306 Release: %{basever}.%{patchlevel}.%{rel}
308 Group: Development/Languages
309 Requires: %{name}-modules = 1:%{basever}.%{patchlevel}-%{rel}
310 Provides: irb = %{version}-%{release}
311 Provides: ruby(irb) = %{version}-%{release}
312 %if "%{_rpmversion}" >= "5"
317 The irb is acronym for Interactive Ruby. It evaluates ruby expression
321 Summary: A tool to generate HTML and command-line documentation for Ruby projects
322 Summary(pl.UTF-8): Narzędzie do generowania dokumentacji HTML i linii poleceń dla projektów w Rubym
324 Release: %{basever}.%{patchlevel}.%{rel}
326 License: GPL v2 and Ruby and MIT
327 Group: Development/Libraries
328 Requires: %{name}-modules = 1:%{basever}.%{patchlevel}-%{rel}
329 Obsoletes: rdoc <= 0.9.0
330 %if "%{_rpmversion}" >= "5"
335 RDoc produces HTML and command-line documentation for Ruby projects.
336 RDoc includes the 'rdoc' and 'ri' tools for generating and displaying
337 online documentation.
339 %description rdoc -l pl.UTF-8
340 RDoc tworzy dokumentację HTML i linii poleceń dla projektów w języku
341 Ruby. RDoc zawiera narzędzia 'rdoc' i 'ri' do generowania i
342 wyświetlania dokumentacji online.
345 Summary: RubyGems - the Ruby standard for packaging Ruby libraries
346 Summary(pl.UTF-8): RubyGems - standard Ruby'ego pakietowania bibliotek
347 Version: %{rubygems_ver}
348 Release: %{basever}.%{patchlevel}.%{rel}
351 Group: Development/Libraries
352 Requires: %{name}-modules = 1:%{basever}.%{patchlevel}-%{rel}
353 Requires: %{name}-rdoc >= %{rdoc_ver}
354 Suggests: %{name}-devel
355 Provides: rubygems = %{rubygems_ver}
356 %if "%{_rpmversion}" >= "5"
360 %description rubygems
361 RubyGems is the Ruby standard for publishing and managing third party
364 %description rubygems -l pl.UTF-8
365 RubyGems to standardowe narzędzie języka Ruby do publikowania i
366 zarządzania zewnętrznymi bibliotekami.
369 Summary: Rake is a Make-like program implemented in Ruby
370 Summary(pl.UTF-8): Program typu Make dla języka Ruby
372 Release: %{basever}.%{patchlevel}.%{rel}
375 Group: Development/Languages
376 Provides: rake = %{rake_ver}
377 Conflicts: ruby-modules < 1:1.9.3.429-2
378 %if "%{_rpmversion}" >= "5"
383 Rake is a simple Ruby build program with capabilities similar to make.
385 It has the following features:
386 - Rakefiles (rake's version of Makefiles) are completely defined in
387 standard Ruby syntax. No XML files to edit. No quirky Makefile syntax
388 to worry about (is that a tab or a space?)
389 - Users can specify tasks with prerequisites.
390 - Rake supports rule patterns to synthesize implicit tasks.
391 - Rake is lightweight. It can be distributed with other projects as a
392 single file. Projects that depend upon rake do not require that rake
393 be installed on target systems.
395 %description rake -l pl.UTF-8
396 Rake to prosty program do budowania w języku Ruby o możliwościach
399 Ma następujące cechy:
400 - Pliki Rakefile (rake'owa odmiana plików Makefile) są definiowane
401 całkowicie w standardowej składni języka Ruby. Nie trzeba modyfikować
402 plików XML. Nie trzeba martwić się kaprysami składni Makefile (czy to
403 tabulacja czy spacja?).
404 - Użytkownicy mogą określać zadania z ich zależnościami.
405 - Rake obsługuje wzorce reguł do tworzenia z nich wynikowych zadań.
406 - Rake jest lekki. Może być rozpowszechniany z innymi projektami jako
407 pojedynczy plik. Projekty używające rake'a nie wymagają go
408 zainstalowanego na systemach docelowych.
411 Summary: JSON library for Ruby
412 Summary(pl.UTF-8): Biblioteka JSON dla języka Ruby
414 Release: %{basever}.%{patchlevel}.%{rel}
417 Group: Development/Languages
418 Obsoletes: ruby-json-rubyforge
419 Conflicts: ruby-modules < 1:1.9.3.429-3
422 This is a JSON implementation as a Ruby extension in C.
424 %description json -l pl.UTF-8
425 Biblioteka JSON dla języka Ruby.
428 %if %{with bootstrap}
429 %setup -q -n %{oname}-%{basever}-p%{patchlevel} -a1 -a2 -a3 -a100
431 %setup -q -n %{oname}-%{basever}-p%{patchlevel} -a1 -a2 -a3
447 # must be regenerated with new bison
450 find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
452 find -type f '(' -name '*.rb' -o -name '*.cgi' -o -name '*.test' \
453 -o -name 'ruby.1' -o -name '*.html' -o -name '*.tcl' ')' \
454 | xargs %{__sed} -i 's,/usr/local/bin/,%{_bindir}/,'
457 rubygems_ver=$(awk '/VERSION =/ && $1 == "VERSION" {print $3}' lib/rubygems.rb | xargs)
458 if [ $rubygems_ver != %{rubygems_ver} ]; then
459 echo "Set %%define rubygems_ver to $rubygems_ver and re-run."
462 rdoc_ver=$(awk '/VERSION =/ && $1 == "VERSION" {print $3}' lib/rdoc.rb | xargs)
463 if [ $rdoc_ver != %{rdoc_ver} ]; then
464 echo "Set %%define rdoc_ver to $rdoc_ver and re-run."
468 cp -f /usr/share/automake/config.sub .
470 # build ruby-1.8.7 first
471 %if %{with bootstrap}
472 cd %{oname}-1.8.7-p330
480 %{?with_bootstrap:--with-baseruby=%{oname}-1.8.7-p330/miniruby} \
481 --program-suffix=%{ruby_suffix} \
482 --with-rubygemsdir=%{rubygems_dir} \
483 --with-rubylibprefix=%{ruby_libdir} \
484 --with-rubyarchprefix=%{ruby_archdir} \
485 --with-sitedir=%{ruby_sitelibdir} \
486 --with-sitearchdir=%{ruby_sitearchdir} \
487 --with-vendordir=%{ruby_vendorlibdir} \
488 --with-vendorarchdir=%{ruby_vendorarchdir} \
489 --with-rubyhdrdir=%{_includedir}/%{oname}-%{ruby_version} \
490 --with-rubyarchhdrdir=%{_includedir}/%{oname}-%{ruby_version} \
491 --with-sitearchhdrdir='$(sitehdrdir)/$(arch)' \
492 --with-vendorarchhdrdir='$(vendorhdrdir)/$(arch)' \
497 --disable-install-doc \
498 --with-ruby-version=''
502 %{?with_bootstrap:BASERUBY="%{oname}-1.8.7-p330/miniruby -I./ruby-1.8.7-p330/lib"}
509 rm -rf $RPM_BUILD_ROOT
510 install -d $RPM_BUILD_ROOT{%{ruby_rdocdir},%{ruby_ridir}} \
511 $RPM_BUILD_ROOT%{ruby_vendorarchdir} \
512 $RPM_BUILD_ROOT%{ruby_vendorlibdir}/net \
513 $RPM_BUILD_ROOT%{ruby_vendorlibdir}/data \
515 %{__make} install %{?with_doc:install-doc} \
516 DESTDIR=$RPM_BUILD_ROOT
518 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{oname}-%{basever}.%{patchlevel}
519 cp -Rf sample/* $RPM_BUILD_ROOT%{_examplesdir}/%{oname}-%{basever}.%{patchlevel}
520 cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_mandir}/man1/rdoc%{ruby_suffix}.1
521 cp -p %{SOURCE5} $RPM_BUILD_ROOT%{_mandir}/man1/testrb%{ruby_suffix}.1
523 %{__rm} -rf $RPM_BUILD_ROOT%{_docdir}/%{name}/html
525 ln -sf %{gem_dir}/gems/rake-%{rake_ver}/bin/rake $RPM_BUILD_ROOT%{_bindir}/rake%{ruby_suffix}
527 %if %{without batteries}
528 # packaged separately
529 %{__rm} -r $RPM_BUILD_ROOT%{ruby_libdir}/{rubygems,rake,json,minitest}
530 %{__rm} -r $RPM_BUILD_ROOT%{ruby_archdir}/json
531 %{__rm} -r $RPM_BUILD_ROOT%{gem_dir}/gems/rake-*
532 %{__rm} $RPM_BUILD_ROOT%{ruby_libdir}/{rake,rubygems,json}.rb
533 %{__rm} $RPM_BUILD_ROOT%{_bindir}/{gem,rake}
534 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/rake*
535 %{__rm} $RPM_BUILD_ROOT%{gem_dir}/specifications/default/{json,minitest,rake}-*.gemspec
536 %{?with_doc:%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/ri/%{ruby_version}/system/JSON}
541 #%{__rm} $RPM_BUILD_ROOT%{ruby_ridir}/cache.ri
542 #%{__rm} $RPM_BUILD_ROOT%{ruby_ridir}/created.rid
546 rm -rf $RPM_BUILD_ROOT
548 %post -p /sbin/ldconfig
549 %postun -p /sbin/ldconfig
552 %defattr(644,root,root,755)
553 %doc NEWS LEGAL README README.EXT ChangeLog
554 %attr(755,root,root) %{_bindir}/ruby%{ruby_suffix}
555 %attr(755,root,root) %{_libdir}/libruby.so.*.*.*
556 %attr(755,root,root) %ghost %{_libdir}/libruby.so.%{ruby_version}
557 %{_mandir}/man1/ruby%{ruby_suffix}.1*
559 %dir %{_libdir}/%{oname}
560 %dir %{_libdir}/%{oname}/%{vendordir}
561 %dir %{_datadir}/%{oname}
565 %dir %{ruby_vendorlibdir}
566 %dir %{ruby_vendorarchdir}
569 %dir %{_datadir}/ri/%{ruby_version}
572 #%dir %{ruby_rdocdir}
574 # common dirs for ruby vendor modules
575 %dir %{ruby_vendorlibdir}/data
576 %dir %{ruby_vendorlibdir}/net
579 # legacy dirs. when everything rebuilt in Th not using these dirs. drop them
580 %dir %{legacy_archdir}
581 %dir %{legacy_sitedir}
582 %dir %{legacy_sitelibdir}
583 %dir %{legacy_sitearchdir}
584 %dir %{legacy_vendorarchdir}
585 %dir %{legacy_libdir}/tasks
586 %dir %{legacy_archdir}/racc
590 %defattr(644,root,root,755)
591 %attr(755,root,root) %{_libdir}/libruby.so
592 %{_includedir}/%{oname}-%{ruby_version}
593 %{_pkgconfigdir}/ruby-%{ruby_version}.pc
594 %{ruby_libdir}/mkmf.rb
597 %defattr(644,root,root,755)
598 %{_libdir}/libruby-static.a
602 %defattr(644,root,root,755)
603 %{ruby_libdir}/tcltk.rb
604 %{ruby_libdir}/tk*.rb
606 %{ruby_libdir}/tkextlib
607 %attr(755,root,root) %{ruby_archdir}/t*.so
611 %defattr(644,root,root,755)
612 %attr(755,root,root) %{_bindir}/irb%{ruby_suffix}
613 %{ruby_libdir}/irb.rb
615 %{_mandir}/man1/irb%{ruby_suffix}.1*
618 %defattr(644,root,root,755)
619 %attr(755,root,root) %{_bindir}/rdoc%{ruby_suffix}
620 %attr(755,root,root) %{_bindir}/ri%{ruby_suffix}
621 %{_mandir}/man1/rdoc%{ruby_suffix}.1*
623 %dir %{gem_dir}/gems/rdoc-%{rdoc_ver}
624 %dir %{gem_dir}/gems/rdoc-%{rdoc_ver}/bin
625 %attr(755,root,root) %{gem_dir}/gems/rdoc-%{rdoc_ver}/bin/rdoc
626 %{gem_dir}/specifications/default/rdoc-%{rdoc_ver}.gemspec
627 %attr(755,root,root) %{gem_dir}/gems/rdoc-%{rdoc_ver}/bin/ri
629 %if %{with batteries}
631 %defattr(644,root,root,755)
632 %attr(755,root,root) %{_bindir}/gem%{ruby_suffix}
634 %{rubygems_dir}/rubygems
635 %{rubygems_dir}/rubygems.rb
636 %{rubygems_dir}/ubygems.rb
637 %{rubygems_dir}/rbconfig
640 %defattr(644,root,root,755)
641 %attr(755,root,root) %{_bindir}/rake%{ruby_suffix}
642 %{_mandir}/man1/rake%{ruby_suffix}.1*
644 %dir %{gem_dir}/gems/rake-%{rake_ver}
645 %dir %{gem_dir}/gems/rake-%{rake_ver}/bin
646 %attr(755,root,root) %{gem_dir}/gems/rake-%{rake_ver}/bin/rake
647 %{gem_dir}/specifications/default/rake-%{rake_ver}.gemspec
650 %defattr(644,root,root,755)
652 %dir %{ruby_archdir}/json
653 %dir %{ruby_archdir}/json/ext
654 %attr(755,root,root) %{ruby_archdir}/json/ext/*.so
655 %{gem_dir}/specifications/default/json-%{json_ver}.gemspec
659 %defattr(644,root,root,755)
660 %attr(755,root,root) %{_bindir}/erb%{ruby_suffix}
661 %attr(755,root,root) %{_bindir}/testrb%{ruby_suffix}
662 %{ruby_libdir}/bigdecimal
665 %{ruby_libdir}/digest
668 %{ruby_libdir}/fiddle
670 %{ruby_libdir}/matrix
672 %{ruby_libdir}/openssl
673 %{ruby_libdir}/optparse
676 %{ruby_libdir}/rbconfig
679 %{ruby_libdir}/ripper
683 %{ruby_libdir}/syslog
686 %{ruby_libdir}/webrick
687 %{ruby_libdir}/xmlrpc
689 %{ruby_libdir}/[A-Za-s]*.rb
690 %{ruby_libdir}/tempfile.rb
691 %{ruby_libdir}/thread.rb
692 %{ruby_libdir}/thwait.rb
693 %{ruby_libdir}/time.rb
694 %{ruby_libdir}/timeout.rb
695 %{ruby_libdir}/tmpdir.rb
696 %{ruby_libdir}/tracer.rb
697 %{ruby_libdir}/tsort.rb
698 %{ruby_libdir}/[u-z]*.rb
699 %if %{with batteries}
700 %exclude %{ruby_libdir}/rubygems.rb
701 %exclude %{ruby_libdir}/ubygems.rb
702 %exclude %{ruby_libdir}/rbconfig/datadir.rb
703 %exclude %{ruby_libdir}/rbconfig/obsolete.rb
705 %exclude %{ruby_libdir}/irb.rb
706 %exclude %{ruby_libdir}/mkmf.rb
707 %attr(755,root,root) %{ruby_archdir}/[a-s]*.so
708 %attr(755,root,root) %{ruby_archdir}/[u-z]*.so
709 %dir %{ruby_archdir}/digest
710 %attr(755,root,root) %{ruby_archdir}/digest/*.so
711 %dir %{ruby_archdir}/dl
712 %attr(755,root,root) %{ruby_archdir}/dl/callback.so
713 %dir %{ruby_archdir}/enc
714 %attr(755,root,root) %{ruby_archdir}/enc/*.so
715 %dir %{ruby_archdir}/enc/trans
716 %attr(755,root,root) %{ruby_archdir}/enc/trans/*.so
717 %dir %{ruby_archdir}/io
718 %attr(755,root,root) %{ruby_archdir}/io/*.so
719 %dir %{ruby_archdir}/mathn
720 %attr(755,root,root) %{ruby_archdir}/mathn/*.so
721 %dir %{ruby_archdir}/racc
722 %attr(755,root,root) %{ruby_archdir}/racc/*.so
723 %{ruby_archdir}/rbconfig.rb
725 %{gem_dir}/specifications/default/bigdecimal-%{bigdecimal_ver}.gemspec
726 %{gem_dir}/specifications/default/io-console-%{io_console_ver}.gemspec
728 %if %{with batteries}
730 %{ruby_libdir}/minitest
731 %{gem_dir}/specifications/default/minitest-%{minitest_ver}.gemspec
734 %{gem_dir}/specifications/default/psych-%{psych_ver}.gemspec
737 %{gem_dir}/specifications/default/test-unit-%{test_unit_ver}.gemspec
738 %dir %{gem_dir}/gems/test-unit-%{test_unit_ver}
739 %dir %{gem_dir}/gems/test-unit-%{test_unit_ver}/bin
740 %attr(755,root,root) %{gem_dir}/gems/test-unit-%{test_unit_ver}/bin/testrb
743 #%dir %{_datadir}/%{oname}/gems
744 #%dir %{_datadir}/%{oname}/gems/%{ruby_version}
745 #%dir %{_datadir}/%{oname}/gems/%{ruby_version}/gems
747 %dir %{_datadir}/%{oname}/%{ruby_version}/gems/gems
750 %dir %{gem_dir}/specifications
751 %dir %{gem_dir}/specifications/default
752 %{_mandir}/man1/erb%{ruby_suffix}.1*
753 %{_mandir}/man1/ri%{ruby_suffix}.1*
754 %{_mandir}/man1/testrb%{ruby_suffix}.1*
757 %defattr(644,root,root,755)
758 %doc ruby-doc-bundle/*
759 %{?with_doc:%doc ruby_%{doc_version}_stdlib}
760 %{?with_doc:%doc ruby_%{doc_version}_core}
764 %defattr(644,root,root,755)
769 %defattr(644,root,root,755)
770 %{_examplesdir}/%{oname}-*