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