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