]>
Commit | Line | Data |
---|---|---|
1 | # TODO: | |
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 | # - gemify irb (?) | |
6 | # | |
7 | # Conditional build: | |
8 | %bcond_without doc # skip (time-consuming) docs generating; intended for speed up test builds | |
9 | %bcond_without batteries # Don't include rubygems, json, rake, minitest | |
10 | %bcond_without default_ruby # use this Ruby as default system Ruby | |
11 | %bcond_with bootstrap # build bootstrap version | |
12 | %bcond_with tests # build without tests | |
13 | ||
14 | %define rel 1 | |
15 | %define ruby_version 2.6 | |
16 | %define patchlevel 5 | |
17 | %define pkg_version %{ruby_version}.%{patchlevel} | |
18 | %define ruby_suffix %{!?with_default_ruby:%{ruby_version}} | |
19 | %define doc_version 2_6_5 | |
20 | %define oname ruby | |
21 | Summary: Ruby - interpreted scripting language | |
22 | Summary(ja.UTF-8): オブジェクト指向言語Rubyインタプリタ | |
23 | Summary(pl.UTF-8): Ruby - interpretowany język skryptowy | |
24 | Summary(pt_BR.UTF-8): Linguagem de script orientada a objeto | |
25 | Summary(zh_CN.UTF-8): ruby - 一种快速高效的面向对象脚本编程语言 | |
26 | Name: ruby%{ruby_suffix} | |
27 | Version: %{pkg_version} | |
28 | Release: %{rel} | |
29 | Epoch: 1 | |
30 | # Public Domain for example for: include/ruby/st.h, strftime.c, missing/*, ... | |
31 | # MIT and CCO: ccan/* | |
32 | # zlib: ext/digest/md5/md5.*, ext/nkf/nkf-utf8/nkf.c | |
33 | # UCD: some of enc/trans/**/*.src | |
34 | License: (Ruby or BSD) and Public Domain and MIT and CC0 and zlib and UCD | |
35 | Group: Development/Languages | |
36 | # https://www.ruby-lang.org/en/downloads/ | |
37 | Source0: https://cache.ruby-lang.org/pub/ruby/%{ruby_version}/%{oname}-%{pkg_version}.tar.xz | |
38 | # Source0-md5: b8a4e2bdbb76485c3d6690e57be67750 | |
39 | Source2: http://www.ruby-doc.org/downloads/%{oname}_%{doc_version}_stdlib_rdocs.tgz | |
40 | # Source2-md5: bd93bce0a482dada63ac238f2e4596cf | |
41 | Source3: http://www.ruby-doc.org/downloads/%{oname}_%{doc_version}_core_rdocs.tgz | |
42 | # Source3-md5: 86322c0f335e8ecc9008f740807362dd | |
43 | Source50: http://www.unicode.org/Public/9.0.0/ucd/CaseFolding.txt | |
44 | # Source50-md5: e3fbf2f626f10070000fe66f3a2ff5ef | |
45 | Source51: http://www.unicode.org/Public/9.0.0/ucd/CompositionExclusions.txt | |
46 | # Source51-md5: 263381d7b4b5e2d52a91e1bbbd4722d4 | |
47 | Source52: http://www.unicode.org/Public/9.0.0/ucd/NormalizationTest.txt | |
48 | # Source52-md5: aacb8a8acfc449d09136fe39f3f97cf1 | |
49 | Source53: http://www.unicode.org/Public/9.0.0/ucd/SpecialCasing.txt | |
50 | # Source53-md5: fea30f45a2f81ffa474fd984d297e2ea | |
51 | Source54: http://www.unicode.org/Public/9.0.0/ucd/UnicodeData.txt | |
52 | # Source54-md5: dde25b1cf9bbb4ba1140ac12e4128b0b | |
53 | Source4: rdoc.1 | |
54 | Source5: testrb.1 | |
55 | Source6: operating_system.rb | |
56 | Patch1: rubygems.patch | |
57 | Patch2: fix-bison-invocation.patch | |
58 | Patch3: mkmf-verbose.patch | |
59 | Patch4: strip-ccache.patch | |
60 | Patch5: ruby-version.patch | |
61 | Patch6: duplicated-paths.patch | |
62 | # obsolete? | |
63 | Patch8: rubygems-2.0.0-binary-extensions.patch | |
64 | Patch9: custom-rubygems-location.patch | |
65 | Patch12: archlibdir.patch | |
66 | URL: http://www.ruby-lang.org/ | |
67 | BuildRequires: autoconf >= 2.67 | |
68 | BuildRequires: automake | |
69 | BuildRequires: bison >= 1.875 | |
70 | BuildRequires: db-devel | |
71 | BuildRequires: gdbm-devel >= 1.8.3 | |
72 | BuildRequires: gmp-devel | |
73 | BuildRequires: libffi-devel | |
74 | BuildRequires: ncurses-devel | |
75 | BuildRequires: openssl-devel >= 0.9.6 | |
76 | BuildRequires: pkgconfig | |
77 | BuildRequires: readline-devel >= 4.2 | |
78 | BuildRequires: rpm-build >= 5.4.10-49 | |
79 | # which version is minimum now? 1.8.7 is not enough, fails with: | |
80 | # ./tool/generic_erb.rb:31: syntax error, unexpected ':', expecting ')' | |
81 | # ...O.popen("tput smso", "r", err: IO::NULL, &:read) rescue nil) | |
82 | BuildRequires: ruby >= 1:1.9 | |
83 | BuildRequires: sed >= 4.0 | |
84 | BuildRequires: systemtap-sdt-devel | |
85 | BuildRequires: tar >= 1:1.22 | |
86 | BuildRequires: xz | |
87 | BuildRequires: yaml-devel | |
88 | BuildRequires: zlib-devel | |
89 | %if %{without bootstrap} | |
90 | # bootstrap needs ruby binary, erb module | |
91 | BuildRequires: rpm-rubyprov | |
92 | BuildRequires: ruby-modules | |
93 | %endif | |
94 | Requires(post,postun): /sbin/ldconfig | |
95 | Obsoletes: ruby-REXML <= 2.4.0-2 | |
96 | Obsoletes: ruby-doc < 1.8.4 | |
97 | Obsoletes: ruby-fastthread <= 0.6.3 | |
98 | Conflicts: rpm-build-macros < 1.695 | |
99 | Conflicts: ruby-activesupport < 2.3.11-2 | |
100 | Conflicts: ruby-activesupport2 < 2.3.11-2 | |
101 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
102 | ||
103 | # hack: skip rubygem(ipaddr) | |
104 | %define _noautoreq ipaddr | |
105 | ||
106 | %define bigdecimal_ver 1.4.1 | |
107 | %define bundler_ver 1.17.2 | |
108 | %define did_you_mean_ver 1.3.0 | |
109 | %define io_console_ver 0.4.7 | |
110 | %define irb_ver 1.0.0 | |
111 | %define json_ver 2.1.0 | |
112 | %define minitest_ver 5.11.3 | |
113 | %define net_telnet_ver 0.2.0 | |
114 | %define openssl_ver 2.1.2 | |
115 | %define power_assert_ver 1.1.3 | |
116 | %define psych_ver 3.1.0 | |
117 | %define rake_ver 12.3.2 | |
118 | %define rdoc_ver 6.1.2 | |
119 | %define rubygems_ver 3.0.3 | |
120 | %define test_unit_ver 3.2.9 | |
121 | %define xmlrpc_ver 0.3.0 | |
122 | ||
123 | %define ruby_ridir %{_datadir}/ri/system | |
124 | %define gem_dir %{_datadir}/gems | |
125 | %define gem_libdir %{_libdir}/gems/%{oname} | |
126 | ||
127 | # location where rubygems is installed | |
128 | %define rubygems_dir %{ruby_libdir} | |
129 | ||
130 | %define ruby_archdir %{_libdir}/%{oname}/%{ruby_version} | |
131 | %define ruby_libarchdir %{_libdir}/%{oname}/%{ruby_version} | |
132 | %define ruby_libdir %{_datadir}/%{oname}/%{ruby_version} | |
133 | ||
134 | # This is the local lib/arch and should not be used for packaging. | |
135 | %define sitedir site_ruby | |
136 | %define ruby_sitearchdir %{_prefix}/local/%{_lib}/%{oname}/%{sitedir}/%{ruby_version} | |
137 | %define ruby_sitelibdir %{_prefix}/local/share/%{oname}/%{sitedir} | |
138 | ||
139 | # This is the general location for libs/archs compatible with all | |
140 | # or most of the Ruby versions available in the PLD repositories. | |
141 | %define vendordir vendor_ruby | |
142 | %define ruby_vendorarchdir %{_libdir}/%{oname}/%{vendordir}/%{ruby_version} | |
143 | %define ruby_vendorlibdir %{_datadir}/%{oname}/%{vendordir} | |
144 | ||
145 | # bleh, some nasty (gcc or ruby) bug still not fixed | |
146 | # (SEGV or "unexpected break" on miniruby run during build) | |
147 | %define specflags_ia64 -O0 | |
148 | ||
149 | # ruby needs frame pointers for correct exception handling | |
150 | %define specflags_ia32 -fno-omit-frame-pointer | |
151 | ||
152 | %description | |
153 | Ruby is the interpreted scripting language for quick and easy | |
154 | object-oriented programming. It has many features to process text | |
155 | files and to do system management tasks (as in Perl). It is simple, | |
156 | straight-forward, extensible, and portable. | |
157 | ||
158 | This package contains only shared library and ruby interpreter. To get | |
159 | full-functional ruby environment install ruby-modules package. | |
160 | ||
161 | %description -l ja.UTF-8 | |
162 | Rubyはシンプルかつ強力なオブジェクト指向スクリプト言語です.Rubyは最初 | |
163 | から純粋なオブジェクト指向言語として設計されていますから,オブジェクト | |
164 | 指向プログラミングを手軽に行う事が出来ます.もちろん通常の手続き型のプ ログラミングも可能です. | |
165 | ||
166 | %description -l pl.UTF-8 | |
167 | Ruby to interpretowany język skryptowy, w sam raz dla łatwego i | |
168 | szybkiego pisania zorientowanych obiektowo programów. Ma wiele funkcji | |
169 | ułatwiających przetwarzanie plików tekstowych i wykonywanie prac | |
170 | związanych z zarządzaniem systemu (podobnie jak Perl). Jest prosty, | |
171 | rozszerzalny i przenośny. | |
172 | ||
173 | Ten pakiet zawiera tylko bibliotekę dzieloną i interpreter ruby. | |
174 | Zainstaluj pakiet ruby-modules, jeżeli potrzebujesz w pełni | |
175 | funkcjonalnego środowiska ruby. | |
176 | ||
177 | %description -l pt_BR.UTF-8 | |
178 | Ruby é uma linguagem de script interpretada de programação orientada a | |
179 | objeto. Possui diversas características para processamento de texto. É | |
180 | simples, extensível e direta. | |
181 | ||
182 | %package modules | |
183 | Summary: Ruby standard modules and utilities | |
184 | Summary(pl.UTF-8): Standardowe moduły i narzędzia dla języka Ruby | |
185 | Group: Development/Languages | |
186 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
187 | Suggests: ruby-rubygems | |
188 | # ruby-modules deprecated, rpm5 generates ruby(abi) itself | |
189 | Provides: ruby-modules(ver) = %{ruby_version} | |
190 | # FIXME later | |
191 | Provides: ruby(abi) = %{ruby_version} | |
192 | %requires_ge_to openssl openssl-devel | |
193 | ||
194 | %description modules | |
195 | Ruby standard modules and utilities: | |
196 | - erb - Tiny eRuby | |
197 | - testrb - automatic runner for Test::Unit of Ruby | |
198 | ||
199 | %description modules -l pl.UTF-8 | |
200 | Standardowe moduły i narzędzia Ruby: | |
201 | - erb - mały eRuby | |
202 | - testrb - automatyczny runner dla Ruby Test::Unit | |
203 | ||
204 | %package devel | |
205 | Summary: Ruby development libraries | |
206 | Summary(pl.UTF-8): Biblioteki programistyczne interpretera języka Ruby | |
207 | Group: Development/Languages | |
208 | Requires: %{name}-modules = %{epoch}:%{version}-%{release} | |
209 | Requires: gcc | |
210 | Requires: glibc-devel | |
211 | Requires: gmp-devel | |
212 | Requires: pkgconfig | |
213 | Obsoletes: ruby-static < 1:2.4 | |
214 | ||
215 | %description devel | |
216 | Ruby development libraries. | |
217 | ||
218 | %description devel -l pl.UTF-8 | |
219 | Biblioteki programistyczne interpretera języka Ruby. | |
220 | ||
221 | %package doc | |
222 | Summary: Ruby HTML documentation | |
223 | Summary(pl.UTF-8): Dokumentacja HTML do Ruby | |
224 | Group: Documentation | |
225 | %if "%{_rpmversion}" >= "5" | |
226 | BuildArch: noarch | |
227 | %endif | |
228 | ||
229 | %description doc | |
230 | Ruby HTML documentation: FAQ, guide, core and standard library. | |
231 | ||
232 | %description doc -l pl.UTF-8 | |
233 | Dokumentacja HTML do Ruby: FAQ, przewodnik, dokumentacja dla core i | |
234 | stdlib. | |
235 | ||
236 | %package doc-ri | |
237 | Summary: Ruby ri documentation | |
238 | Summary(pl.UTF-8): Dokumentacja Ruby w formacie ri | |
239 | Group: Documentation | |
240 | Requires: %{name}-modules = %{epoch}:%{version}-%{release} | |
241 | %if "%{_rpmversion}" >= "5" | |
242 | BuildArch: noarch | |
243 | %endif | |
244 | ||
245 | %description doc-ri | |
246 | Ruby ri documentation. | |
247 | ||
248 | %description doc-ri -l pl.UTF-8 | |
249 | Dokumentacja Ruby w formacie ri. | |
250 | ||
251 | %package examples | |
252 | Summary: Ruby examples | |
253 | Summary(pl.UTF-8): Przykłady dla języka Ruby | |
254 | Group: Development/Languages | |
255 | %if "%{_rpmversion}" >= "5" | |
256 | BuildArch: noarch | |
257 | %endif | |
258 | ||
259 | %description examples | |
260 | Ruby examples. | |
261 | ||
262 | %description examples -l pl.UTF-8 | |
263 | Przykłady programów w języku Ruby. | |
264 | ||
265 | # IMPORTANT: keep irb, rdoc, rubygems, rake, json as last packages as we reset epoch/version/release | |
266 | # and %{version},%{release} macros may not be used directly as they take last | |
267 | # subpackage value not main package one what you intend to use | |
268 | ||
269 | %package irb | |
270 | Summary: The Interactive Ruby | |
271 | Summary(pl.UTF-8): Interaktywny Ruby | |
272 | Version: %{irb_ver} | |
273 | Release: %{pkg_version}.%{rel} | |
274 | Epoch: 0 | |
275 | Group: Development/Languages | |
276 | Requires: %{name}-modules = 1:%{pkg_version}-%{rel} | |
277 | Provides: irb = %{version}-%{release} | |
278 | Provides: ruby(irb) = %{version}-%{release} | |
279 | %if "%{_rpmversion}" >= "5" | |
280 | BuildArch: noarch | |
281 | %endif | |
282 | ||
283 | %description irb | |
284 | The irb is acronym for Interactive Ruby. It evaluates ruby expression | |
285 | from the terminal. | |
286 | ||
287 | %description irb -l pl.UTF-8 | |
288 | Nazwa irb to skrót od Interactive Ruby (interaktywny Ruby). Wyznacza | |
289 | wartości wyrażeń języka ruby podane z terminala. | |
290 | ||
291 | %package rdoc | |
292 | Summary: A tool to generate HTML and command-line documentation for Ruby projects | |
293 | Summary(pl.UTF-8): Narzędzie do generowania dokumentacji HTML i linii poleceń dla projektów w Rubym | |
294 | Version: %{rdoc_ver} | |
295 | Release: %{pkg_version}.%{rel} | |
296 | Epoch: 0 | |
297 | # SIL: lib/rdoc/generator/template/darkfish/css/fonts.css | |
298 | License: GPLv2 and Ruby and MIT and SIL | |
299 | Group: Development/Libraries | |
300 | Requires: %{name}-irb >= %{irb_ver} | |
301 | Requires: %{name}-json >= %{json_ver} | |
302 | Requires: %{name}-modules = 1:%{pkg_version}-%{rel} | |
303 | Obsoletes: rdoc <= 0.9.0 | |
304 | %if "%{_rpmversion}" >= "5" | |
305 | BuildArch: noarch | |
306 | %endif | |
307 | ||
308 | %description rdoc | |
309 | RDoc produces HTML and command-line documentation for Ruby projects. | |
310 | RDoc includes the 'rdoc' and 'ri' tools for generating and displaying | |
311 | online documentation. | |
312 | ||
313 | %description rdoc -l pl.UTF-8 | |
314 | RDoc tworzy dokumentację HTML i linii poleceń dla projektów w języku | |
315 | Ruby. RDoc zawiera narzędzia 'rdoc' i 'ri' do generowania i | |
316 | wyświetlania dokumentacji online. | |
317 | ||
318 | %package rubygems | |
319 | Summary: RubyGems - the Ruby standard for packaging Ruby libraries | |
320 | Summary(pl.UTF-8): RubyGems - standard Ruby'ego pakietowania bibliotek | |
321 | Version: %{rubygems_ver} | |
322 | Release: %{pkg_version}.%{rel} | |
323 | Epoch: 0 | |
324 | License: Ruby or MIT | |
325 | Group: Development/Libraries | |
326 | Requires: %{name}-bigdecimal = %{bigdecimal_ver}-%{pkg_version}.%{rel} | |
327 | Requires: %{name}-io-console = %{io_console_ver}-%{pkg_version}.%{rel} | |
328 | Requires: %{name}-modules = 1:%{pkg_version}-%{rel} | |
329 | Requires: %{name}-psych = %{psych_ver}-%{pkg_version}.%{rel} | |
330 | Requires: %{name}-rdoc >= %{rdoc_ver} | |
331 | Suggests: %{name}-devel | |
332 | Provides: rubygems = %{rubygems_ver} | |
333 | %if "%{_rpmversion}" >= "5" | |
334 | BuildArch: noarch | |
335 | %endif | |
336 | ||
337 | %description rubygems | |
338 | RubyGems is the Ruby standard for publishing and managing third party | |
339 | libraries. | |
340 | ||
341 | %description rubygems -l pl.UTF-8 | |
342 | RubyGems to standardowe narzędzie języka Ruby do publikowania i | |
343 | zarządzania zewnętrznymi bibliotekami. | |
344 | ||
345 | %package bundler | |
346 | Summary: Library and utilities to manage a Ruby application's gem dependencies | |
347 | Summary(pl.UTF-8): Biblioteka i narzędzia do zarządzania zależnościami gem aplikacji w języku Ruby | |
348 | Version: %{bundler_ver} | |
349 | Release: %{pkg_version}.%{rel} | |
350 | Epoch: 0 | |
351 | License: MIT | |
352 | Group: Development/Languages | |
353 | Provides: bundler = %{bundler_ver} | |
354 | %if "%{_rpmversion}" >= "5" | |
355 | BuildArch: noarch | |
356 | %endif | |
357 | ||
358 | %description bundler | |
359 | Bundler manages an application's dependencies through its entire life, | |
360 | across many machines, systematically and repeatably. | |
361 | ||
362 | %description bundler -l pl.UTF-8 | |
363 | Bundler zarządza zależnościami aplikacji przez cały czas jej życia, | |
364 | między wiloma maszynami - systematycznie i powtarzalnie. | |
365 | ||
366 | %package rake | |
367 | Summary: Rake is a Make-like program implemented in Ruby | |
368 | Summary(pl.UTF-8): Program typu Make dla języka Ruby | |
369 | Version: %{rake_ver} | |
370 | Release: %{pkg_version}.%{rel} | |
371 | Epoch: 0 | |
372 | License: MIT | |
373 | Group: Development/Languages | |
374 | Provides: rake = %{rake_ver} | |
375 | Conflicts: ruby-modules < 1:1.9.3.429-2 | |
376 | %if "%{_rpmversion}" >= "5" | |
377 | BuildArch: noarch | |
378 | %endif | |
379 | ||
380 | %description rake | |
381 | Rake is a simple Ruby build program with capabilities similar to make. | |
382 | ||
383 | It has the following features: | |
384 | - Rakefiles (rake's version of Makefiles) are completely defined in | |
385 | standard Ruby syntax. No XML files to edit. No quirky Makefile syntax | |
386 | to worry about (is that a tab or a space?) | |
387 | - Users can specify tasks with prerequisites. | |
388 | - Rake supports rule patterns to synthesize implicit tasks. | |
389 | - Rake is lightweight. It can be distributed with other projects as a | |
390 | single file. Projects that depend upon rake do not require that rake | |
391 | be installed on target systems. | |
392 | ||
393 | %description rake -l pl.UTF-8 | |
394 | Rake to prosty program do budowania w języku Ruby o możliwościach | |
395 | podobnych do make. | |
396 | ||
397 | Ma następujące cechy: | |
398 | - Pliki Rakefile (rake'owa odmiana plików Makefile) są definiowane | |
399 | całkowicie w standardowej składni języka Ruby. Nie trzeba modyfikować | |
400 | plików XML. Nie trzeba martwić się kaprysami składni Makefile (czy to | |
401 | tabulacja czy spacja?). | |
402 | - Użytkownicy mogą określać zadania z ich zależnościami. | |
403 | - Rake obsługuje wzorce reguł do tworzenia z nich wynikowych zadań. | |
404 | - Rake jest lekki. Może być rozpowszechniany z innymi projektami jako | |
405 | pojedynczy plik. Projekty używające rake'a nie wymagają go | |
406 | zainstalowanego na systemach docelowych. | |
407 | ||
408 | %package json | |
409 | Summary: JSON library for Ruby | |
410 | Summary(pl.UTF-8): Biblioteka JSON dla języka Ruby | |
411 | Version: %{json_ver} | |
412 | Release: %{pkg_version}.%{rel} | |
413 | Epoch: 0 | |
414 | # UCD: ext/json/generator/generator.c | |
415 | License: (Ruby or GPL v2) and UCD | |
416 | Group: Development/Languages | |
417 | Obsoletes: ruby-json-rubyforge | |
418 | Conflicts: ruby-modules < 1:1.9.3.429-3 | |
419 | ||
420 | %description json | |
421 | This is a JSON implementation as a Ruby extension in C. | |
422 | ||
423 | %description json -l pl.UTF-8 | |
424 | Biblioteka JSON dla języka Ruby. | |
425 | ||
426 | %package minitest | |
427 | Summary: Minitest - a complete suite of testing facilities | |
428 | Summary(pl.UTF-8): Minitest - kompletny szkielet do testowania | |
429 | Version: %{minitest_ver} | |
430 | Release: %{pkg_version}.%{rel} | |
431 | Epoch: 0 | |
432 | License: MIT | |
433 | Group: Development/Libraries | |
434 | %if "%{_rpmversion}" >= "5" | |
435 | BuildArch: noarch | |
436 | %endif | |
437 | ||
438 | %description minitest | |
439 | minitest/unit is a small and incredibly fast unit testing framework. | |
440 | ||
441 | minitest/spec is a functionally complete spec engine. | |
442 | ||
443 | minitest/benchmark is an awesome way to assert the performance of your | |
444 | algorithms in a repeatable manner. | |
445 | ||
446 | minitest/mock by Steven Baker, is a beautifully tiny mock object | |
447 | framework. | |
448 | ||
449 | minitest/pride shows pride in testing and adds coloring to your test | |
450 | output. | |
451 | ||
452 | %description minitest -l pl.UTF-8 | |
453 | minitest/unit to mały i bardzo szybki szkielet testów jednostkowych. | |
454 | ||
455 | minitest/spec to funkcjonalnie kompletny silnik specyfikacji. | |
456 | ||
457 | minitest/benchmark to wspaniały sposób zapewnienia wydajności | |
458 | algorytmów w powtarzalny sposób. | |
459 | ||
460 | minitest/mock autorstwa Stevena Bakera to mały szkielet obiektów | |
461 | atrap. | |
462 | ||
463 | minitest/pride ukazuje dumę z testowania i dodaje kolorowanie do | |
464 | wyjścia testów. | |
465 | ||
466 | %package power_assert | |
467 | Summary: Power Assert for Ruby | |
468 | Summary(pl.UTF-8): Power Assert dla języka Ruby | |
469 | Version: %{power_assert_ver} | |
470 | Release: %{pkg_version}.%{rel} | |
471 | Epoch: 0 | |
472 | License: Ruby or BSD | |
473 | Group: Development/Libraries | |
474 | %if "%{_rpmversion}" >= "5" | |
475 | BuildArch: noarch | |
476 | %endif | |
477 | ||
478 | %description power_assert | |
479 | Power Assert shows each value of variables and method calls in the | |
480 | expression. It is useful for testing, providing which value wasn't | |
481 | correct when the condition is not satisfied. | |
482 | ||
483 | %description power_assert -l pl.UTF-8 | |
484 | Power Assert pokazuje każdą wartość zmiennych i wywołań metod w | |
485 | wyrażeniu. Jest przydatny do testowania, ukazując, która wartość nie | |
486 | była poprawna, kiedy warunek nie był spełniony. | |
487 | ||
488 | %package test-unit | |
489 | Summary: An xUnit family unit testing framework for Ruby | |
490 | Summary(pl.UTF-8): Szkielet testów z rodziny xUnit dla języka Ruby | |
491 | Version: %{test_unit_ver} | |
492 | Release: %{pkg_version}.%{rel} | |
493 | Epoch: 0 | |
494 | # lib/test/unit/diff.rb is a double license of the Ruby license and PSF license. | |
495 | # lib/test-unit.rb is a dual license of the Ruby license and LGPLv2.1 or later. | |
496 | License: (Ruby or BSD) and (Ruby or BSD or Python) and (Ruby or BSD or LGPL v2+) | |
497 | Group: Development/Libraries | |
498 | Requires: ruby-power_assert = %{power_assert_ver}-%{pkg_version}.%{rel} | |
499 | %if "%{_rpmversion}" >= "5" | |
500 | BuildArch: noarch | |
501 | %endif | |
502 | ||
503 | %description test-unit | |
504 | test-unit (Test::Unit) is unit testing framework for Ruby, based on | |
505 | xUnit principles. These were originally designed by Kent Beck, creator | |
506 | of extreme programming software development methodology, for | |
507 | Smalltalk's SUnit. It allows writing tests, checking results and | |
508 | automated testing in Ruby. | |
509 | ||
510 | %description test-unit -l pl.UTF-8 | |
511 | test-unit (Test::Unit) to szkielet testów jednostkowych dla języka | |
512 | Ruby oparty na zasadach xUnit. Te były pierwotnie zaprojektowane przez | |
513 | Kenta Becka, twórcy metodyki tworzenia oprogramowania zwanej | |
514 | programowaniem ekstremalnym, dla szkieletu SUnit dla Smalltalka. | |
515 | Szkielet pozwala na pisanie testów, sprawdzanie wyników i automatyczne | |
516 | testowanie w Rubym. | |
517 | ||
518 | %package did_you_mean | |
519 | Summary: "Did you mean?" experience in Ruby | |
520 | Summary(pl.UTF-8): Zachowanie "czy miałeś na myśli?" w języku Ruby | |
521 | Version: %{did_you_mean_ver} | |
522 | Release: %{pkg_version}.%{rel} | |
523 | Epoch: 0 | |
524 | License: MIT | |
525 | Group: Development/Libraries | |
526 | %if "%{_rpmversion}" >= "5" | |
527 | BuildArch: noarch | |
528 | %endif | |
529 | ||
530 | %description did_you_mean | |
531 | "Did you mean?" experience in Ruby: the error message will tell you | |
532 | the right one when you misspelled something. | |
533 | ||
534 | %description did_you_mean -l pl.UTF-8 | |
535 | Zachowanie "czy miałeś na myśli" w języku ruby: komunikat błędu | |
536 | podpowie właściwą pisownię w przypadku literówki. | |
537 | ||
538 | %package net-telnet | |
539 | Summary: Provides telnet client functionality | |
540 | Summary(pl.UTF-8): Funkcjonalność klienta usługi telnet | |
541 | Version: %{net_telnet_ver} | |
542 | Release: %{pkg_version}.%{rel} | |
543 | Epoch: 0 | |
544 | Group: Development/Libraries | |
545 | %if "%{_rpmversion}" >= "5" | |
546 | BuildArch: noarch | |
547 | %endif | |
548 | ||
549 | %description net-telnet | |
550 | Provides telnet client functionality. | |
551 | ||
552 | This class also has, through delegation, all the methods of a socket | |
553 | object (by default, a TCPSocket, but can be set by the Proxy option to | |
554 | new()). This provides methods such as close() to end the session and | |
555 | sysread() to read data directly from the host, instead of via the | |
556 | waitfor() mechanism. | |
557 | ||
558 | %description net-telnet -l pl.UTF-8 | |
559 | Ten pakiet dostarcza funkcjonalność klienta usługi telnet. | |
560 | ||
561 | Ta klasa ma, poprzez delegację, wszystkie metody obiektu gniazda | |
562 | (domyślnie TCPSocket, ale może być ustawiona przez opcję Proxy dla | |
563 | new()). Udostępnia metody takie jak: close() do zakończenia sesji czy | |
564 | sysread() do odczytu danych bezpośrednio z hosta zamiast poprzez | |
565 | mechanizm waitfor(). | |
566 | ||
567 | %package bigdecimal | |
568 | Summary: BigDecimal - arbitrary-precision floating point decimal arithmetic | |
569 | Summary(pl.UTF-8): BigDecimal - dziesiętna arytmetyka zmiennoprzecinkowa o dowolnej dokładności | |
570 | Version: %{bigdecimal_ver} | |
571 | Release: %{pkg_version}.%{rel} | |
572 | Epoch: 0 | |
573 | License: GPL+ or Artistic | |
574 | Group: Development/Libraries | |
575 | ||
576 | %description bigdecimal | |
577 | Ruby provides built-in support for arbitrary precision integer | |
578 | arithmetic. For example: | |
579 | ||
580 | 42**13 -> 1265437718438866624512 | |
581 | ||
582 | BigDecimal provides similar support for very large or very accurate | |
583 | floating point numbers. Decimal arithmetic is also useful for general | |
584 | calculation, because it provides the correct answers people expect - | |
585 | whereas normal binary floating point arithmetic often introduces | |
586 | subtle errors because of the conversion between base 10 and base 2. | |
587 | ||
588 | %description bigdecimal -l pl.UTF-8 | |
589 | Ruby zapewnia wbudowaną obsługę arytmetyki całkowitej dowolnej | |
590 | dokładności, np.: | |
591 | ||
592 | 42**13 -> 1265437718438866624512 | |
593 | ||
594 | BigDecimal zapewnia podobną obsługę bardzo dużych lub bardzo | |
595 | dokładnych liczb zmiennoprzecinkowych. Arytmetyka dziesiętna jest | |
596 | przydatna także do ogólnych obliczeń, ponieważ zapewnia poprawne | |
597 | odpowiedzi oczekiwane przez ludzi - podczas gdy normalna binarna | |
598 | arytmetyka zmiennoprzecinkowa wprowadza minimalne błędy spowodowane | |
599 | zmianą podstawy między 10 a 2. | |
600 | ||
601 | %package io-console | |
602 | Summary: IO/Console - a simple console utilizing library | |
603 | Summary(pl.UTF-8): IO/Console - prosta biblioteka wykorzystująca konsolę | |
604 | Version: %{io_console_ver} | |
605 | Release: %{pkg_version}.%{rel} | |
606 | Epoch: 0 | |
607 | Group: Development/Libraries | |
608 | ||
609 | %description io-console | |
610 | IO/Console provides very simple and portable access to console. It | |
611 | doesn't provide higher layer features, such like curses and readline. | |
612 | ||
613 | %description io-console -l pl.UTF-8 | |
614 | IO/Console zapewnia bardzo prosty i przenośny dostęp do konsoli. Nie | |
615 | udostępnia funkcji wyższego poziomu, takich jak curses czy readline. | |
616 | ||
617 | %package psych | |
618 | Summary: A libyaml wrapper for Ruby | |
619 | Summary(pl.UTF-8): Obudowanie libyaml dla języka Ruby | |
620 | Version: %{psych_ver} | |
621 | Release: %{pkg_version}.%{rel} | |
622 | Epoch: 0 | |
623 | License: MIT | |
624 | Group: Development/Libraries | |
625 | ||
626 | %description psych | |
627 | Psych is a YAML parser and emitter. Psych leverages libyaml for its | |
628 | YAML parsing and emitting capabilities. In addition to wrapping | |
629 | libyaml, Psych also knows how to serialize and de-serialize most Ruby | |
630 | objects to and from the YAML format. | |
631 | ||
632 | %description psych -l pl.UTF-8 | |
633 | Psych to parser i emiter YAML. Wykorzystuje libyaml do analizy i | |
634 | emitowania YAML-a. Poza obudowaniem libyaml, wie także jak | |
635 | serializować i deserializować większość obiektów języka Ruby do/z | |
636 | formatu YAML. | |
637 | ||
638 | %package xmlrpc | |
639 | Summary: A xmlrpc wrapper for Ruby | |
640 | Summary(pl.UTF-8): Obudowanie xmlrpc dla języka Ruby | |
641 | Version: %{xmlrpc_ver} | |
642 | Release: %{pkg_version}.%{rel} | |
643 | Epoch: 0 | |
644 | License: MIT | |
645 | Group: Development/Libraries | |
646 | ||
647 | %description xmlrpc | |
648 | XMLRPC is a lightweight protocol that enables remote procedure calls | |
649 | over HTTP. It is defined at <http://www.xmlrpc.com/>. | |
650 | ||
651 | XMLRPC allows you to create simple distributed computing solutions | |
652 | that span computer languages. Its distinctive feature is its | |
653 | simplicity compared to other approaches like SOAP and CORBA. | |
654 | ||
655 | The Ruby standard library package 'xmlrpc' enables you to create a | |
656 | server that implements remote procedures and a client that calls them. | |
657 | Very little code is required to achieve either of these. | |
658 | ||
659 | %description xmlrpc -l pl.UTF-8 | |
660 | XMLRPC to lekki protokół pozwalający na wywołania zdalnych procedur | |
661 | poprzez HTTP. Jest zdefiniowany na <http://www.xmlrpc.com/>. | |
662 | ||
663 | XMLRPC pozwala na tworzenie prostych, rozproszonych systemów | |
664 | komputerowych dla wielu języków. Wyróżniającą cechą jest prostota w | |
665 | porównaniu do innych rozwiązań, takich jak SOAP czy CORBA. | |
666 | ||
667 | Pakiet biblioteki standardowej języka Ruby 'xmlrpc' pozwala na | |
668 | stworzenie serwera implementującego procedury zdalne oraz klienta | |
669 | wywołującego je. Aby to osiągnąć wystarczy bardzo mało kodu. | |
670 | ||
671 | %prep | |
672 | %setup -q -n %{oname}-%{pkg_version} -a2 -a3 | |
673 | %patch1 -p1 | |
674 | %patch2 -p1 | |
675 | %patch3 -p1 | |
676 | %patch4 -p1 | |
677 | %patch5 -p1 | |
678 | %patch6 -p1 | |
679 | #%patch8 -p1 | |
680 | %patch9 -p1 | |
681 | %patch12 -p1 | |
682 | ||
683 | install -d enc/unicode/data/9.0.0 | |
684 | cp -p %{SOURCE50} %{SOURCE51} %{SOURCE52} %{SOURCE53} %{SOURCE54} enc/unicode/data/9.0.0/ | |
685 | ||
686 | # must be regenerated with new bison | |
687 | %{__rm} parse.{c,h} | |
688 | ||
689 | # Remove bundled libraries to be sure they are not used. | |
690 | %{__rm} -r ext/psych/yaml | |
691 | %{__rm} -r ext/fiddle/libffi* | |
692 | ||
693 | # Install custom operating_system.rb. | |
694 | install -d lib/rubygems/defaults | |
695 | cp -p %{SOURCE6} lib/rubygems/defaults | |
696 | ||
697 | find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f | |
698 | ||
699 | find -type f '(' -name '*.rb' -o -name '*.cgi' -o -name '*.test' \ | |
700 | -o -name 'ruby.1' -o -name '*.html' -o -name '*.tcl' ')' \ | |
701 | | xargs %{__sed} -i 's,/usr/local/bin/,%{_bindir}/,' | |
702 | ||
703 | %if %{with bootstrap} | |
704 | # avoid regeneration, needs iostring module | |
705 | touch enc/unicode/9.0.0/*.h | |
706 | %endif | |
707 | ||
708 | %build | |
709 | rubygems_ver=$(awk '/VERSION =/ && $1 == "VERSION" {print $3}' lib/rubygems.rb | sed 's/\.freeze//g' | xargs) | |
710 | if [ $rubygems_ver != %{rubygems_ver} ]; then | |
711 | echo "Set %%define rubygems_ver to $rubygems_ver and re-run." | |
712 | exit 1 | |
713 | fi | |
714 | rdoc_ver=$(awk '/VERSION =/ && $1 == "VERSION" {print $3}' lib/rdoc.rb | xargs) | |
715 | if [ $rdoc_ver != %{rdoc_ver} ]; then | |
716 | echo "Set %%define rdoc_ver to $rdoc_ver and re-run." | |
717 | exit 1 | |
718 | fi | |
719 | ||
720 | cp -f /usr/share/automake/config.sub . | |
721 | ||
722 | %{__autoconf} | |
723 | %configure \ | |
724 | %{?with_bootstrap:--with-baseruby="%{_bindir}/ruby -I$(pwd)/lib"} \ | |
725 | --program-suffix=%{ruby_suffix} \ | |
726 | --with-archlibdir=%{_libdir} \ | |
727 | --with-rubygemsdir=%{rubygems_dir} \ | |
728 | --with-rubylibprefix=%{ruby_libdir} \ | |
729 | --with-rubyarchprefix=%{ruby_archdir} \ | |
730 | --with-sitedir=%{ruby_sitelibdir} \ | |
731 | --with-sitearchdir=%{ruby_sitearchdir} \ | |
732 | --with-vendordir=%{ruby_vendorlibdir} \ | |
733 | --with-vendorarchdir=%{ruby_vendorarchdir} \ | |
734 | --with-rubyhdrdir=%{_includedir}/%{oname}-%{ruby_version} \ | |
735 | --with-rubyarchhdrdir=%{_includedir}/%{oname}-%{ruby_version} \ | |
736 | --with-sitearchhdrdir='$(sitehdrdir)/$(arch)' \ | |
737 | --with-vendorarchhdrdir='$(vendorhdrdir)/$(arch)' \ | |
738 | --enable-multiarch \ | |
739 | --enable-shared \ | |
740 | --disable-install-doc \ | |
741 | --disable-rpath \ | |
742 | --disable-rubygems \ | |
743 | --with-ruby-version='' \ | |
744 | ||
745 | %{__make} -j1 main \ | |
746 | COPY="cp -p" \ | |
747 | V=1 | |
748 | ||
749 | %if %{with doc} | |
750 | %{__make} -j1 rdoc | |
751 | %endif | |
752 | ||
753 | %if %{with tests} | |
754 | # unset these, as testsuite does "git commit" somewhere, which points to pld .spec repo. doh | |
755 | unset GIT_DIR GIT_WORK_TREE | |
756 | ||
757 | unset GIT | |
758 | DISABLE_TESTS="" | |
759 | ||
760 | %ifarch armv7l armv7hl armv7hnl | |
761 | # test_call_double(DL::TestDL) fails on ARM HardFP | |
762 | # http://bugs.ruby-lang.org/issues/6592 | |
763 | DISABLE_TESTS="-x test_dl2.rb $DISABLE_TESTS" | |
764 | %endif | |
765 | ||
766 | # test_debug(TestRubyOptions) fails due to LoadError reported in debug mode, | |
767 | # when abrt.rb cannot be required (seems to be easier way then customizing | |
768 | # the test suite). | |
769 | touch abrt.rb | |
770 | ||
771 | # TestSignal#test_hup_me hangs up the test suite. | |
772 | # http://bugs.ruby-lang.org/issues/8997 | |
773 | sed -i '/def test_hup_me/,/end if Process.respond_to/ s/^/#/' test/ruby/test_signal.rb | |
774 | ||
775 | # Fix "Could not find 'minitest'" error. | |
776 | # http://bugs.ruby-lang.org/issues/9259 | |
777 | sed -i "/^ gem 'minitest', '~> 4.0'/ s/^/#/" lib/rubygems/test_case.rb | |
778 | ||
779 | # Segmentation fault. | |
780 | # https://bugs.ruby-lang.org/issues/9198 | |
781 | sed -i '/^ def test_machine_stackoverflow/,/^ end/ s/^/#/' test/ruby/test_exception.rb | |
782 | ||
783 | # Don't test wrap ciphers to prevent "OpenSSL::Cipher::CipherError: wrap mode | |
784 | # not allowed" error. | |
785 | # https://bugs.ruby-lang.org/issues/10229 | |
786 | sed -i '/assert(OpenSSL::Cipher::Cipher.new(name).is_a?(OpenSSL::Cipher::Cipher))/i \ | |
787 | next if /wrap/ =~ name' test/openssl/test_cipher.rb | |
788 | ||
789 | # Test is broken due to SSLv3 disabled in Fedora. | |
790 | # https://bugs.ruby-lang.org/issues/10046 | |
791 | sed -i '/def test_ctx_server_session_cb$/,/^ end$/ s/^/#/' test/openssl/test_ssl_session.rb | |
792 | ||
793 | %{__make} check TESTS="-v $DISABLE_TESTS" | |
794 | %endif | |
795 | ||
796 | %install | |
797 | rm -rf $RPM_BUILD_ROOT | |
798 | install -d $RPM_BUILD_ROOT{%{ruby_rdocdir},%{ruby_ridir}} \ | |
799 | $RPM_BUILD_ROOT%{ruby_vendorarchdir} \ | |
800 | $RPM_BUILD_ROOT%{ruby_vendorlibdir}/net \ | |
801 | $RPM_BUILD_ROOT%{ruby_vendorlibdir}/data \ | |
802 | ||
803 | %{__make} install %{?with_doc:install-doc -j1} \ | |
804 | DESTDIR=$RPM_BUILD_ROOT | |
805 | ||
806 | # Version is empty if --with-ruby-version is specified. | |
807 | # http://bugs.ruby-lang.org/issues/7807 | |
808 | sed -i -e 's/Version: \${ruby_version}/Version: %{ruby_version}/' $RPM_BUILD_ROOT%{_pkgconfigdir}/%{oname}-%{ruby_version}.pc | |
809 | ||
810 | # Kill bundled certificates, as they should be part of ca-certificates. | |
811 | for cert in \ | |
812 | AddTrustExternalCARoot.pem \ | |
813 | DigiCertHighAssuranceEVRootCA.pem \ | |
814 | GlobalSignRootCA.pem \ | |
815 | ; do | |
816 | %{__rm} $RPM_BUILD_ROOT%{rubygems_dir}/rubygems/ssl_certs/*/$cert | |
817 | done | |
818 | ||
819 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{oname}-%{pkg_version} | |
820 | cp -Rf sample/* $RPM_BUILD_ROOT%{_examplesdir}/%{oname}-%{pkg_version} | |
821 | cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_mandir}/man1/rdoc%{ruby_suffix}.1 | |
822 | cp -p %{SOURCE5} $RPM_BUILD_ROOT%{_mandir}/man1/testrb%{ruby_suffix}.1 | |
823 | ||
824 | %{__rm} -rf $RPM_BUILD_ROOT%{_docdir}/%{name}/html | |
825 | ||
826 | # detect this runtime, "make install" is affected by operating_system.rb what is installed in system! | |
827 | gem_dir=$(./miniruby -Ilib -I. -I.ext/common ./tool/runruby.rb -- --disable-gems -r$(basename *-linux*-fake.rb .rb) -r rubygems -e 'puts Gem.default_dir') | |
828 | ||
829 | # Move gems root into common directory, out of Ruby directory structure. | |
830 | install -d $RPM_BUILD_ROOT%{gem_dir} | |
831 | %{__mv} $RPM_BUILD_ROOT${gem_dir}/{gems,specifications} $RPM_BUILD_ROOT%{gem_dir} | |
832 | ||
833 | # Move bundled rubygems to %gem_dir | |
834 | # make symlinks for io-console and bigdecimal, which are considered to be part of stdlib by other Gems | |
835 | # make symlinks for all packages, so they would work without rubygems | |
836 | # NOTE: when making symlinks, do not symlink paths that could be directories, | |
837 | # as there may came files from other packages as well. actually, unlikely as | |
838 | # the links to got system dir and only ruby may package there (other distro | |
839 | # packages should go to vendor dirs) | |
840 | %if 0 | |
841 | install -d $RPM_BUILD_ROOT%{gem_dir}/gems/rake-%{rake_ver}/lib | |
842 | %{__mv} $RPM_BUILD_ROOT%{ruby_libdir}/rake* $RPM_BUILD_ROOT%{gem_dir}/gems/rake-%{rake_ver}/lib | |
843 | ln -s %{gem_dir}/gems/rake-%{rake_ver}/lib/rake $RPM_BUILD_ROOT%{ruby_libdir} | |
844 | ln -s %{gem_dir}/gems/rake-%{rake_ver}/lib/rake.rb $RPM_BUILD_ROOT%{ruby_libdir} | |
845 | %{__mv} $RPM_BUILD_ROOT%{gem_dir}/specifications/default/rake-%{rake_ver}.gemspec $RPM_BUILD_ROOT%{gem_dir}/specifications | |
846 | %endif | |
847 | ||
848 | install -d $RPM_BUILD_ROOT%{gem_dir}/gems/rdoc-%{rdoc_ver}/lib | |
849 | %{__mv} $RPM_BUILD_ROOT%{ruby_libdir}/rdoc* $RPM_BUILD_ROOT%{gem_dir}/gems/rdoc-%{rdoc_ver}/lib | |
850 | ln -s %{gem_dir}/gems/rdoc-%{rdoc_ver}/lib/rdoc $RPM_BUILD_ROOT%{ruby_libdir} | |
851 | ln -s %{gem_dir}/gems/rdoc-%{rdoc_ver}/lib/rdoc.rb $RPM_BUILD_ROOT%{ruby_libdir} | |
852 | %{__mv} $RPM_BUILD_ROOT%{gem_dir}/specifications/default/rdoc-%{rdoc_ver}.gemspec $RPM_BUILD_ROOT%{gem_dir}/specifications | |
853 | ||
854 | install -d $RPM_BUILD_ROOT%{gem_dir}/gems/bigdecimal-%{bigdecimal_ver}/lib | |
855 | install -d $RPM_BUILD_ROOT%{gem_libdir}/bigdecimal-%{bigdecimal_ver}/lib/bigdecimal | |
856 | %{__mv} $RPM_BUILD_ROOT%{ruby_libdir}/bigdecimal $RPM_BUILD_ROOT%{gem_dir}/gems/bigdecimal-%{bigdecimal_ver}/lib | |
857 | %{__mv} $RPM_BUILD_ROOT%{ruby_libarchdir}/bigdecimal.so $RPM_BUILD_ROOT%{gem_libdir}/bigdecimal-%{bigdecimal_ver}/lib | |
858 | %{__mv} $RPM_BUILD_ROOT%{ruby_libarchdir}/bigdecimal/util.so $RPM_BUILD_ROOT%{gem_libdir}/bigdecimal-%{bigdecimal_ver}/lib/bigdecimal/ | |
859 | %{__mv} $RPM_BUILD_ROOT%{gem_dir}/specifications/default/bigdecimal-%{bigdecimal_ver}.gemspec $RPM_BUILD_ROOT%{gem_dir}/specifications | |
860 | ln -s %{gem_dir}/gems/bigdecimal-%{bigdecimal_ver}/lib/bigdecimal $RPM_BUILD_ROOT%{ruby_libdir}/bigdecimal | |
861 | ln -s %{gem_libdir}/bigdecimal-%{bigdecimal_ver}/lib/bigdecimal.so $RPM_BUILD_ROOT%{ruby_libarchdir}/bigdecimal.so | |
862 | install -d $RPM_BUILD_ROOT%{ruby_libarchdir}/bigdecimal | |
863 | ln -s %{gem_libdir}/bigdecimal-%{bigdecimal_ver}/lib/bigdecimal/util.so $RPM_BUILD_ROOT%{ruby_libarchdir}/bigdecimal/util.so | |
864 | ||
865 | install -d $RPM_BUILD_ROOT%{gem_dir}/gems/io-console-%{io_console_ver}/lib | |
866 | install -d $RPM_BUILD_ROOT%{gem_libdir}/io-console-%{io_console_ver}/lib/io | |
867 | %{__mv} $RPM_BUILD_ROOT%{ruby_libdir}/io $RPM_BUILD_ROOT%{gem_dir}/gems/io-console-%{io_console_ver}/lib | |
868 | %{__mv} $RPM_BUILD_ROOT%{ruby_libarchdir}/io/console.so $RPM_BUILD_ROOT%{gem_libdir}/io-console-%{io_console_ver}/lib/io | |
869 | %{__mv} $RPM_BUILD_ROOT%{gem_dir}/specifications/default/io-console-%{io_console_ver}.gemspec $RPM_BUILD_ROOT%{gem_dir}/specifications | |
870 | ln -s %{gem_dir}/gems/io-console-%{io_console_ver}/lib/io $RPM_BUILD_ROOT%{ruby_libdir}/io | |
871 | ln -s %{gem_libdir}/io-console-%{io_console_ver}/lib/io/console.so $RPM_BUILD_ROOT%{ruby_libarchdir}/io/console.so | |
872 | ||
873 | install -d $RPM_BUILD_ROOT%{gem_dir}/gems/json-%{json_ver}/lib | |
874 | install -d $RPM_BUILD_ROOT%{gem_libdir}/json-%{json_ver}/lib | |
875 | %{__mv} $RPM_BUILD_ROOT%{ruby_libdir}/json* $RPM_BUILD_ROOT%{gem_dir}/gems/json-%{json_ver}/lib | |
876 | %{__mv} $RPM_BUILD_ROOT%{ruby_libarchdir}/json $RPM_BUILD_ROOT%{gem_libdir}/json-%{json_ver}/lib | |
877 | %{__mv} $RPM_BUILD_ROOT%{gem_dir}/specifications/default/json-%{json_ver}.gemspec $RPM_BUILD_ROOT%{gem_dir}/specifications | |
878 | ln -s %{gem_dir}/gems/json-%{json_ver}/lib/json $RPM_BUILD_ROOT%{ruby_libdir}/json | |
879 | ln -s %{gem_dir}/gems/json-%{json_ver}/lib/json.rb $RPM_BUILD_ROOT%{ruby_libdir}/json.rb | |
880 | install -d $RPM_BUILD_ROOT%{ruby_libarchdir}/json/ext | |
881 | ln -s %{gem_libdir}/json-%{json_ver}/lib/json/ext/parser.so $RPM_BUILD_ROOT%{ruby_libarchdir}/json/ext | |
882 | ln -s %{gem_libdir}/json-%{json_ver}/lib/json/ext/generator.so $RPM_BUILD_ROOT%{ruby_libarchdir}/json/ext | |
883 | ||
884 | ln -s %{gem_dir}/gems/minitest-%{minitest_ver}/lib/minitest $RPM_BUILD_ROOT%{ruby_libdir} | |
885 | ||
886 | install -d $RPM_BUILD_ROOT%{ruby_libdir}/test | |
887 | ln -s %{gem_dir}/gems/test-unit-%{test_unit_ver}/lib/test/unit $RPM_BUILD_ROOT%{ruby_libdir}/test | |
888 | ||
889 | install -d $RPM_BUILD_ROOT%{gem_dir}/gems/psych-%{psych_ver}/lib | |
890 | install -d $RPM_BUILD_ROOT%{gem_libdir}/psych-%{psych_ver}/lib | |
891 | %{__mv} $RPM_BUILD_ROOT%{ruby_libdir}/psych* $RPM_BUILD_ROOT%{gem_dir}/gems/psych-%{psych_ver}/lib | |
892 | %{__mv} $RPM_BUILD_ROOT%{ruby_libarchdir}/psych.so $RPM_BUILD_ROOT%{gem_libdir}/psych-%{psych_ver}/lib/ | |
893 | %{__mv} $RPM_BUILD_ROOT%{gem_dir}/specifications/default/psych-%{psych_ver}.gemspec $RPM_BUILD_ROOT%{gem_dir}/specifications | |
894 | ln -s %{gem_dir}/gems/psych-%{psych_ver}/lib/psych $RPM_BUILD_ROOT%{ruby_libdir}/psych | |
895 | ln -s %{gem_dir}/gems/psych-%{psych_ver}/lib/psych.rb $RPM_BUILD_ROOT%{ruby_libdir}/psych.rb | |
896 | ln -s %{gem_libdir}/psych-%{psych_ver}/lib/psych.so $RPM_BUILD_ROOT%{ruby_archdir}/psych.so | |
897 | ||
898 | install -d $RPM_BUILD_ROOT%{gem_dir}/gems/bundler-%{bundler_ver}/lib | |
899 | install -d $RPM_BUILD_ROOT%{gem_libdir}/bundler-%{bundler_ver}/lib | |
900 | %{__mv} $RPM_BUILD_ROOT%{ruby_libdir}/bundler* $RPM_BUILD_ROOT%{gem_dir}/gems/bundler-%{bundler_ver}/lib | |
901 | %{__mv} $RPM_BUILD_ROOT%{gem_dir}/specifications/default/bundler-%{bundler_ver}.gemspec $RPM_BUILD_ROOT%{gem_dir}/specifications | |
902 | ln -s %{gem_dir}/gems/bundler-%{bundler_ver}/lib/bundler $RPM_BUILD_ROOT%{ruby_libdir}/bundler | |
903 | ln -s %{gem_dir}/gems/bundler-%{bundler_ver}/lib/bundler.rb $RPM_BUILD_ROOT%{ruby_libdir}/bundler.rb | |
904 | ||
905 | # replace default irb with its not gemified version | |
906 | %{__mv} $RPM_BUILD_ROOT%{gem_dir}/gems/irb-%{irb_ver}/exe/irb $RPM_BUILD_ROOT%{_bindir}/irb%{ruby_suffix} | |
907 | ||
908 | # Adjust the gemspec files so that the gems will load properly | |
909 | sed -i '/^end$/ i\ | |
910 | s.require_paths = ["lib"]' $RPM_BUILD_ROOT%{gem_dir}/specifications/rake-%{rake_ver}.gemspec | |
911 | ||
912 | sed -i '/^end$/ i\ | |
913 | s.require_paths = ["lib"]' $RPM_BUILD_ROOT%{gem_dir}/specifications/rdoc-%{rdoc_ver}.gemspec | |
914 | ||
915 | sed -i '/^end$/ i\ | |
916 | s.require_paths = ["lib"]\ | |
917 | s.extensions = ["bigdecimal.so"]' $RPM_BUILD_ROOT%{gem_dir}/specifications/bigdecimal-%{bigdecimal_ver}.gemspec | |
918 | ||
919 | sed -i '/^end$/ i\ | |
920 | s.require_paths = ["lib"]\ | |
921 | s.extensions = ["io/console.so"]' $RPM_BUILD_ROOT%{gem_dir}/specifications/io-console-%{io_console_ver}.gemspec | |
922 | ||
923 | sed -i '/^end$/ i\ | |
924 | s.require_paths = ["lib"]\ | |
925 | s.extensions = ["json/ext/parser.so", "json/ext/generator.so"]' $RPM_BUILD_ROOT%{gem_dir}/specifications/json-%{json_ver}.gemspec | |
926 | ||
927 | sed -i '/^end$/ i\ | |
928 | s.require_paths = ["lib"]' $RPM_BUILD_ROOT%{gem_dir}/specifications/minitest-%{minitest_ver}.gemspec | |
929 | ||
930 | # Push the .gemspecs through the RubyGems to let them write the stub headers. | |
931 | # This speeds up loading of libraries and avoids warnings in Spring: | |
932 | # https://github.com/rubygems/rubygems/pull/694 | |
933 | for s in rake-%{rake_ver}.gemspec rdoc-%{rdoc_ver}.gemspec json-%{json_ver}.gemspec; do | |
934 | s="$RPM_BUILD_ROOT%{gem_dir}/specifications/$s" | |
935 | %{__make} runruby TESTRUN_SCRIPT="-rrubygems \ | |
936 | -e \"spec = Gem::Specification.load('$s')\" \ | |
937 | -e \"File.write '$s', spec.to_ruby\"" | |
938 | done | |
939 | ||
940 | %{__sed} -i -e '1s,/usr/bin/env ruby,/usr/bin/ruby,' \ | |
941 | $RPM_BUILD_ROOT%{_bindir}/irb \ | |
942 | $RPM_BUILD_ROOT%{ruby_libdir}/abbrev.rb \ | |
943 | $RPM_BUILD_ROOT%{gem_dir}/gems/rake-%{rake_ver}/bin/console \ | |
944 | $RPM_BUILD_ROOT%{gem_dir}/gems/rake-%{rake_ver}/exe/rake \ | |
945 | $RPM_BUILD_ROOT%{gem_dir}/gems/rdoc-%{rdoc_ver}/exe/{rdoc,ri} \ | |
946 | $RPM_BUILD_ROOT%{gem_dir}/gems/bundler-%{bundler_ver}/exe/{bundle,bundler} \ | |
947 | $RPM_BUILD_ROOT%{_examplesdir}/%{oname}-%{pkg_version}/{cal,test,time,uumerge}.rb \ | |
948 | $RPM_BUILD_ROOT%{_examplesdir}/%{oname}-%{pkg_version}/{drb,logger,openssl,ripper,rss}/*.rb \ | |
949 | $RPM_BUILD_ROOT%{_examplesdir}/%{oname}-%{pkg_version}/webrick/*.cgi | |
950 | ||
951 | # gem non library files | |
952 | %{__rm} -r $RPM_BUILD_ROOT%{gem_dir}/gems/minitest-%{minitest_ver}/test | |
953 | %{__rm} -r $RPM_BUILD_ROOT%{gem_dir}/gems/test-unit-%{test_unit_ver}/{[A-Z]*,doc,sample,test} | |
954 | %{__rm} -r $RPM_BUILD_ROOT%{gem_dir}/gems/power_assert-%{power_assert_ver}/{[A-Z]*,.*} | |
955 | %{__rm} -r $RPM_BUILD_ROOT%{gem_dir}/gems/did_you_mean-%{did_you_mean_ver}/{[A-Z]*,doc,test,.*,tmp,benchmark} | |
956 | %{__rm} -r $RPM_BUILD_ROOT%{gem_dir}/gems/rake-%{rake_ver}/{[A-Z]*,doc,.*} | |
957 | %{__rm} -r $RPM_BUILD_ROOT%{gem_dir}/gems/net-telnet-%{net_telnet_ver}/{[A-Z]*,bin,.*} | |
958 | ||
959 | %if %{without batteries} | |
960 | # packaged separately | |
961 | %{__rm} -r $RPM_BUILD_ROOT%{ruby_libdir}/{rubygems,rake,json,minitest} | |
962 | %{__rm} -r $RPM_BUILD_ROOT%{ruby_archdir}/json | |
963 | %{__rm} -r $RPM_BUILD_ROOT%{gem_dir}/gems/rake-* | |
964 | %{__rm} $RPM_BUILD_ROOT%{ruby_libdir}/{rake,rubygems,json}.rb | |
965 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/{gem,rake} | |
966 | #%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/rake* | |
967 | %{__rm} $RPM_BUILD_ROOT%{gem_dir}/specifications/default/{json,minitest,rake}-*.gemspec | |
968 | %{?with_doc:%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/ri/%{ruby_version}/system/JSON} | |
969 | %endif | |
970 | ||
971 | %if %{with doc} | |
972 | # too much .ri | |
973 | %{__rm} $RPM_BUILD_ROOT%{ruby_ridir}/cache.ri | |
974 | %endif | |
975 | ||
976 | %clean | |
977 | rm -rf $RPM_BUILD_ROOT | |
978 | ||
979 | %post -p /sbin/ldconfig | |
980 | %postun -p /sbin/ldconfig | |
981 | ||
982 | %files | |
983 | %defattr(644,root,root,755) | |
984 | %doc NEWS LEGAL BSDL README.md README.EXT ChangeLog | |
985 | %attr(755,root,root) %{_bindir}/ruby%{ruby_suffix} | |
986 | %attr(755,root,root) %{_libdir}/libruby.so.*.*.* | |
987 | %attr(755,root,root) %ghost %{_libdir}/libruby.so.%{ruby_version} | |
988 | %{_mandir}/man1/ruby%{ruby_suffix}.1* | |
989 | ||
990 | %dir %{_libdir}/%{oname} | |
991 | %dir %{_libdir}/%{oname}/%{vendordir} | |
992 | %dir %{_datadir}/%{oname} | |
993 | ||
994 | %dir %{ruby_libdir} | |
995 | %dir %{ruby_archdir} | |
996 | %dir %{ruby_vendorlibdir} | |
997 | %dir %{ruby_vendorarchdir} | |
998 | ||
999 | %dir %{dirname:%{ruby_ridir}} | |
1000 | %dir %{ruby_ridir} | |
1001 | %dir %{ruby_rdocdir} | |
1002 | ||
1003 | # common dirs for ruby vendor modules | |
1004 | %dir %{ruby_vendorlibdir}/data | |
1005 | %dir %{ruby_vendorlibdir}/net | |
1006 | ||
1007 | %files devel | |
1008 | %defattr(644,root,root,755) | |
1009 | %attr(755,root,root) %{_libdir}/libruby.so | |
1010 | %{_includedir}/%{oname}-%{ruby_version} | |
1011 | %{_pkgconfigdir}/%{oname}-%{ruby_version}.pc | |
1012 | %{ruby_libdir}/mkmf.rb | |
1013 | ||
1014 | %files irb | |
1015 | %defattr(644,root,root,755) | |
1016 | %attr(755,root,root) %{_bindir}/irb%{ruby_suffix} | |
1017 | %{ruby_libdir}/irb.rb | |
1018 | %{ruby_libdir}/irb | |
1019 | %{_mandir}/man1/irb%{ruby_suffix}.1* | |
1020 | ||
1021 | %files rdoc | |
1022 | %defattr(644,root,root,755) | |
1023 | %attr(755,root,root) %{_bindir}/rdoc%{ruby_suffix} | |
1024 | %attr(755,root,root) %{_bindir}/ri%{ruby_suffix} | |
1025 | %{_mandir}/man1/rdoc%{ruby_suffix}.1* | |
1026 | %{ruby_libdir}/rdoc | |
1027 | %dir %{gem_dir}/gems/rdoc-%{rdoc_ver} | |
1028 | %{gem_dir}/gems/rdoc-%{rdoc_ver}/lib | |
1029 | %{gem_dir}/specifications/rdoc-%{rdoc_ver}.gemspec | |
1030 | %dir %{gem_dir}/gems/rdoc-%{rdoc_ver}/exe | |
1031 | %{gem_dir}/gems/rdoc-%{rdoc_ver}/exe/rdoc | |
1032 | %{gem_dir}/gems/rdoc-%{rdoc_ver}/exe/ri | |
1033 | ||
1034 | %if %{with batteries} | |
1035 | %files rubygems | |
1036 | %defattr(644,root,root,755) | |
1037 | %attr(755,root,root) %{_bindir}/gem%{ruby_suffix} | |
1038 | %{rubygems_dir}/rubygems | |
1039 | %{rubygems_dir}/rubygems.rb | |
1040 | ||
1041 | %files bundler | |
1042 | %defattr(644,root,root,755) | |
1043 | %attr(755,root,root) %{_bindir}/bundler%{ruby_suffix} | |
1044 | %attr(755,root,root) %{_bindir}/bundle%{ruby_suffix} | |
1045 | %{gem_dir}/gems/bundler-%{bundler_ver} | |
1046 | %{gem_dir}/specifications/bundler-%{bundler_ver}.gemspec | |
1047 | %{_mandir}/man1/bundle*.1* | |
1048 | %{_mandir}/man5/gemfile.5* | |
1049 | ||
1050 | %files rake | |
1051 | %defattr(644,root,root,755) | |
1052 | %attr(755,root,root) %{_bindir}/rake%{ruby_suffix} | |
1053 | %dir %{gem_dir}/gems/rake-%{rake_ver} | |
1054 | %{gem_dir}/gems/rake-%{rake_ver}/lib | |
1055 | %dir %{gem_dir}/gems/rake-%{rake_ver}/bin | |
1056 | %attr(755,root,root) %{gem_dir}/gems/rake-%{rake_ver}/bin/console | |
1057 | %attr(755,root,root) %{gem_dir}/gems/rake-%{rake_ver}/bin/setup | |
1058 | %{gem_dir}/specifications/rake-%{rake_ver}.gemspec | |
1059 | %dir %{gem_dir}/gems/rake-%{rake_ver}/exe | |
1060 | %attr(755,root,root) %{gem_dir}/gems/rake-%{rake_ver}/exe/rake | |
1061 | ||
1062 | %files json | |
1063 | %defattr(644,root,root,755) | |
1064 | %{ruby_libdir}/json | |
1065 | %dir %{ruby_archdir}/json | |
1066 | %dir %{ruby_archdir}/json/ext | |
1067 | %attr(755,root,root) %{ruby_archdir}/json/ext/*.so | |
1068 | ||
1069 | %dir %{gem_libdir}/json-%{json_ver} | |
1070 | %dir %{gem_libdir}/json-%{json_ver}/lib | |
1071 | %dir %{gem_libdir}/json-%{json_ver}/lib/json | |
1072 | %dir %{gem_libdir}/json-%{json_ver}/lib/json/ext | |
1073 | %attr(755,root,root) %{gem_libdir}/json-%{json_ver}/lib/json/ext/generator.so | |
1074 | %attr(755,root,root) %{gem_libdir}/json-%{json_ver}/lib/json/ext/parser.so | |
1075 | ||
1076 | %{gem_dir}/gems/json-%{json_ver} | |
1077 | %{gem_dir}/specifications/json-%{json_ver}.gemspec | |
1078 | %endif | |
1079 | ||
1080 | %files power_assert | |
1081 | %defattr(644,root,root,755) | |
1082 | %dir %{gem_dir}/gems/power_assert-%{power_assert_ver} | |
1083 | %{gem_dir}/gems/power_assert-%{power_assert_ver}/lib | |
1084 | %{gem_dir}/specifications/power_assert-%{power_assert_ver}.gemspec | |
1085 | ||
1086 | %files minitest | |
1087 | %defattr(644,root,root,755) | |
1088 | %{ruby_libdir}/minitest | |
1089 | %{gem_dir}/gems/minitest-%{minitest_ver} | |
1090 | %{gem_dir}/specifications/minitest-%{minitest_ver}.gemspec | |
1091 | ||
1092 | %files test-unit | |
1093 | %defattr(644,root,root,755) | |
1094 | %dir %{gem_dir}/gems/test-unit-%{test_unit_ver} | |
1095 | %{gem_dir}/gems/test-unit-%{test_unit_ver}/lib | |
1096 | %{gem_dir}/specifications/test-unit-%{test_unit_ver}.gemspec | |
1097 | %{_mandir}/man1/testrb%{ruby_suffix}.1* | |
1098 | ||
1099 | %files did_you_mean | |
1100 | %defattr(644,root,root,755) | |
1101 | %dir %{gem_dir}/gems/did_you_mean-%{did_you_mean_ver} | |
1102 | %{gem_dir}/gems/did_you_mean-%{did_you_mean_ver}/lib | |
1103 | %{gem_dir}/specifications/did_you_mean-%{did_you_mean_ver}.gemspec | |
1104 | ||
1105 | %files net-telnet | |
1106 | %defattr(644,root,root,755) | |
1107 | %dir %{gem_dir}/gems/net-telnet-%{net_telnet_ver} | |
1108 | %{gem_dir}/gems/net-telnet-%{net_telnet_ver}/lib | |
1109 | %{gem_dir}/specifications/net-telnet-%{net_telnet_ver}.gemspec | |
1110 | ||
1111 | %files bigdecimal | |
1112 | %defattr(644,root,root,755) | |
1113 | %{gem_dir}/gems/bigdecimal-%{bigdecimal_ver} | |
1114 | %dir %{gem_libdir}/bigdecimal-%{bigdecimal_ver} | |
1115 | %dir %{gem_libdir}/bigdecimal-%{bigdecimal_ver}/lib | |
1116 | %attr(755,root,root) %{gem_libdir}/bigdecimal-%{bigdecimal_ver}/lib/bigdecimal.so | |
1117 | %dir %{gem_libdir}/bigdecimal-%{bigdecimal_ver}/lib/bigdecimal | |
1118 | %attr(755,root,root) %{gem_libdir}/bigdecimal-%{bigdecimal_ver}/lib/bigdecimal/util.so | |
1119 | %{ruby_libdir}/bigdecimal.rb | |
1120 | %{ruby_libdir}/bigdecimal | |
1121 | %{gem_dir}/specifications/bigdecimal-%{bigdecimal_ver}.gemspec | |
1122 | ||
1123 | %files io-console | |
1124 | %defattr(644,root,root,755) | |
1125 | %{gem_dir}/gems/io-console-%{io_console_ver} | |
1126 | %dir %{gem_libdir}/io-console-%{io_console_ver} | |
1127 | %dir %{gem_libdir}/io-console-%{io_console_ver}/lib | |
1128 | %dir %{gem_libdir}/io-console-%{io_console_ver}/lib/io | |
1129 | %attr(755,root,root) %{gem_libdir}/io-console-%{io_console_ver}/lib/io/console.so | |
1130 | %{gem_dir}/specifications/io-console-%{io_console_ver}.gemspec | |
1131 | ||
1132 | %files psych | |
1133 | %defattr(644,root,root,755) | |
1134 | %{ruby_libdir}/psych.rb | |
1135 | %attr(755,root,root) %{ruby_archdir}/psych.so | |
1136 | %{gem_dir}/gems/psych-%{psych_ver} | |
1137 | %{ruby_libdir}/psych | |
1138 | %dir %{gem_libdir}/psych-%{psych_ver} | |
1139 | %dir %{gem_libdir}/psych-%{psych_ver}/lib | |
1140 | %attr(755,root,root) %{gem_libdir}/psych-%{psych_ver}/lib/psych.so | |
1141 | %{gem_dir}/specifications/psych-%{psych_ver}.gemspec | |
1142 | ||
1143 | %files xmlrpc | |
1144 | %defattr(644,root,root,755) | |
1145 | %{gem_dir}/gems/xmlrpc-%{xmlrpc_ver} | |
1146 | %{gem_dir}/specifications/xmlrpc-%{xmlrpc_ver}.gemspec | |
1147 | ||
1148 | %files modules | |
1149 | %defattr(644,root,root,755) | |
1150 | %attr(755,root,root) %{_bindir}/erb%{ruby_suffix} | |
1151 | %{ruby_libdir}/cgi | |
1152 | %{ruby_libdir}/digest | |
1153 | %{ruby_libdir}/drb | |
1154 | %{ruby_libdir}/fiddle | |
1155 | %{ruby_libdir}/io | |
1156 | %{ruby_libdir}/matrix | |
1157 | %{ruby_libdir}/net | |
1158 | %{ruby_libdir}/openssl | |
1159 | %{ruby_libdir}/optparse | |
1160 | %{ruby_libdir}/racc | |
1161 | %{ruby_libdir}/rexml | |
1162 | %{ruby_libdir}/rinda | |
1163 | %{ruby_libdir}/ripper | |
1164 | %{ruby_libdir}/rss | |
1165 | %{ruby_libdir}/shell | |
1166 | %{ruby_libdir}/syslog | |
1167 | %{ruby_libdir}/test | |
1168 | %{ruby_libdir}/uri | |
1169 | %{ruby_libdir}/webrick | |
1170 | %{ruby_libdir}/yaml | |
1171 | ||
1172 | %{ruby_libdir}/English.rb | |
1173 | %{ruby_libdir}/abbrev.rb | |
1174 | %{ruby_libdir}/base64.rb | |
1175 | %{ruby_libdir}/benchmark.rb | |
1176 | %{ruby_libdir}/bundler | |
1177 | %{ruby_libdir}/bundler.rb | |
1178 | %{ruby_libdir}/cgi.rb | |
1179 | %{ruby_libdir}/cmath.rb | |
1180 | %{ruby_libdir}/csv.rb | |
1181 | %{ruby_libdir}/csv | |
1182 | %{ruby_libdir}/coverage.rb | |
1183 | %{ruby_libdir}/date.rb | |
1184 | %{ruby_libdir}/debug.rb | |
1185 | %{ruby_libdir}/delegate.rb | |
1186 | %{ruby_libdir}/digest.rb | |
1187 | %{ruby_libdir}/drb.rb | |
1188 | %{ruby_libdir}/e2mmap.rb | |
1189 | %{ruby_libdir}/e2mmap | |
1190 | %{ruby_libdir}/erb.rb | |
1191 | %{ruby_libdir}/expect.rb | |
1192 | %{ruby_libdir}/fiddle.rb | |
1193 | %{ruby_libdir}/fileutils.rb | |
1194 | %{ruby_libdir}/fileutils | |
1195 | %{ruby_libdir}/find.rb | |
1196 | %{ruby_libdir}/forwardable.rb | |
1197 | %dir %{ruby_libdir}/forwardable | |
1198 | %{ruby_libdir}/forwardable/impl.rb | |
1199 | %{ruby_libdir}/getoptlong.rb | |
1200 | %{ruby_libdir}/ipaddr.rb | |
1201 | %{ruby_libdir}/json.rb | |
1202 | %{ruby_libdir}/kconv.rb | |
1203 | %{ruby_libdir}/logger.rb | |
1204 | %{ruby_libdir}/matrix.rb | |
1205 | %{ruby_libdir}/monitor.rb | |
1206 | %{ruby_libdir}/mutex_m.rb | |
1207 | %{ruby_libdir}/observer.rb | |
1208 | %{ruby_libdir}/open-uri.rb | |
1209 | %{ruby_libdir}/open3.rb | |
1210 | %{ruby_libdir}/openssl.rb | |
1211 | %{ruby_libdir}/optionparser.rb | |
1212 | %{ruby_libdir}/optparse.rb | |
1213 | %{ruby_libdir}/ostruct.rb | |
1214 | %{ruby_libdir}/pathname.rb | |
1215 | %{ruby_libdir}/pp.rb | |
1216 | %{ruby_libdir}/prettyprint.rb | |
1217 | %{ruby_libdir}/prime.rb | |
1218 | %{ruby_libdir}/profile.rb | |
1219 | %{ruby_libdir}/profiler.rb | |
1220 | %{ruby_libdir}/pstore.rb | |
1221 | %{ruby_libdir}/rdoc.rb | |
1222 | %{ruby_libdir}/resolv-replace.rb | |
1223 | %{ruby_libdir}/resolv.rb | |
1224 | %{ruby_libdir}/ripper.rb | |
1225 | %{ruby_libdir}/rss.rb | |
1226 | %{ruby_libdir}/scanf.rb | |
1227 | %{ruby_libdir}/securerandom.rb | |
1228 | %{ruby_libdir}/set.rb | |
1229 | %{ruby_libdir}/shell.rb | |
1230 | %{ruby_libdir}/shellwords.rb | |
1231 | %{ruby_libdir}/singleton.rb | |
1232 | %{ruby_libdir}/socket.rb | |
1233 | %{ruby_libdir}/sync.rb | |
1234 | %{ruby_libdir}/tempfile.rb | |
1235 | %{ruby_libdir}/thwait.rb | |
1236 | %{ruby_libdir}/thwait | |
1237 | %{ruby_libdir}/time.rb | |
1238 | %{ruby_libdir}/timeout.rb | |
1239 | %{ruby_libdir}/tmpdir.rb | |
1240 | %{ruby_libdir}/tracer.rb | |
1241 | %{ruby_libdir}/tracer | |
1242 | %{ruby_libdir}/tsort.rb | |
1243 | %{ruby_libdir}/un.rb | |
1244 | %{ruby_libdir}/unicode_normalize | |
1245 | %{ruby_libdir}/uri.rb | |
1246 | %{ruby_libdir}/weakref.rb | |
1247 | %{ruby_libdir}/webrick.rb | |
1248 | %{ruby_libdir}/yaml.rb | |
1249 | ||
1250 | %if %{with batteries} | |
1251 | %exclude %{ruby_libdir}/rubygems.rb | |
1252 | %endif | |
1253 | %exclude %{ruby_libdir}/irb.rb | |
1254 | %exclude %{ruby_libdir}/mkmf.rb | |
1255 | ||
1256 | %{ruby_archdir}/rbconfig.rb | |
1257 | %attr(755,root,root) %{ruby_archdir}/bigdecimal.so | |
1258 | %dir %{ruby_archdir}/bigdecimal | |
1259 | %attr(755,root,root) %{ruby_archdir}/bigdecimal/util.so | |
1260 | %attr(755,root,root) %{ruby_archdir}/continuation.so | |
1261 | %attr(755,root,root) %{ruby_archdir}/coverage.so | |
1262 | %attr(755,root,root) %{ruby_archdir}/date_core.so | |
1263 | %attr(755,root,root) %{ruby_archdir}/dbm.so | |
1264 | %attr(755,root,root) %{ruby_archdir}/digest.so | |
1265 | %attr(755,root,root) %{ruby_archdir}/etc.so | |
1266 | %attr(755,root,root) %{ruby_archdir}/fcntl.so | |
1267 | %attr(755,root,root) %{ruby_archdir}/fiber.so | |
1268 | %attr(755,root,root) %{ruby_archdir}/fiddle.so | |
1269 | %attr(755,root,root) %{ruby_archdir}/gdbm.so | |
1270 | %attr(755,root,root) %{ruby_archdir}/nkf.so | |
1271 | %attr(755,root,root) %{ruby_archdir}/objspace.so | |
1272 | %attr(755,root,root) %{ruby_archdir}/openssl.so | |
1273 | %attr(755,root,root) %{ruby_archdir}/pathname.so | |
1274 | %attr(755,root,root) %{ruby_archdir}/pty.so | |
1275 | %attr(755,root,root) %{ruby_archdir}/readline.so | |
1276 | %attr(755,root,root) %{ruby_archdir}/ripper.so | |
1277 | %attr(755,root,root) %{ruby_archdir}/sdbm.so | |
1278 | %attr(755,root,root) %{ruby_archdir}/socket.so | |
1279 | %attr(755,root,root) %{ruby_archdir}/stringio.so | |
1280 | %attr(755,root,root) %{ruby_archdir}/strscan.so | |
1281 | %attr(755,root,root) %{ruby_archdir}/syslog.so | |
1282 | %attr(755,root,root) %{ruby_archdir}/zlib.so | |
1283 | ||
1284 | %dir %{ruby_archdir}/cgi | |
1285 | %attr(755,root,root) %{ruby_archdir}/cgi/escape.so | |
1286 | %dir %{ruby_archdir}/digest | |
1287 | %attr(755,root,root) %{ruby_archdir}/digest/*.so | |
1288 | %dir %{ruby_archdir}/enc | |
1289 | %attr(755,root,root) %{ruby_archdir}/enc/*.so | |
1290 | %dir %{ruby_archdir}/enc/trans | |
1291 | %attr(755,root,root) %{ruby_archdir}/enc/trans/*.so | |
1292 | %dir %{ruby_archdir}/io | |
1293 | %attr(755,root,root) %{ruby_archdir}/io/*.so | |
1294 | %dir %{ruby_archdir}/racc | |
1295 | %attr(755,root,root) %{ruby_archdir}/racc/*.so | |
1296 | %dir %{ruby_archdir}/rbconfig | |
1297 | %attr(755,root,root) %{ruby_archdir}/rbconfig/sizeof.so | |
1298 | ||
1299 | %dir %{_libdir}/gems | |
1300 | %dir %{_libdir}/gems/%{oname} | |
1301 | ||
1302 | %dir %{gem_dir} | |
1303 | %dir %{gem_dir}/gems | |
1304 | %dir %{gem_dir}/specifications | |
1305 | %dir %{gem_dir}/specifications/default | |
1306 | %{gem_dir}/specifications/default/openssl-%{openssl_ver}.gemspec | |
1307 | ||
1308 | %{_mandir}/man1/erb%{ruby_suffix}.1* | |
1309 | %{_mandir}/man1/ri%{ruby_suffix}.1* | |
1310 | ||
1311 | %if %{with doc} | |
1312 | %files doc | |
1313 | %defattr(644,root,root,755) | |
1314 | %doc ruby_%{doc_version}_stdlib | |
1315 | %doc ruby_%{doc_version}_core | |
1316 | ||
1317 | %files doc-ri | |
1318 | %defattr(644,root,root,755) | |
1319 | %{ruby_ridir}/ACL | |
1320 | %{ruby_ridir}/ARGF | |
1321 | %{ruby_ridir}/Abbrev | |
1322 | %{ruby_ridir}/Addrinfo | |
1323 | %{ruby_ridir}/ArgumentError | |
1324 | %{ruby_ridir}/Array | |
1325 | %{ruby_ridir}/Base64 | |
1326 | %{ruby_ridir}/BasicObject | |
1327 | %{ruby_ridir}/BasicSocket | |
1328 | %{ruby_ridir}/Benchmark | |
1329 | %{ruby_ridir}/BigDecimal | |
1330 | %{ruby_ridir}/BigMath | |
1331 | %{ruby_ridir}/Binding | |
1332 | %{ruby_ridir}/Bundler | |
1333 | %{ruby_ridir}/CGI | |
1334 | %{ruby_ridir}/CMath | |
1335 | %{ruby_ridir}/CSV | |
1336 | %{ruby_ridir}/Class | |
1337 | %{ruby_ridir}/ClosedQueueError | |
1338 | %{ruby_ridir}/Comparable | |
1339 | %{ruby_ridir}/Complex | |
1340 | %{ruby_ridir}/ConditionVariable | |
1341 | %{ruby_ridir}/Continuation | |
1342 | %{ruby_ridir}/Coverage | |
1343 | %{ruby_ridir}/DBM | |
1344 | %{ruby_ridir}/DBMError | |
1345 | %{ruby_ridir}/DEBUGGER__ | |
1346 | %{ruby_ridir}/DRb | |
1347 | %{ruby_ridir}/Data | |
1348 | %{ruby_ridir}/Date | |
1349 | %{ruby_ridir}/DateTime | |
1350 | %{ruby_ridir}/Delegator | |
1351 | %{ruby_ridir}/Digest | |
1352 | %{ruby_ridir}/Dir | |
1353 | %{ruby_ridir}/ENV | |
1354 | %{ruby_ridir}/EOFError | |
1355 | %{ruby_ridir}/ERB | |
1356 | %{ruby_ridir}/EXCEPTION_TYPE | |
1357 | %{ruby_ridir}/Encoding | |
1358 | %{ruby_ridir}/EncodingError | |
1359 | %{ruby_ridir}/English | |
1360 | %{ruby_ridir}/Enumerable | |
1361 | %{ruby_ridir}/Enumerator | |
1362 | %{ruby_ridir}/Errno | |
1363 | %{ruby_ridir}/Etc | |
1364 | %{ruby_ridir}/Exception | |
1365 | %{ruby_ridir}/Exception2MessageMapper | |
1366 | %{ruby_ridir}/FalseClass | |
1367 | %{ruby_ridir}/Fcntl | |
1368 | %{ruby_ridir}/Fiber | |
1369 | %{ruby_ridir}/FiberError | |
1370 | %{ruby_ridir}/Fiddle | |
1371 | %{ruby_ridir}/File | |
1372 | %{ruby_ridir}/FileTest | |
1373 | %{ruby_ridir}/FileUtils | |
1374 | %{ruby_ridir}/Find | |
1375 | %{ruby_ridir}/Float | |
1376 | %{ruby_ridir}/FloatDomainError | |
1377 | %{ruby_ridir}/Forwardable | |
1378 | %{ruby_ridir}/FrozenError | |
1379 | %{ruby_ridir}/GC | |
1380 | %{ruby_ridir}/GDBM | |
1381 | %{ruby_ridir}/GDBMError | |
1382 | %{ruby_ridir}/GDBMFatalError | |
1383 | %{ruby_ridir}/Gem | |
1384 | %{ruby_ridir}/GetoptLong | |
1385 | %{ruby_ridir}/HTTPClientException | |
1386 | %{ruby_ridir}/HTTPGatewayTimeOut | |
1387 | %{ruby_ridir}/HTTPMovedTemporarily | |
1388 | %{ruby_ridir}/HTTPMultipleChoice | |
1389 | %{ruby_ridir}/HTTPRequestEntityTooLarge | |
1390 | %{ruby_ridir}/HTTPRequestTimeOut | |
1391 | %{ruby_ridir}/HTTPRequestURITooLarge | |
1392 | %{ruby_ridir}/HTTPRequestURITooLong | |
1393 | %{ruby_ridir}/HTTPRequestedRangeNotSatisfiable | |
1394 | %{ruby_ridir}/Hash | |
1395 | %{ruby_ridir}/IO | |
1396 | %{ruby_ridir}/IOError | |
1397 | %{ruby_ridir}/IPAddr | |
1398 | %{ruby_ridir}/IPSocket | |
1399 | %{ruby_ridir}/IRB | |
1400 | %{ruby_ridir}/IndexError | |
1401 | %{ruby_ridir}/Integer | |
1402 | %{ruby_ridir}/Interrupt | |
1403 | %{ruby_ridir}/JSON | |
1404 | %{ruby_ridir}/Jacobian | |
1405 | %{ruby_ridir}/Kconv | |
1406 | %{ruby_ridir}/Kernel | |
1407 | %{ruby_ridir}/KeyError | |
1408 | %{ruby_ridir}/LUSolve | |
1409 | %{ruby_ridir}/LoadError | |
1410 | %{ruby_ridir}/LocalJumpError | |
1411 | %{ruby_ridir}/Logger | |
1412 | %{ruby_ridir}/MakeMakefile | |
1413 | %{ruby_ridir}/Marshal | |
1414 | %{ruby_ridir}/MatchData | |
1415 | %{ruby_ridir}/Math | |
1416 | %{ruby_ridir}/Matrix | |
1417 | %{ruby_ridir}/Method | |
1418 | %{ruby_ridir}/Module | |
1419 | %{ruby_ridir}/Monitor | |
1420 | %{ruby_ridir}/MonitorMixin | |
1421 | %{ruby_ridir}/Mutex | |
1422 | %{ruby_ridir}/Mutex_m | |
1423 | %{ruby_ridir}/NKF | |
1424 | %{ruby_ridir}/NameError | |
1425 | %{ruby_ridir}/Net | |
1426 | %{ruby_ridir}/Newton | |
1427 | %{ruby_ridir}/NilClass | |
1428 | %{ruby_ridir}/NoMemoryError | |
1429 | %{ruby_ridir}/NoMethodError | |
1430 | %{ruby_ridir}/NotImplementedError | |
1431 | %{ruby_ridir}/Numeric | |
1432 | %{ruby_ridir}/OLEProperty | |
1433 | %{ruby_ridir}/Object | |
1434 | %{ruby_ridir}/ObjectSpace | |
1435 | %{ruby_ridir}/Observable | |
1436 | %{ruby_ridir}/Open3 | |
1437 | %{ruby_ridir}/OpenSSL | |
1438 | %{ruby_ridir}/OpenStruct | |
1439 | %{ruby_ridir}/OpenURI | |
1440 | %{ruby_ridir}/OptionParser | |
1441 | %{ruby_ridir}/PP | |
1442 | %{ruby_ridir}/PStore | |
1443 | %{ruby_ridir}/PTY | |
1444 | %{ruby_ridir}/Pathname | |
1445 | %{ruby_ridir}/PrettyPrint | |
1446 | %{ruby_ridir}/Prime | |
1447 | %{ruby_ridir}/Proc | |
1448 | %{ruby_ridir}/Process | |
1449 | %{ruby_ridir}/Profiler__ | |
1450 | %{ruby_ridir}/Psych | |
1451 | %{ruby_ridir}/Queue | |
1452 | %{ruby_ridir}/RDoc | |
1453 | %{ruby_ridir}/RDocTask | |
1454 | %{ruby_ridir}/REXML | |
1455 | %{ruby_ridir}/RSS | |
1456 | %{ruby_ridir}/Racc | |
1457 | %{ruby_ridir}/Rake | |
1458 | %{ruby_ridir}/Random | |
1459 | %{ruby_ridir}/Range | |
1460 | %{ruby_ridir}/RangeError | |
1461 | %{ruby_ridir}/Rational | |
1462 | %{ruby_ridir}/RbConfig | |
1463 | %{ruby_ridir}/Readline | |
1464 | %{ruby_ridir}/Regexp | |
1465 | %{ruby_ridir}/RegexpError | |
1466 | %{ruby_ridir}/Resolv | |
1467 | %{ruby_ridir}/Rinda | |
1468 | %{ruby_ridir}/Ripper | |
1469 | %{ruby_ridir}/RubyLex | |
1470 | %{ruby_ridir}/RubyToken | |
1471 | %{ruby_ridir}/RubyVM | |
1472 | %{ruby_ridir}/RuntimeError | |
1473 | %{ruby_ridir}/SDBM | |
1474 | %{ruby_ridir}/SDBMError | |
1475 | %{ruby_ridir}/SOCKSSocket | |
1476 | %{ruby_ridir}/Scanf | |
1477 | %{ruby_ridir}/ScriptError | |
1478 | %{ruby_ridir}/SecureRandom | |
1479 | %{ruby_ridir}/SecurityError | |
1480 | %{ruby_ridir}/Set | |
1481 | %{ruby_ridir}/Shell | |
1482 | %{ruby_ridir}/Shellwords | |
1483 | %{ruby_ridir}/Signal | |
1484 | %{ruby_ridir}/SignalException | |
1485 | %{ruby_ridir}/SimpleDelegator | |
1486 | %{ruby_ridir}/SingleForwardable | |
1487 | %{ruby_ridir}/Singleton | |
1488 | %{ruby_ridir}/SizedQueue | |
1489 | %{ruby_ridir}/Socket | |
1490 | %{ruby_ridir}/SocketError | |
1491 | %{ruby_ridir}/SortedSet | |
1492 | %{ruby_ridir}/StandardError | |
1493 | %{ruby_ridir}/StopIteration | |
1494 | %{ruby_ridir}/String | |
1495 | %{ruby_ridir}/StringIO | |
1496 | %{ruby_ridir}/StringScanner | |
1497 | %{ruby_ridir}/Struct | |
1498 | %{ruby_ridir}/Symbol | |
1499 | %{ruby_ridir}/Sync | |
1500 | %{ruby_ridir}/Sync_m | |
1501 | %{ruby_ridir}/Synchronizer | |
1502 | %{ruby_ridir}/Synchronizer_m | |
1503 | %{ruby_ridir}/SyntaxError | |
1504 | %{ruby_ridir}/Syslog | |
1505 | %{ruby_ridir}/SystemCallError | |
1506 | %{ruby_ridir}/SystemExit | |
1507 | %{ruby_ridir}/SystemStackError | |
1508 | %{ruby_ridir}/TCPServer | |
1509 | %{ruby_ridir}/TCPSocket | |
1510 | %{ruby_ridir}/TSort | |
1511 | %{ruby_ridir}/TempIO | |
1512 | %{ruby_ridir}/Tempfile | |
1513 | %{ruby_ridir}/ThWait | |
1514 | %{ruby_ridir}/Thread | |
1515 | %{ruby_ridir}/ThreadError | |
1516 | %{ruby_ridir}/ThreadGroup | |
1517 | %{ruby_ridir}/ThreadsWait | |
1518 | %{ruby_ridir}/Time | |
1519 | %{ruby_ridir}/Timeout | |
1520 | %{ruby_ridir}/TracePoint | |
1521 | %{ruby_ridir}/Tracer | |
1522 | %{ruby_ridir}/TrueClass | |
1523 | %{ruby_ridir}/TypeError | |
1524 | %{ruby_ridir}/UDPSocket | |
1525 | %{ruby_ridir}/UNIXServer | |
1526 | %{ruby_ridir}/UNIXSocket | |
1527 | %{ruby_ridir}/URI | |
1528 | %{ruby_ridir}/UnboundMethod | |
1529 | %{ruby_ridir}/UncaughtThrowError | |
1530 | %{ruby_ridir}/UnicodeNormalize | |
1531 | %{ruby_ridir}/Vector | |
1532 | %{ruby_ridir}/WEBrick | |
1533 | %{ruby_ridir}/WIN32OLE | |
1534 | %{ruby_ridir}/WIN32OLERuntimeError | |
1535 | %{ruby_ridir}/WIN32OLEQueryInterfaceError | |
1536 | %{ruby_ridir}/WIN32OLE_EVENT | |
1537 | %{ruby_ridir}/WIN32OLE_METHOD | |
1538 | %{ruby_ridir}/WIN32OLE_PARAM | |
1539 | %{ruby_ridir}/WIN32OLE_RECORD | |
1540 | %{ruby_ridir}/WIN32OLE_TYPE | |
1541 | %{ruby_ridir}/WIN32OLE_TYPELIB | |
1542 | %{ruby_ridir}/WIN32OLE_VARIABLE | |
1543 | %{ruby_ridir}/WIN32OLE_VARIANT | |
1544 | %{ruby_ridir}/Warning | |
1545 | %{ruby_ridir}/WeakRef | |
1546 | %{ruby_ridir}/XML | |
1547 | %{ruby_ridir}/XMLEncoding_ja | |
1548 | %{ruby_ridir}/XMP | |
1549 | %{ruby_ridir}/YAML | |
1550 | %{ruby_ridir}/ZeroDivisionError | |
1551 | %{ruby_ridir}/Zlib | |
1552 | %{ruby_ridir}/fatal | |
1553 | %{ruby_ridir}/lib | |
1554 | %{ruby_ridir}/syntax | |
1555 | %{ruby_ridir}/page-NEWS*.ri | |
1556 | %{ruby_ridir}/page-README_md.ri | |
1557 | %{ruby_ridir}/page-*_rdoc.ri | |
1558 | %endif | |
1559 | ||
1560 | %files examples | |
1561 | %defattr(644,root,root,755) | |
1562 | %{_examplesdir}/%{oname}-%{pkg_version} |