]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # TODO: | |
3 | # - include ext/ in docs | |
4 | # - replace ri with fastri | |
5 | # - patch ri to search multiple indexes (one per package), so RPMs can | |
6 | # install ri docs | |
7 | # - drop emacs | |
8 | #* Mon Jul 12 2010 Mohammed Morsi <mmorsi@redhat.com> - 1.8.7.299-3 | |
9 | #- updated packaged based on feedback (from mtasaka) | |
10 | #- added comments to all patches / sources | |
11 | #- obsoleted ruby-mode, as it's now provided by the emacs package itself | |
12 | #- readded missing documentation | |
13 | #- various small compatability/regression fixes | |
14 | #* Thu Jun 24 2010 Mohammed Morsi <mmorsi@redhat.com> - 1.8.7.299-1 | |
15 | #- integrate more of jmeyering's and mtaska's feedback | |
16 | #- removed emacs bits that are now shipped with the emacs package | |
17 | #- various patch and spec cleanup | |
18 | #- rebased to ruby 1.8.7 patch 299, removed patches no longer needed: | |
19 | # ruby-1.8.7-openssl-1.0.patch, ruby-1.8.7-rb_gc_guard_ptr-optimization.patch | |
20 | ||
21 | # | |
22 | # Conditional build: | |
23 | %bcond_without doc # skip (time-consuming) docs generating; intended for speed up test builds | |
24 | %bcond_without emacs # skip building package with ruby-mode for emacs | |
25 | %bcond_without tk # skip building package with Tk bindings | |
26 | %bcond_without batteries # Don't include rubygems, json or rake | |
27 | %bcond_without verpath # LOAD_PATH with version number | |
28 | %bcond_with bootstrap # build bootstrap version | |
29 | ||
30 | %define ruby_ver 1.9 | |
31 | %define basever 1.9.3 | |
32 | %define patchlevel 392 | |
33 | %define doc_version 1_9_3 | |
34 | %define json_ver 1.5.5 | |
35 | %define rake_ver 0.9.2.2 | |
36 | %define rubygems_ver 1.8.11 | |
37 | %define minitest_ver 2.5.1 | |
38 | %define rdoc_ver 3.9.5 | |
39 | Summary: Ruby - interpreted scripting language | |
40 | Summary(ja.UTF-8): オブジェクト指向言語Rubyインタプリタ | |
41 | Summary(pl.UTF-8): Ruby - interpretowany język skryptowy | |
42 | Summary(pt_BR.UTF-8): Linguagem de script orientada a objeto | |
43 | Summary(zh_CN.UTF-8): ruby - 一种快速高效的面向对象脚本编程语言 | |
44 | Name: ruby | |
45 | Version: %{basever}.%{patchlevel} | |
46 | Release: 0.1 | |
47 | Epoch: 1 | |
48 | License: The Ruby License | |
49 | Group: Development/Languages | |
50 | Source0: ftp://ftp.ruby-lang.org/pub/ruby/%{ruby_ver}/%{name}-%{basever}-p%{patchlevel}.tar.bz2 | |
51 | # Source0-md5: a810d64e2255179d2f334eb61fb8519c | |
52 | Source1: http://www.ruby-doc.org/download/%{name}-doc-bundle.tar.gz | |
53 | # Source1-md5: ad1af0043be98ba1a4f6d0185df63876 | |
54 | Source2: http://www.ruby-doc.org/downloads/%{name}_%{doc_version}_stdlib_rdocs.tgz | |
55 | # Source2-md5: ec622612428672c432b6f65dd31a84b5 | |
56 | Source3: http://www.ruby-doc.org/downloads/%{name}_%{doc_version}_core_rdocs.tgz | |
57 | # Source3-md5: 1892aadde51d36106c513bced2193dff | |
58 | Source100: ftp://ftp.ruby-lang.org/pub/ruby/1.8/%{name}-1.8.7-p330.tar.gz | |
59 | # Source100-md5: 50a49edb787211598d08e756e733e42e | |
60 | Source4: rdoc.1 | |
61 | Source5: testrb.1 | |
62 | Source6: %{name}-mode-init.el | |
63 | Patch0: %{name}-lib64.patch | |
64 | Patch1: %{name}-ffs.patch | |
65 | Patch2: fix-bison-invocation.patch | |
66 | # http://redmine.ruby-lang.org/issues/5231 | |
67 | Patch3: disable-versioned-paths.patch | |
68 | # TODO: Should be submitted upstream? | |
69 | Patch4: arch-specific-dir.patch | |
70 | # http://redmine.ruby-lang.org/issues/5281 | |
71 | Patch5: site-and-vendor-arch-flags.patch | |
72 | URL: http://www.ruby-lang.org/ | |
73 | BuildRequires: autoconf >= 2.60 | |
74 | BuildRequires: automake | |
75 | BuildRequires: bison | |
76 | BuildRequires: db-devel | |
77 | %{?with_emacs:BuildRequires: emacs} | |
78 | BuildRequires: gdbm-devel >= 1.8.3 | |
79 | BuildRequires: libffi-devel | |
80 | BuildRequires: ncurses-devel | |
81 | BuildRequires: openssl-devel | |
82 | BuildRequires: pkgconfig | |
83 | BuildRequires: readline-devel >= 4.2 | |
84 | %{!?with_bootstrap:BuildRequires: ruby-modules} | |
85 | BuildRequires: sed >= 4.0 | |
86 | BuildRequires: yaml-devel | |
87 | %if %{with tk} | |
88 | BuildRequires: tk-devel | |
89 | %endif | |
90 | Requires(post,postun): /sbin/ldconfig | |
91 | Provides: ruby(ver) = %{ruby_ver} | |
92 | Obsoletes: rdoc | |
93 | Obsoletes: ruby-REXML | |
94 | Obsoletes: ruby-doc < 1.8.4 | |
95 | Obsoletes: ruby-fastthread | |
96 | %if %{with batteries} | |
97 | Provides: json = %{json_ver} | |
98 | Provides: rake = %{rake_ver} | |
99 | Provides: ruby-json = %{json_ver} | |
100 | Provides: ruby-rake = %{rake_ver} | |
101 | Provides: ruby-rubygems = %{rubygems_ver} | |
102 | Provides: rubygems = %{rubygems_ver} | |
103 | Obsoletes: ruby-json | |
104 | Obsoletes: ruby-rake | |
105 | Obsoletes: ruby-rubygems | |
106 | %endif | |
107 | Conflicts: ruby-activesupport < 2.3.11-2 | |
108 | Conflicts: ruby-activesupport2 < 2.3.11-2 | |
109 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
110 | ||
111 | %define gem_dir %{_datadir}/%{name}/gems/%{ruby_version} | |
112 | ||
113 | # The RubyGems library has to stay out of Ruby directory three, since the | |
114 | # RubyGems should be share by all Ruby implementations. | |
115 | %define rubygems_dir %{_datadir}/rubygems | |
116 | ||
117 | %define ruby_libdir %{_datadir}/%{name} | |
118 | %define ruby_libarchdir %{_libdir}/%{name} | |
119 | ||
120 | # This is the local lib/arch and should not be used for packaging. | |
121 | %define ruby_sitedir site_ruby | |
122 | %define ruby_sitelibdir %{_prefix}/local/share/%{name}/%{ruby_sitedir} | |
123 | %define ruby_sitearchdir %{_prefix}/local/%{_lib}/%{name}/%{ruby_sitedir} | |
124 | ||
125 | # This is the general location for libs/archs compatible with all | |
126 | # or most of the Ruby versions available in the PLD repositories. | |
127 | %define ruby_vendordir vendor_ruby | |
128 | %define ruby_vendorlibdir %{_datadir}/%{name}/%{ruby_vendordir} | |
129 | %define ruby_vendorarchdir %{_libdir}/%{name}/%{ruby_vendordir} | |
130 | ||
131 | # TODO: drop legacy loadpaths after all ruby modules rebuilt in Th | |
132 | %define legacy_libdir %{_libdir}/%{name}/%{ruby_version} | |
133 | %define legacy_archdir %{_libdir}/%{name}/%{ruby_version}/%{_arch}-linux | |
134 | %define legacy_sitedir %{_libdir}/%{name}/%{ruby_sitedir} | |
135 | %define legacy_sitelibdir %{_libdir}/%{name}/%{ruby_sitedir}/%{ruby_version} | |
136 | %define legacy_sitearchdir %{_libdir}/%{name}/%{ruby_sitedir}/%{ruby_version}/%{_arch}-linux | |
137 | %define legacy_vendordir %{_libdir}/%{name}/%{ruby_vendordir} | |
138 | %define legacy_vendorlibdir %{_libdir}/%{name}/%{ruby_vendordir}/%{ruby_version} | |
139 | %define legacy_vendorarchdir %{_libdir}/%{name}/%{ruby_vendordir}/%{ruby_version}/%{_arch}-linux | |
140 | ||
141 | %define legacy_siteloadpath %{legacy_sitelibdir}:%{legacy_sitearchdir}:%{legacy_sitedir} | |
142 | %define legacy_vendorloadpath %{legacy_vendorlibdir}:%{legacy_vendorarchdir}:%{legacy_vendordir} | |
143 | %define legacy_loadpath %{legacy_libdir}:%{legacy_archdir} | |
144 | %define legacy_loadpaths %{legacy_siteloadpath}:%{legacy_vendorloadpath}:%{legacy_loadpath} | |
145 | ||
146 | # bleh, some nasty (gcc or ruby) bug still not fixed | |
147 | # (SEGV or "unexpected break" on miniruby run during build) | |
148 | %define specflags_ia64 -O0 | |
149 | ||
150 | # ruby needs frame pointers for correct exception handling | |
151 | %define specflags_ia32 -fno-omit-frame-pointer | |
152 | ||
153 | %description | |
154 | Ruby is the interpreted scripting language for quick and easy | |
155 | object-oriented programming. It has many features to process text | |
156 | files and to do system management tasks (as in Perl). It is simple, | |
157 | straight-forward, extensible, and portable. | |
158 | ||
159 | This package contains only shared library and ruby interpreter. To get | |
160 | full-functional ruby environment install ruby-modules package. | |
161 | ||
162 | %description -l ja.UTF-8 | |
163 | Rubyはシンプルかつ強力なオブジェクト指向スクリプト言語です.Rubyは最初 | |
164 | から純粋なオブジェクト指向言語として設計されていますから,オブジェクト | |
165 | 指向プログラミングを手軽に行う事が出来ます.もちろん通常の手続き型のプ ログラミングも可能です. | |
166 | ||
167 | %description -l pl.UTF-8 | |
168 | Ruby to interpretowany język skryptowy, w sam raz dla łatwego i | |
169 | szybkiego pisania zorientowanych obiektowo programów. Ma wiele funkcji | |
170 | ułatwiających przetwarzanie plików tekstowych i wykonywanie prac | |
171 | związanych z zarządzaniem systemu (podobnie jak Perl). Jest prosty, | |
172 | rozszerzalny i przenośny. | |
173 | ||
174 | Ten pakiet zawiera tylko bibliotekę dzieloną i interpreter ruby. | |
175 | Zainstaluj pakiet ruby-modules, jeżeli potrzebujesz w pełni | |
176 | funkcjonalnego środowiska ruby. | |
177 | ||
178 | %description -l pt_BR.UTF-8 | |
179 | Ruby é uma linguagem de script interpretada de programação orientada a | |
180 | objeto. Possui diversas características para processamento de texto. É | |
181 | simples, extensível e direta. | |
182 | ||
183 | %package modules | |
184 | Summary: Ruby standard modules and utilities | |
185 | Summary(pl.UTF-8): Standardowe moduły i narzędzia dla języka Ruby | |
186 | Group: Development/Languages | |
187 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
188 | # workaround for autodep generator net getting version properly | |
189 | Provides: ruby(abi) = %{ruby_ver} | |
190 | Provides: ruby-modules(ver) = %{ruby_ver} | |
191 | Obsoletes: ruby-minitest | |
192 | ||
193 | %description modules | |
194 | Ruby standard modules and utilities: | |
195 | - erb - Tiny eRuby | |
196 | - rdoc - documentation tool for source code | |
197 | - irb - interactive Ruby | |
198 | - ri - Ruby interactive reference | |
199 | - testrb - automatic runner for Test::Unit of Ruby | |
200 | ||
201 | %description modules -l pl.UTF-8 | |
202 | Standardowe moduły i narzędzia Ruby: | |
203 | - erb - mały eRuby | |
204 | - rdoc - narzędzie do dokumentowania kodu źródłowego | |
205 | - irb - interaktywny Ruby | |
206 | - ri - interaktywna dokumentacja Ruby | |
207 | - testrb - automatyczny runner dla Ruby Test::Unit | |
208 | ||
209 | %package tk | |
210 | Summary: Ruby/Tk bindings | |
211 | Summary(pl.UTF-8): Wiązania Ruby/Tk | |
212 | Group: Development/Languages | |
213 | Requires: %{name}-modules = %{epoch}:%{version}-%{release} | |
214 | ||
215 | %description tk | |
216 | This pachage contains Ruby/Tk bindings. | |
217 | ||
218 | %description tk -l pl.UTF-8 | |
219 | Ten pakiet zawiera wiązania Ruby/Tk. | |
220 | ||
221 | %package devel | |
222 | Summary: Ruby development libraries | |
223 | Summary(pl.UTF-8): Biblioteki programistyczne interpretera języka Ruby | |
224 | Group: Development/Languages | |
225 | Requires: %{name}-modules = %{epoch}:%{version}-%{release} | |
226 | ||
227 | %description devel | |
228 | Ruby development libraries. | |
229 | ||
230 | %description devel -l pl.UTF-8 | |
231 | Biblioteki programistyczne interpretera języka Ruby. | |
232 | ||
233 | %package static | |
234 | Summary: Ruby static libraries | |
235 | Summary(pl.UTF-8): Biblioteki statyczne Ruby | |
236 | Group: Development/Languages | |
237 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} | |
238 | ||
239 | %description static | |
240 | Ruby static libraries. | |
241 | ||
242 | %description static -l pl.UTF-8 | |
243 | Biblioteki statyczne Ruby. | |
244 | ||
245 | %package doc | |
246 | Summary: Ruby HTML documentation | |
247 | Summary(pl.UTF-8): Dokumentacja HTML do Ruby | |
248 | Group: Documentation | |
249 | ||
250 | %description doc | |
251 | Ruby HTML documentation: FAQ, guide, core and standard library. | |
252 | ||
253 | %description doc -l pl.UTF-8 | |
254 | Dokumentacja HTML do Ruby: FAQ, przewodnik, dokumentacja dla core i | |
255 | stdlib. | |
256 | ||
257 | %package doc-ri | |
258 | Summary: Ruby ri documentation | |
259 | Summary(pl.UTF-8): Dokumentacja Ruby w formacie ri | |
260 | Group: Documentation | |
261 | Requires: %{name}-modules = %{epoch}:%{version}-%{release} | |
262 | ||
263 | %description doc-ri | |
264 | Ruby ri documentation. | |
265 | ||
266 | %description doc-ri -l pl.UTF-8 | |
267 | Dokumentacja Ruby w formacie ri. | |
268 | ||
269 | %package examples | |
270 | Summary: Ruby examples | |
271 | Summary(pl.UTF-8): Przykłady dla języka Ruby | |
272 | Group: Development/Languages | |
273 | ||
274 | %description examples | |
275 | Ruby examples. | |
276 | ||
277 | %description examples -l pl.UTF-8 | |
278 | Przykłady programów w języku Ruby. | |
279 | ||
280 | %package emacs-mode | |
281 | Summary: Ruby mode and debugger for Emacs | |
282 | Summary(pl.UTF-8): Tryb Ruby i debugger dla Emacsa | |
283 | Group: Development/Tools | |
284 | Requires: %{name}-modules = %{epoch}:%{version}-%{release} | |
285 | Requires: emacs-common | |
286 | ||
287 | %description emacs-mode | |
288 | Ruby mode and debugger for Emacs. | |
289 | ||
290 | %description emacs-mode -l pl.UTF-8 | |
291 | Tryb Ruby i debugger dla Emacsa. | |
292 | ||
293 | %prep | |
294 | %if %{with bootstrap} | |
295 | %setup -q -n %{name}-%{basever}-p%{patchlevel} -a1 -a2 -a3 -a100 | |
296 | %else | |
297 | %setup -q -n %{name}-%{basever}-p%{patchlevel} -a1 -a2 -a3 | |
298 | %endif | |
299 | %patch0 -p1 | |
300 | %patch1 -p1 | |
301 | %patch2 -p1 | |
302 | %patch3 -p1 | |
303 | %patch4 -p1 | |
304 | %patch5 -p1 | |
305 | ||
306 | # must be regenerated with new bison | |
307 | %{__rm} parse.{c,h} | |
308 | ||
309 | find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f | |
310 | ||
311 | find -type f '(' -name '*.rb' -o -name '*.cgi' -o -name '*.test' \ | |
312 | -o -name 'ruby.1' -o -name '*.html' -o -name '*.tcl' ')' \ | |
313 | | xargs %{__sed} -i 's,/usr/local/bin/,%{_bindir}/,' | |
314 | ||
315 | %build | |
316 | cp -f /usr/share/automake/config.sub . | |
317 | ||
318 | # build ruby-1.8.7 first | |
319 | %if %{with bootstrap} | |
320 | cd %{name}-1.8.7-p330 | |
321 | %configure | |
322 | %{__make} | |
323 | cd .. | |
324 | %endif | |
325 | ||
326 | %{__autoconf} | |
327 | %configure \ | |
328 | %{?with_bootstrap:--with-baseruby=%{name}-1.8.7-p330/miniruby} \ | |
329 | --with-rubylibprefix=%{ruby_libdir} \ | |
330 | --with-archdir=%{ruby_libarchdir} \ | |
331 | --with-sitedir=%{ruby_sitelibdir} \ | |
332 | --with-sitearchdir=%{ruby_sitearchdir} \ | |
333 | --with-vendordir=%{ruby_vendorlibdir} \ | |
334 | --with-vendorarchdir=%{ruby_vendorarchdir} \ | |
335 | --with-rubygemsdir=%{rubygems_dir} \ | |
336 | --with-search-path=%{legacy_loadpaths} \ | |
337 | --enable-shared \ | |
338 | --enable-pthread \ | |
339 | --disable-install-doc \ | |
340 | %{!?with_verpath:--disable-versioned-paths} \ | |
341 | --with-ruby-version=minor | |
342 | ||
343 | %{__make} -j1 main \ | |
344 | COPY="cp -p" Q= \ | |
345 | %{?with_bootstrap:BASERUBY="ruby-1.8.7-p330/miniruby -I./ruby-1.8.7-p330/lib"} | |
346 | ||
347 | %if %{with doc} | |
348 | %{__make} -j1 docs | |
349 | %endif | |
350 | ||
351 | %install | |
352 | rm -rf $RPM_BUILD_ROOT | |
353 | install -d $RPM_BUILD_ROOT{%{ruby_rdocdir},%{_examplesdir}/%{name}-%{version}} \ | |
354 | $RPM_BUILD_ROOT%{ruby_libdir}/%{ruby_version}/tasks | |
355 | ||
356 | %{__make} install %{?with_doc:install-doc} \ | |
357 | DESTDIR=$RPM_BUILD_ROOT | |
358 | ||
359 | cp -Rf sample/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
360 | cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_mandir}/man1 | |
361 | cp -p %{SOURCE5} $RPM_BUILD_ROOT%{_mandir}/man1 | |
362 | ||
363 | %if %{without batteries} | |
364 | # packaged separately | |
365 | %{__rm} -r $RPM_BUILD_ROOT%{ruby_libdir}/%{ruby_version}/{rubygems,rake,json,tasks} | |
366 | %{__rm} -r $RPM_BUILD_ROOT%{ruby_libarchdir}/json | |
367 | %{__rm} $RPM_BUILD_ROOT%{ruby_libdir}/%{ruby_version}/{rake,rubygems,json}.rb | |
368 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/{gem,rake} | |
369 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/rake* | |
370 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/ri/%{ruby_ver}/system/JSON | |
371 | %endif | |
372 | ||
373 | # ruby emacs mode - borrowed from FC-4 | |
374 | %if %{with emacs} | |
375 | install -d $RPM_BUILD_ROOT%{_emacs_lispdir}/{%{name}-mode,site-start.d} | |
376 | cp -a misc/*.el $RPM_BUILD_ROOT%{_emacs_lispdir}/%{name}-mode | |
377 | %{__rm} $RPM_BUILD_ROOT%{_emacs_lispdir}/%{name}-mode/rubydb2x.el* | |
378 | install -p %{SOURCE6} $RPM_BUILD_ROOT%{_emacs_lispdir}/site-start.d | |
379 | cat << 'EOF' > path.el | |
380 | (setq load-path (cons "." load-path) byte-compile-warnings nil) | |
381 | EOF | |
382 | emacs --no-site-file -q -batch -l path.el -f batch-byte-compile $RPM_BUILD_ROOT%{_emacs_lispdir}/%{name}-mode/*.el | |
383 | %{__rm} path.el* | |
384 | %endif | |
385 | ||
386 | # too much .ri | |
387 | rm -rf $RPM_BUILD_ROOT%{_datadir}/ri | |
388 | rm -rf $RPM_BUILD_ROOT%{_docdir}/ruby/html | |
389 | #rm -rf $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/ruby-mode | |
390 | ||
391 | %clean | |
392 | rm -rf $RPM_BUILD_ROOT | |
393 | ||
394 | %post -p /sbin/ldconfig | |
395 | %postun -p /sbin/ldconfig | |
396 | ||
397 | %files | |
398 | %defattr(644,root,root,755) | |
399 | %doc NEWS LEGAL README README.EXT ChangeLog ToDo | |
400 | %attr(755,root,root) %{_bindir}/ruby | |
401 | %if %{with batteries} | |
402 | %attr(755,root,root) %{_bindir}/gem | |
403 | %attr(755,root,root) %{_bindir}/rake | |
404 | %endif | |
405 | %attr(755,root,root) %{_libdir}/libruby.so.*.*.* | |
406 | %attr(755,root,root) %ghost %{_libdir}/libruby.so.1.9 | |
407 | %{_mandir}/man1/ruby.1* | |
408 | %if %{with batteries} | |
409 | %{_mandir}/man1/rake.1* | |
410 | %endif | |
411 | #%dir %{_libdir}/%{name} | |
412 | #%dir %{_libdir}/%{name}/%{ruby_ver} | |
413 | #%dir %{ruby_libarchdir} | |
414 | #%dir %{_libdir}/%{name}/site_ruby | |
415 | #%dir %{_libdir}/%{name}/site_ruby/%{ruby_ver} | |
416 | #%dir %{_libdir}/%{name}/site_ruby/%{ruby_ver}/*-linux* | |
417 | #%dir %{_libdir}/%{name}/vendor_ruby | |
418 | #%dir %{_libdir}/%{name}/vendor_ruby/%{ruby_ver} | |
419 | #%dir %{_libdir}/%{name}/vendor_ruby/%{ruby_ver}/*-linux* | |
420 | #%dir %{_datadir}/ri | |
421 | #%dir %{_datadir}/ri/%{ruby_ver} | |
422 | #%dir %{_datadir}/ri/%{ruby_ver}/system | |
423 | %dir %{ruby_rdocdir} | |
424 | ||
425 | %files devel | |
426 | %defattr(644,root,root,755) | |
427 | %attr(755,root,root) %{_libdir}/libruby.so | |
428 | %{_includedir}/%{name}-%{ruby_ver} | |
429 | %{_pkgconfigdir}/ruby-%{ruby_ver}.pc | |
430 | ||
431 | %files static | |
432 | %defattr(644,root,root,755) | |
433 | %{_libdir}/libruby-static.a | |
434 | ||
435 | %if %{with tk} | |
436 | %files tk | |
437 | %defattr(644,root,root,755) | |
438 | %{ruby_libdir}/%{ruby_version}/tcltk.rb | |
439 | %{ruby_libdir}/%{ruby_version}/tk*.rb | |
440 | %{ruby_libdir}/%{ruby_version}/tk | |
441 | %{ruby_libdir}/%{ruby_version}/tkextlib | |
442 | %attr(755,root,root) %{ruby_libarchdir}/t*.so | |
443 | %endif | |
444 | ||
445 | %files modules | |
446 | %defattr(644,root,root,755) | |
447 | %attr(755,root,root) %{_bindir}/erb | |
448 | %attr(755,root,root) %{_bindir}/irb | |
449 | %attr(755,root,root) %{_bindir}/rdoc | |
450 | %attr(755,root,root) %{_bindir}/ri | |
451 | %attr(755,root,root) %{_bindir}/testrb | |
452 | %{ruby_libdir}/%{ruby_version}/bigdecimal | |
453 | %{ruby_libdir}/%{ruby_version}/cgi | |
454 | %{ruby_libdir}/%{ruby_version}/date | |
455 | %{ruby_libdir}/%{ruby_version}/digest | |
456 | %{ruby_libdir}/%{ruby_version}/dl | |
457 | %{ruby_libdir}/%{ruby_version}/drb | |
458 | %{ruby_libdir}/%{ruby_version}/fiddle | |
459 | %{ruby_libdir}/%{ruby_version}/io | |
460 | %{ruby_libdir}/%{ruby_version}/irb | |
461 | %{ruby_libdir}/%{ruby_version}/matrix | |
462 | %{ruby_libdir}/%{ruby_version}/minitest | |
463 | %{ruby_libdir}/%{ruby_version}/net | |
464 | %{ruby_libdir}/%{ruby_version}/openssl | |
465 | %{ruby_libdir}/%{ruby_version}/optparse | |
466 | %if %{with batteries} | |
467 | %{ruby_libdir}/%{ruby_version}/json | |
468 | %{ruby_libdir}/%{ruby_version}/rake | |
469 | %{ruby_libdir}/%{ruby_version}/rubygems | |
470 | %dir %{ruby_libdir}/%{ruby_version}/tasks | |
471 | %endif | |
472 | %{ruby_libdir}/%{ruby_version}/psych | |
473 | %{ruby_libdir}/%{ruby_version}/racc | |
474 | %{ruby_libdir}/%{ruby_version}/rbconfig | |
475 | %{ruby_libdir}/%{ruby_version}/rdoc | |
476 | %{ruby_libdir}/%{ruby_version}/rexml | |
477 | %{ruby_libdir}/%{ruby_version}/rinda | |
478 | %{ruby_libdir}/%{ruby_version}/ripper | |
479 | %{ruby_libdir}/%{ruby_version}/rss | |
480 | %{ruby_libdir}/%{ruby_version}/shell | |
481 | %{ruby_libdir}/%{ruby_version}/syck | |
482 | %{ruby_libdir}/%{ruby_version}/test | |
483 | %{ruby_libdir}/%{ruby_version}/uri | |
484 | %{ruby_libdir}/%{ruby_version}/webrick | |
485 | %{ruby_libdir}/%{ruby_version}/xmlrpc | |
486 | %{ruby_libdir}/%{ruby_version}/yaml | |
487 | %{ruby_libdir}/%{ruby_version}/[A-Za-s]*.rb | |
488 | %{ruby_libdir}/%{ruby_version}/tempfile.rb | |
489 | %{ruby_libdir}/%{ruby_version}/thread.rb | |
490 | %{ruby_libdir}/%{ruby_version}/thwait.rb | |
491 | %{ruby_libdir}/%{ruby_version}/time.rb | |
492 | %{ruby_libdir}/%{ruby_version}/timeout.rb | |
493 | %{ruby_libdir}/%{ruby_version}/tmpdir.rb | |
494 | %{ruby_libdir}/%{ruby_version}/tracer.rb | |
495 | %{ruby_libdir}/%{ruby_version}/tsort.rb | |
496 | %{ruby_libdir}/%{ruby_version}/[u-z]*.rb | |
497 | %attr(755,root,root) %{ruby_libarchdir}/[a-s]*.so | |
498 | %attr(755,root,root) %{ruby_libarchdir}/[u-z]*.so | |
499 | %dir %{ruby_libarchdir}/digest | |
500 | %attr(755,root,root) %{ruby_libarchdir}/digest/*.so | |
501 | %dir %{ruby_libarchdir}/dl | |
502 | %attr(755,root,root) %{ruby_libarchdir}/dl/callback.so | |
503 | %dir %{ruby_libarchdir}/enc | |
504 | %attr(755,root,root) %{ruby_libarchdir}/enc/*.so | |
505 | %dir %{ruby_libarchdir}/enc/trans | |
506 | %attr(755,root,root) %{ruby_libarchdir}/enc/trans/*.so | |
507 | %dir %{ruby_libarchdir}/io | |
508 | %attr(755,root,root) %{ruby_libarchdir}/io/*.so | |
509 | %if %{with batteries} | |
510 | %dir %{ruby_libarchdir}/json | |
511 | %dir %{ruby_libarchdir}/json/ext | |
512 | %attr(755,root,root) %{ruby_libarchdir}/json/ext/*.so | |
513 | %endif | |
514 | %dir %{ruby_libarchdir}/mathn | |
515 | %attr(755,root,root) %{ruby_libarchdir}/mathn/*.so | |
516 | %dir %{ruby_libarchdir}/racc | |
517 | %attr(755,root,root) %{ruby_libarchdir}/racc/*.so | |
518 | %{ruby_libarchdir}/rbconfig.rb | |
519 | #%dir %{ruby_libdir}/%{ruby_version}/gems | |
520 | %dir %{_datadir}/%{name}/gems | |
521 | %dir %{gem_dir} | |
522 | %dir %{gem_dir}/specifications | |
523 | %{gem_dir}/specifications/io-console-*.gemspec | |
524 | %{gem_dir}/specifications/bigdecimal-*.gemspec | |
525 | %if %{with batteries} | |
526 | %dir %{gem_dir}/gems/rake-%{rake_ver} | |
527 | %dir %{gem_dir}/gems/rake-%{rake_ver}/bin | |
528 | %attr(755,root,root) %{gem_dir}/gems/rake-%{rake_ver}/bin/rake | |
529 | %dir %{gem_dir}/gems/rdoc-%{rdoc_ver} | |
530 | %dir %{gem_dir}/gems/rdoc-%{rdoc_ver}/bin | |
531 | %attr(755,root,root) %{gem_dir}/gems/rdoc-%{rdoc_ver}/bin/rdoc | |
532 | %attr(755,root,root) %{gem_dir}/gems/rdoc-%{rdoc_ver}/bin/ri | |
533 | %{gem_dir}/specifications/minitest-%{minitest_ver}.gemspec | |
534 | %{gem_dir}/specifications/rake-%{rake_ver}.gemspec | |
535 | %{gem_dir}/specifications/rdoc-%{rdoc_ver}.gemspec | |
536 | %{gem_dir}/specifications/json-%{json_ver}.gemspec | |
537 | %endif | |
538 | %{_mandir}/man1/erb.1* | |
539 | %{_mandir}/man1/irb.1* | |
540 | %{_mandir}/man1/rdoc.1* | |
541 | %{_mandir}/man1/ri.1* | |
542 | %{_mandir}/man1/testrb.1* | |
543 | ||
544 | %files doc | |
545 | %defattr(644,root,root,755) | |
546 | %doc ruby-doc-bundle/* | |
547 | %{?with_doc:%doc ruby_%{doc_version}_stdlib} | |
548 | %{?with_doc:%doc ruby_%{doc_version}_core} | |
549 | ||
550 | %if %{with doc} | |
551 | %files doc-ri | |
552 | %defattr(644,root,root,755) | |
553 | %{_datadir}/ri/%{ruby_ver}/system/* | |
554 | %endif | |
555 | ||
556 | %files examples | |
557 | %defattr(644,root,root,755) | |
558 | %{_examplesdir}/%{name}-%{version} | |
559 | ||
560 | %if %{with emacs} | |
561 | %files emacs-mode | |
562 | %defattr(644,root,root,755) | |
563 | %doc misc/* | |
564 | %dir %{_emacs_lispdir}/%{name}-mode | |
565 | %{_emacs_lispdir}/%{name}-mode/*.elc | |
566 | %{_emacs_lispdir}/site-start.d/*.el | |
567 | %endif |