]>
Commit | Line | Data |
---|---|---|
198b2d1a | 1 | # TODO: |
198b2d1a JR |
2 | # - include ext/ in docs |
3 | # - replace ri with fastri | |
97b7914a | 4 | # - patch ri to search multiple indexes (one per package), so RPMs can install ri docs |
198b2d1a | 5 | # |
2acc5f17 | 6 | # Conditional build: |
bc991d5a | 7 | %bcond_without doc # skip (time-consuming) docs generating; intended for speed up test builds |
d1c4fb79 | 8 | %bcond_with tk # build Tk bindings (tcl8.6 is not supported) |
05f75f09 | 9 | %bcond_without batteries # Don't include rubygems, json, rake, minitest |
9c41e51a | 10 | %bcond_without default_ruby # use this Ruby as default system Ruby |
92ff5331 | 11 | %bcond_with bootstrap # build bootstrap version |
fa311386 | 12 | |
e8995a8b | 13 | %define rel 0.2 |
5a5c66dc ER |
14 | %define ruby_version 2.1 |
15 | %define basever 2.1 | |
16 | %define patchlevel 6 | |
9c41e51a | 17 | |
99934935 | 18 | %define ruby_suffix %{!?with_default_ruby:%{ruby_version}} |
5a5c66dc | 19 | %define doc_version 2_1_0 |
45f22c60 | 20 | |
52c1faed ER |
21 | %define bigdecimal_ver 1.2.4 |
22 | %define io_console_ver 0.4.3 | |
d8228776 | 23 | %define irb_ver 0.9.6 |
52c1faed ER |
24 | %define json_ver 1.8.1 |
25 | %define minitest_ver 4.7.5 | |
26 | %define psych_ver 2.0.5 | |
27 | %define rake_ver 10.1.0 | |
5a5c66dc ER |
28 | %define rdoc_ver 4.1.0 |
29 | %define rubygems_ver 2.2.3 | |
52c1faed | 30 | %define test_unit_ver 2.1.6.0 |
45f22c60 | 31 | |
9c41e51a | 32 | %define oname ruby |
6e2f9b3c | 33 | Summary: Ruby - interpreted scripting language |
3c3949cf ER |
34 | Summary(ja.UTF-8): オブジェクト指向言語Rubyインタプリタ |
35 | Summary(pl.UTF-8): Ruby - interpretowany język skryptowy | |
36 | Summary(pt_BR.UTF-8): Linguagem de script orientada a objeto | |
37 | Summary(zh_CN.UTF-8): ruby - 一种快速高效的面向对象脚本编程语言 | |
9c41e51a | 38 | Name: ruby%{ruby_suffix} |
6cd63ddf | 39 | Version: %{basever}.%{patchlevel} |
116a558f | 40 | Release: %{rel} |
01204e8f | 41 | Epoch: 1 |
267654e7 ER |
42 | # Public Domain for example for: include/ruby/st.h, strftime.c, ... |
43 | License: (Ruby or BSD) and Public Domain | |
6eb17ef6 | 44 | Group: Development/Languages |
14b99482 | 45 | # https://www.ruby-lang.org/en/downloads/ |
5a5c66dc ER |
46 | Source0: https://ftp.ruby-lang.org/pub/ruby/2.1/%{oname}-%{basever}.%{patchlevel}.tar.xz |
47 | # Source0-md5: ec6f10ca331ce947802ede86259513a8 | |
9c41e51a | 48 | Source1: http://www.ruby-doc.org/download/%{oname}-doc-bundle.tar.gz |
775b0723 | 49 | # Source1-md5: ad1af0043be98ba1a4f6d0185df63876 |
9c41e51a | 50 | Source2: http://www.ruby-doc.org/downloads/%{oname}_%{doc_version}_stdlib_rdocs.tgz |
5a5c66dc | 51 | # Source2-md5: bf479c714ba189f9df633600b40aeef5 |
9c41e51a | 52 | Source3: http://www.ruby-doc.org/downloads/%{oname}_%{doc_version}_core_rdocs.tgz |
5a5c66dc | 53 | # Source3-md5: 3515d672874a1e48d4a8fd32c50639e7 |
9c41e51a | 54 | Source100: ftp://ftp.ruby-lang.org/pub/ruby/1.8/%{oname}-1.8.7-p330.tar.gz |
92ff5331 | 55 | # Source100-md5: 50a49edb787211598d08e756e733e42e |
af4f9d38 | 56 | Source4: rdoc.1 |
af4f9d38 | 57 | Source5: testrb.1 |
a6d548c5 | 58 | Source6: operating_system.rb |
9c41e51a ER |
59 | Patch0: %{oname}-lib64.patch |
60 | Patch1: %{oname}-ffs.patch | |
360c41c0 | 61 | Patch2: fix-bison-invocation.patch |
313c55d4 ER |
62 | Patch3: mkmf-verbose.patch |
63 | Patch4: strip-ccache.patch | |
64 | Patch5: duplicated-paths.patch | |
313c55d4 ER |
65 | Patch7: empty-ruby-version.patch |
66 | Patch8: rubygems-2.0.0-binary-extensions.patch | |
67 | Patch9: custom-rubygems-location.patch | |
2cbd2e34 | 68 | Patch10: %{oname}-posixsh.patch |
ea1548ae | 69 | Patch11: x32-asm.patch |
a319cc02 | 70 | Patch12: archlibdir.patch |
7c36cd5d | 71 | URL: http://www.ruby-lang.org/ |
19b741fe | 72 | BuildRequires: autoconf >= 2.60 |
53c95475 | 73 | BuildRequires: automake |
f2e66748 | 74 | BuildRequires: bison >= 1.875 |
f0eb2dd9 | 75 | BuildRequires: db-devel |
e9f2c6fe | 76 | BuildRequires: gdbm-devel >= 1.8.3 |
9ae7df75 | 77 | BuildRequires: libffi-devel |
1968db6d | 78 | BuildRequires: ncurses-devel |
f33fb184 | 79 | BuildRequires: openssl-devel |
74c8af09 | 80 | BuildRequires: pkgconfig |
933aeb0e | 81 | BuildRequires: readline-devel >= 4.2 |
d25d71f0 | 82 | BuildRequires: rpm-build >= 5.4.10-49 |
7911cce0 | 83 | BuildRequires: sed >= 4.0 |
14b99482 ER |
84 | BuildRequires: tar >= 1:1.22 |
85 | BuildRequires: xz | |
92ff5331 | 86 | BuildRequires: yaml-devel |
14b99482 ER |
87 | %if %{without bootstrap} |
88 | # bootstrap needs ruby binary, erb module | |
89 | BuildRequires: rpm-rubyprov | |
90 | BuildRequires: ruby | |
91 | BuildRequires: ruby-modules | |
92 | %endif | |
15ecb21e | 93 | %if %{with tk} |
e14a2f74 | 94 | BuildRequires: tk-devel |
15ecb21e | 95 | %endif |
f0eb2dd9 | 96 | Requires(post,postun): /sbin/ldconfig |
31058abe | 97 | Provides: ruby(ver) = %{ruby_version} |
ee1edb11 | 98 | Obsoletes: ruby-REXML <= 2.4.0-2 |
bb5582fa | 99 | Obsoletes: ruby-doc < 1.8.4 |
ee1edb11 | 100 | Obsoletes: ruby-fastthread <= 0.6.3 |
9556e036 | 101 | Conflicts: rpm-build-macros < 1.695 |
a2963aa1 JR |
102 | Conflicts: ruby-activesupport < 2.3.11-2 |
103 | Conflicts: ruby-activesupport2 < 2.3.11-2 | |
584b8bcb | 104 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
4ab119cd | 105 | |
df9a7ee8 | 106 | %define ruby_ridir %{_datadir}/ri/system |
a6d548c5 ER |
107 | %define gem_dir %{_datadir}/gems |
108 | %define gem_libdir %{_libdir}/gems/%{oname} | |
d78ec589 | 109 | |
f493239c ER |
110 | # location where rubygems is installed |
111 | %define rubygems_dir %{ruby_libdir} | |
d78ec589 | 112 | |
9c41e51a | 113 | %define ruby_archdir %{_libdir}/%{oname}/%{ruby_version} |
45f22c60 | 114 | %define ruby_libarchdir %{_libdir}/%{oname}/%{ruby_version} |
9c41e51a | 115 | %define ruby_libdir %{_datadir}/%{oname}/%{ruby_version} |
d78ec589 ER |
116 | |
117 | # This is the local lib/arch and should not be used for packaging. | |
5c3d5a0e | 118 | %define sitedir site_ruby |
9c41e51a | 119 | %define ruby_sitearchdir %{_prefix}/local/%{_lib}/%{oname}/%{sitedir}/%{ruby_version} |
08c2f6e5 | 120 | %define ruby_sitelibdir %{_prefix}/local/share/%{oname}/%{sitedir} |
d78ec589 ER |
121 | |
122 | # This is the general location for libs/archs compatible with all | |
123 | # or most of the Ruby versions available in the PLD repositories. | |
5c3d5a0e | 124 | %define vendordir vendor_ruby |
9c41e51a | 125 | %define ruby_vendorarchdir %{_libdir}/%{oname}/%{vendordir}/%{ruby_version} |
08c2f6e5 | 126 | %define ruby_vendorlibdir %{_datadir}/%{oname}/%{vendordir} |
d78ec589 | 127 | |
8ea447c1 | 128 | # bleh, some nasty (gcc or ruby) bug still not fixed |
cc2dcaa2 | 129 | # (SEGV or "unexpected break" on miniruby run during build) |
8ea447c1 JB |
130 | %define specflags_ia64 -O0 |
131 | ||
88546731 | 132 | # ruby needs frame pointers for correct exception handling |
b66203d6 | 133 | %define specflags_ia32 -fno-omit-frame-pointer |
88546731 | 134 | |
4ab119cd | 135 | %description |
136 | Ruby is the interpreted scripting language for quick and easy | |
137 | object-oriented programming. It has many features to process text | |
138 | files and to do system management tasks (as in Perl). It is simple, | |
139 | straight-forward, extensible, and portable. | |
140 | ||
9fd96af7 | 141 | This package contains only shared library and ruby interpreter. To get |
142 | full-functional ruby environment install ruby-modules package. | |
143 | ||
a0a47c48 JR |
144 | %description -l ja.UTF-8 |
145 | Rubyはシンプルかつ強力なオブジェクト指向スクリプト言語です.Rubyは最初 | |
146 | から純粋なオブジェクト指向言語として設計されていますから,オブジェクト | |
15467dc7 | 147 | 指向プログラミングを手軽に行う事が出来ます.もちろん通常の手続き型のプ ログラミングも可能です. |
7c36cd5d | 148 | |
a0a47c48 JR |
149 | %description -l pl.UTF-8 |
150 | Ruby to interpretowany język skryptowy, w sam raz dla łatwego i | |
151 | szybkiego pisania zorientowanych obiektowo programów. Ma wiele funkcji | |
152 | ułatwiających przetwarzanie plików tekstowych i wykonywanie prac | |
153 | związanych z zarządzaniem systemu (podobnie jak Perl). Jest prosty, | |
154 | rozszerzalny i przenośny. | |
6e2f9b3c | 155 | |
a0a47c48 JR |
156 | Ten pakiet zawiera tylko bibliotekę dzieloną i interpreter ruby. |
157 | Zainstaluj pakiet ruby-modules, jeżeli potrzebujesz w pełni | |
158 | funkcjonalnego środowiska ruby. | |
9fd96af7 | 159 | |
a0a47c48 JR |
160 | %description -l pt_BR.UTF-8 |
161 | Ruby é uma linguagem de script interpretada de programação orientada a | |
162 | objeto. Possui diversas características para processamento de texto. É | |
163 | simples, extensível e direta. | |
7c36cd5d | 164 | |
9fd96af7 | 165 | %package modules |
166 | Summary: Ruby standard modules and utilities | |
3c3949cf | 167 | Summary(pl.UTF-8): Standardowe moduły i narzędzia dla języka Ruby |
9fd96af7 | 168 | Group: Development/Languages |
169 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
b688e9a5 | 170 | Suggests: ruby-rubygems |
ee1edb11 ER |
171 | Provides: ruby-bigdecimal = %{bigdecimal_ver} |
172 | Provides: ruby-io-console = %{io_console_ver} | |
05f75f09 ER |
173 | # ruby-modules deprecated, rpm5 generates ruby(abi) itself |
174 | Provides: ruby-modules(ver) = %{ruby_version} | |
175 | %if %{with batteries} | |
ee1edb11 | 176 | Provides: ruby-minitest = %{minitest_ver} |
ee1edb11 | 177 | Obsoletes: ruby-minitest <= 1.5.0 |
05f75f09 | 178 | %endif |
29a18971 ER |
179 | # FIXME later |
180 | Provides: ruby(abi) = %{ruby_version} | |
c8ae95d0 | 181 | %requires_ge_to openssl openssl-devel |
9fd96af7 | 182 | |
183 | %description modules | |
184 | Ruby standard modules and utilities: | |
185 | - erb - Tiny eRuby | |
7911cce0 | 186 | - testrb - automatic runner for Test::Unit of Ruby |
9fd96af7 | 187 | |
a0a47c48 JR |
188 | %description modules -l pl.UTF-8 |
189 | Standardowe moduły i narzędzia Ruby: | |
190 | - erb - mały eRuby | |
7911cce0 | 191 | - testrb - automatyczny runner dla Ruby Test::Unit |
9fd96af7 | 192 | |
265d0efe | 193 | %package tk |
194 | Summary: Ruby/Tk bindings | |
3c3949cf | 195 | Summary(pl.UTF-8): Wiązania Ruby/Tk |
e65aac33 | 196 | Group: Development/Languages |
69b51dc9 | 197 | Requires: %{name}-modules = %{epoch}:%{version}-%{release} |
265d0efe | 198 | |
199 | %description tk | |
c659b270 | 200 | This package contains Ruby/Tk bindings. |
e65aac33 | 201 | |
a0a47c48 JR |
202 | %description tk -l pl.UTF-8 |
203 | Ten pakiet zawiera wiązania Ruby/Tk. | |
265d0efe | 204 | |
e14a2f74 | 205 | %package devel |
e14a2f74 | 206 | Summary: Ruby development libraries |
3c3949cf | 207 | Summary(pl.UTF-8): Biblioteki programistyczne interpretera języka Ruby |
9434194f | 208 | Group: Development/Languages |
9fd96af7 | 209 | Requires: %{name}-modules = %{epoch}:%{version}-%{release} |
92f362b7 ER |
210 | Requires: gcc |
211 | Requires: glibc-devel | |
b5465d0c | 212 | Requires: pkgconfig |
e14a2f74 | 213 | |
214 | %description devel | |
9434194f JB |
215 | Ruby development libraries. |
216 | ||
a0a47c48 JR |
217 | %description devel -l pl.UTF-8 |
218 | Biblioteki programistyczne interpretera języka Ruby. | |
e14a2f74 | 219 | |
87b9c30a | 220 | %package static |
221 | Summary: Ruby static libraries | |
3c3949cf | 222 | Summary(pl.UTF-8): Biblioteki statyczne Ruby |
87b9c30a | 223 | Group: Development/Languages |
f89d855e | 224 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
87b9c30a | 225 | |
226 | %description static | |
227 | Ruby static libraries. | |
228 | ||
a0a47c48 | 229 | %description static -l pl.UTF-8 |
87b9c30a | 230 | Biblioteki statyczne Ruby. |
231 | ||
754b419a | 232 | %package doc |
9fd96af7 | 233 | Summary: Ruby HTML documentation |
3c3949cf | 234 | Summary(pl.UTF-8): Dokumentacja HTML do Ruby |
9fd96af7 | 235 | Group: Documentation |
00595cdb ER |
236 | %if "%{_rpmversion}" >= "5" |
237 | BuildArch: noarch | |
238 | %endif | |
9fd96af7 | 239 | |
240 | %description doc | |
241 | Ruby HTML documentation: FAQ, guide, core and standard library. | |
242 | ||
a0a47c48 | 243 | %description doc -l pl.UTF-8 |
d99a4382 | 244 | Dokumentacja HTML do Ruby: FAQ, przewodnik, dokumentacja dla core i |
245 | stdlib. | |
69b51dc9 | 246 | |
9fd96af7 | 247 | %package doc-ri |
248 | Summary: Ruby ri documentation | |
3c3949cf | 249 | Summary(pl.UTF-8): Dokumentacja Ruby w formacie ri |
9fd96af7 | 250 | Group: Documentation |
69b51dc9 | 251 | Requires: %{name}-modules = %{epoch}:%{version}-%{release} |
00595cdb ER |
252 | %if "%{_rpmversion}" >= "5" |
253 | BuildArch: noarch | |
254 | %endif | |
9fd96af7 | 255 | |
256 | %description doc-ri | |
257 | Ruby ri documentation. | |
258 | ||
a0a47c48 | 259 | %description doc-ri -l pl.UTF-8 |
9fd96af7 | 260 | Dokumentacja Ruby w formacie ri. |
261 | ||
262 | %package examples | |
263 | Summary: Ruby examples | |
3c3949cf | 264 | Summary(pl.UTF-8): Przykłady dla języka Ruby |
9fd96af7 | 265 | Group: Development/Languages |
00595cdb ER |
266 | %if "%{_rpmversion}" >= "5" |
267 | BuildArch: noarch | |
268 | %endif | |
9fd96af7 | 269 | |
270 | %description examples | |
271 | Ruby examples. | |
272 | ||
a0a47c48 JR |
273 | %description examples -l pl.UTF-8 |
274 | Przykłady programów w języku Ruby. | |
9fd96af7 | 275 | |
d8228776 | 276 | # IMPORTANT: keep irb, rdoc, rubygems, rake, json as last packages as we reset epoch/version/release |
116a558f ER |
277 | # and %{version},%{release} macros may not be used directly as they take last |
278 | # subpackage value not main package one what you intend to use | |
63b8d212 | 279 | |
d8228776 ER |
280 | %package irb |
281 | Summary: The Interactive Ruby | |
282 | Version: %{irb_ver} | |
d8228776 ER |
283 | Release: %{basever}.%{patchlevel}.%{rel} |
284 | Epoch: 0 | |
c659b270 | 285 | Group: Development/Languages |
d8228776 ER |
286 | Requires: %{name}-modules = 1:%{basever}.%{patchlevel}-%{rel} |
287 | Provides: irb = %{version}-%{release} | |
288 | Provides: ruby(irb) = %{version}-%{release} | |
289 | %if "%{_rpmversion}" >= "5" | |
290 | BuildArch: noarch | |
291 | %endif | |
292 | ||
293 | %description irb | |
294 | The irb is acronym for Interactive Ruby. It evaluates ruby expression | |
295 | from the terminal. | |
296 | ||
2db0575e ER |
297 | %package rdoc |
298 | Summary: A tool to generate HTML and command-line documentation for Ruby projects | |
3349e6ba | 299 | Summary(pl.UTF-8): Narzędzie do generowania dokumentacji HTML i linii poleceń dla projektów w Rubym |
2db0575e | 300 | Version: %{rdoc_ver} |
45f22c60 | 301 | Release: %{basever}.%{patchlevel}.%{rel} |
2db0575e ER |
302 | Epoch: 0 |
303 | License: GPL v2 and Ruby and MIT | |
304 | Group: Development/Libraries | |
1a82b364 JR |
305 | Requires: %{name}-irb >= %{irb_ver} |
306 | Requires: %{name}-json >= %{json_ver} | |
14b99482 | 307 | Requires: %{name}-modules = 1:%{basever}.%{patchlevel}-%{rel} |
ee1edb11 | 308 | Obsoletes: rdoc <= 0.9.0 |
00595cdb ER |
309 | %if "%{_rpmversion}" >= "5" |
310 | BuildArch: noarch | |
311 | %endif | |
2db0575e ER |
312 | |
313 | %description rdoc | |
314 | RDoc produces HTML and command-line documentation for Ruby projects. | |
315 | RDoc includes the 'rdoc' and 'ri' tools for generating and displaying | |
316 | online documentation. | |
317 | ||
3349e6ba JB |
318 | %description rdoc -l pl.UTF-8 |
319 | RDoc tworzy dokumentację HTML i linii poleceń dla projektów w języku | |
320 | Ruby. RDoc zawiera narzędzia 'rdoc' i 'ri' do generowania i | |
321 | wyświetlania dokumentacji online. | |
322 | ||
44802bd7 | 323 | %package rubygems |
3349e6ba JB |
324 | Summary: RubyGems - the Ruby standard for packaging Ruby libraries |
325 | Summary(pl.UTF-8): RubyGems - standard Ruby'ego pakietowania bibliotek | |
941981c7 | 326 | Version: %{rubygems_ver} |
de9418ad | 327 | Release: %{basever}.%{patchlevel}.%{rel} |
bd4c2526 | 328 | Epoch: 0 |
941981c7 ER |
329 | License: Ruby or MIT |
330 | Group: Development/Libraries | |
116a558f | 331 | Requires: %{name}-modules = 1:%{basever}.%{patchlevel}-%{rel} |
941981c7 | 332 | Requires: %{name}-rdoc >= %{rdoc_ver} |
92f362b7 | 333 | Suggests: %{name}-devel |
44802bd7 ER |
334 | Provides: rubygems = %{rubygems_ver} |
335 | %if "%{_rpmversion}" >= "5" | |
336 | BuildArch: noarch | |
337 | %endif | |
338 | ||
339 | %description rubygems | |
340 | RubyGems is the Ruby standard for publishing and managing third party | |
341 | libraries. | |
342 | ||
3349e6ba JB |
343 | %description rubygems -l pl.UTF-8 |
344 | RubyGems to standardowe narzędzie języka Ruby do publikowania i | |
345 | zarządzania zewnętrznymi bibliotekami. | |
346 | ||
63b8d212 ER |
347 | %package rake |
348 | Summary: Rake is a Make-like program implemented in Ruby | |
349 | Summary(pl.UTF-8): Program typu Make dla języka Ruby | |
350 | Version: %{rake_ver} | |
351 | Release: %{basever}.%{patchlevel}.%{rel} | |
352 | Epoch: 0 | |
353 | License: MIT | |
354 | Group: Development/Languages | |
355 | Provides: rake = %{rake_ver} | |
2531db89 | 356 | Conflicts: ruby-modules < 1:1.9.3.429-2 |
63b8d212 ER |
357 | %if "%{_rpmversion}" >= "5" |
358 | BuildArch: noarch | |
359 | %endif | |
360 | ||
361 | %description rake | |
362 | Rake is a simple Ruby build program with capabilities similar to make. | |
363 | ||
364 | It has the following features: | |
365 | - Rakefiles (rake's version of Makefiles) are completely defined in | |
366 | standard Ruby syntax. No XML files to edit. No quirky Makefile syntax | |
367 | to worry about (is that a tab or a space?) | |
368 | - Users can specify tasks with prerequisites. | |
369 | - Rake supports rule patterns to synthesize implicit tasks. | |
370 | - Rake is lightweight. It can be distributed with other projects as a | |
371 | single file. Projects that depend upon rake do not require that rake | |
372 | be installed on target systems. | |
373 | ||
374 | %description rake -l pl.UTF-8 | |
375 | Rake to prosty program do budowania w języku Ruby o możliwościach | |
376 | podobnych do make. | |
377 | ||
378 | Ma następujące cechy: | |
379 | - Pliki Rakefile (rake'owa odmiana plików Makefile) są definiowane | |
380 | całkowicie w standardowej składni języka Ruby. Nie trzeba modyfikować | |
381 | plików XML. Nie trzeba martwić się kaprysami składni Makefile (czy to | |
382 | tabulacja czy spacja?). | |
383 | - Użytkownicy mogą określać zadania z ich zależnościami. | |
384 | - Rake obsługuje wzorce reguł do tworzenia z nich wynikowych zadań. | |
385 | - Rake jest lekki. Może być rozpowszechniany z innymi projektami jako | |
386 | pojedynczy plik. Projekty używające rake'a nie wymagają go | |
387 | zainstalowanego na systemach docelowych. | |
388 | ||
7e87bcc1 ER |
389 | %package json |
390 | Summary: JSON library for Ruby | |
391 | Summary(pl.UTF-8): Biblioteka JSON dla języka Ruby | |
392 | Version: %{json_ver} | |
393 | Release: %{basever}.%{patchlevel}.%{rel} | |
394 | Epoch: 0 | |
395 | License: MIT | |
396 | Group: Development/Languages | |
397 | Obsoletes: ruby-json-rubyforge | |
2531db89 | 398 | Conflicts: ruby-modules < 1:1.9.3.429-3 |
7e87bcc1 ER |
399 | |
400 | %description json | |
401 | This is a JSON implementation as a Ruby extension in C. | |
402 | ||
403 | %description json -l pl.UTF-8 | |
404 | Biblioteka JSON dla języka Ruby. | |
405 | ||
4ab119cd | 406 | %prep |
5a5c66dc | 407 | %setup -q -n %{oname}-%{basever}.%{patchlevel} -a1 -a2 -a3 %{?with_bootstrap:-a100} |
933aeb0e | 408 | %patch0 -p1 |
a310037a | 409 | %patch1 -p1 |
360c41c0 | 410 | %patch2 -p1 |
313c55d4 ER |
411 | %patch3 -p1 |
412 | %patch4 -p1 | |
1a83bc11 | 413 | %patch5 -p1 |
5a5c66dc ER |
414 | #%patch7 -p1 |
415 | #%patch8 -p1 | |
1a83bc11 | 416 | %patch9 -p1 |
5a5c66dc ER |
417 | #%patch10 -p1 |
418 | #%patch11 -p1 | |
a319cc02 | 419 | %patch12 -p1 |
360c41c0 JR |
420 | |
421 | # must be regenerated with new bison | |
422 | %{__rm} parse.{c,h} | |
4ab119cd | 423 | |
f52a91a3 ER |
424 | # Install custom operating_system.rb. |
425 | install -d lib/rubygems/defaults | |
426 | cp -p %{SOURCE6} lib/rubygems/defaults | |
427 | ||
b2f04116 JR |
428 | find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f |
429 | ||
430 | find -type f '(' -name '*.rb' -o -name '*.cgi' -o -name '*.test' \ | |
431 | -o -name 'ruby.1' -o -name '*.html' -o -name '*.tcl' ')' \ | |
bb5582fa | 432 | | xargs %{__sed} -i 's,/usr/local/bin/,%{_bindir}/,' |
e7754311 | 433 | |
4730786e ER |
434 | # no configure option to disable, so just rm |
435 | %{!?with_tk:rm -rf ext/tk} | |
436 | ||
4ab119cd | 437 | %build |
de9418ad ER |
438 | rubygems_ver=$(awk '/VERSION =/ && $1 == "VERSION" {print $3}' lib/rubygems.rb | xargs) |
439 | if [ $rubygems_ver != %{rubygems_ver} ]; then | |
440 | echo "Set %%define rubygems_ver to $rubygems_ver and re-run." | |
441 | exit 1 | |
442 | fi | |
593ae364 ER |
443 | rdoc_ver=$(awk '/VERSION =/ && $1 == "VERSION" {print $3}' lib/rdoc.rb | xargs) |
444 | if [ $rdoc_ver != %{rdoc_ver} ]; then | |
445 | echo "Set %%define rdoc_ver to $rdoc_ver and re-run." | |
446 | exit 1 | |
447 | fi | |
de9418ad | 448 | |
8ea447c1 | 449 | cp -f /usr/share/automake/config.sub . |
a5f9b7ff | 450 | |
92ff5331 | 451 | # build ruby-1.8.7 first |
452 | %if %{with bootstrap} | |
9c41e51a | 453 | cd %{oname}-1.8.7-p330 |
92ff5331 | 454 | %configure |
455 | %{__make} | |
456 | cd .. | |
457 | %endif | |
458 | ||
8ea447c1 | 459 | %{__autoconf} |
ecde9c47 | 460 | %configure \ |
9c41e51a ER |
461 | %{?with_bootstrap:--with-baseruby=%{oname}-1.8.7-p330/miniruby} \ |
462 | --program-suffix=%{ruby_suffix} \ | |
a319cc02 | 463 | --with-archlibdir=%{_libdir} \ |
45f22c60 ER |
464 | --with-rubygemsdir=%{rubygems_dir} \ |
465 | --with-rubylibprefix=%{ruby_libdir} \ | |
466 | --with-rubyarchprefix=%{ruby_archdir} \ | |
467 | --with-sitedir=%{ruby_sitelibdir} \ | |
44d1acb8 | 468 | --with-sitearchdir=%{ruby_sitearchdir} \ |
45f22c60 | 469 | --with-vendordir=%{ruby_vendorlibdir} \ |
44d1acb8 | 470 | --with-vendorarchdir=%{ruby_vendorarchdir} \ |
45f22c60 ER |
471 | --with-rubyhdrdir=%{_includedir}/%{oname}-%{ruby_version} \ |
472 | --with-rubyarchhdrdir=%{_includedir}/%{oname}-%{ruby_version} \ | |
473 | --with-sitearchhdrdir='$(sitehdrdir)/$(arch)' \ | |
474 | --with-vendorarchhdrdir='$(vendorhdrdir)/$(arch)' \ | |
3a4dd1f6 | 475 | --enable-shared \ |
374c5b6e | 476 | --enable-pthread \ |
45f22c60 | 477 | --enable-multiarch \ |
4e930057 | 478 | --disable-rubygems \ |
96c2e1a4 | 479 | --disable-install-doc \ |
1a83bc11 | 480 | --with-ruby-version='' \ |
4ab119cd | 481 | |
dbf8f91d | 482 | %{__make} -j1 main \ |
2690877c | 483 | COPY="cp -p" Q= \ |
9c41e51a | 484 | %{?with_bootstrap:BASERUBY="%{oname}-1.8.7-p330/miniruby -I./ruby-1.8.7-p330/lib"} |
aa58dbf5 | 485 | |
d0f5536d | 486 | %if %{with doc} |
98757242 | 487 | %{__make} -j1 rdoc |
d0f5536d | 488 | %endif |
53830491 | 489 | |
4ab119cd | 490 | %install |
491 | rm -rf $RPM_BUILD_ROOT | |
413a1967 | 492 | install -d $RPM_BUILD_ROOT{%{ruby_rdocdir},%{ruby_ridir}} \ |
bf0e52e2 | 493 | $RPM_BUILD_ROOT%{ruby_vendorarchdir} \ |
f1a7abab | 494 | $RPM_BUILD_ROOT%{ruby_vendorlibdir}/net \ |
08c2f6e5 | 495 | $RPM_BUILD_ROOT%{ruby_vendorlibdir}/data \ |
1968db6d | 496 | |
df9a7ee8 | 497 | %{__make} install %{?with_doc:install-doc -j1} \ |
ecde9c47 | 498 | DESTDIR=$RPM_BUILD_ROOT |
d041de24 | 499 | |
c24d5840 ER |
500 | # Version is empty if --with-ruby-version is specified. |
501 | # http://bugs.ruby-lang.org/issues/7807 | |
502 | sed -i -e 's/Version: \${ruby_version}/Version: %{ruby_version}/' $RPM_BUILD_ROOT%{_pkgconfigdir}/%{oname}-%{ruby_version}.pc | |
503 | ||
413a1967 | 504 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{oname}-%{basever}.%{patchlevel} |
8f46e138 | 505 | cp -Rf sample/* $RPM_BUILD_ROOT%{_examplesdir}/%{oname}-%{basever}.%{patchlevel} |
9c41e51a ER |
506 | cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_mandir}/man1/rdoc%{ruby_suffix}.1 |
507 | cp -p %{SOURCE5} $RPM_BUILD_ROOT%{_mandir}/man1/testrb%{ruby_suffix}.1 | |
18e966a7 | 508 | |
5c3d5a0e | 509 | %{__rm} -rf $RPM_BUILD_ROOT%{_docdir}/%{name}/html |
698147c7 | 510 | |
a6d548c5 | 511 | # detect this runtime, "make install" is affected by operating_system.rb what is installed in system! |
67038d8a | 512 | 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') |
a6d548c5 ER |
513 | |
514 | # Move gems root into common directory, out of Ruby directory structure. | |
515 | install -d $RPM_BUILD_ROOT%{gem_dir} | |
516 | mv $RPM_BUILD_ROOT${gem_dir}/{gems,specifications} $RPM_BUILD_ROOT%{gem_dir} | |
517 | ||
518 | # Move bundled rubygems to %gem_dir | |
519 | # make symlinks for io-console and bigdecimal, which are considered to be part of stdlib by other Gems | |
520 | # make symlinks for all packages, so they would work without rubygems | |
521 | # NOTE: when making symlinks, do not symlink paths that could be directories, | |
522 | # as there may came files from other packages as well. actually, unlikely as | |
523 | # the links to got system dir and only ruby may package there (other distro | |
c24d5840 | 524 | # packages should go to vendor dirs) |
a6d548c5 ER |
525 | install -d $RPM_BUILD_ROOT%{gem_dir}/gems/rake-%{rake_ver}/lib |
526 | mv $RPM_BUILD_ROOT%{ruby_libdir}/rake* $RPM_BUILD_ROOT%{gem_dir}/gems/rake-%{rake_ver}/lib | |
527 | ln -s %{gem_dir}/gems/rake-%{rake_ver}/lib/rake $RPM_BUILD_ROOT%{ruby_libdir} | |
528 | ln -s %{gem_dir}/gems/rake-%{rake_ver}/lib/rake.rb $RPM_BUILD_ROOT%{ruby_libdir} | |
529 | mv $RPM_BUILD_ROOT%{gem_dir}/specifications/default/rake-%{rake_ver}.gemspec $RPM_BUILD_ROOT%{gem_dir}/specifications | |
530 | ||
531 | install -d $RPM_BUILD_ROOT%{gem_dir}/gems/rdoc-%{rdoc_ver}/lib | |
532 | mv $RPM_BUILD_ROOT%{ruby_libdir}/rdoc* $RPM_BUILD_ROOT%{gem_dir}/gems/rdoc-%{rdoc_ver}/lib | |
533 | ln -s %{gem_dir}/gems/rdoc-%{rdoc_ver}/lib/rdoc $RPM_BUILD_ROOT%{ruby_libdir} | |
534 | ln -s %{gem_dir}/gems/rdoc-%{rdoc_ver}/lib/rdoc.rb $RPM_BUILD_ROOT%{ruby_libdir} | |
535 | mv $RPM_BUILD_ROOT%{gem_dir}/specifications/default/rdoc-%{rdoc_ver}.gemspec $RPM_BUILD_ROOT%{gem_dir}/specifications | |
536 | ||
537 | install -d $RPM_BUILD_ROOT%{gem_dir}/gems/bigdecimal-%{bigdecimal_ver}/lib | |
538 | install -d $RPM_BUILD_ROOT%{gem_libdir}/bigdecimal-%{bigdecimal_ver}/lib | |
539 | mv $RPM_BUILD_ROOT%{ruby_libdir}/bigdecimal $RPM_BUILD_ROOT%{gem_dir}/gems/bigdecimal-%{bigdecimal_ver}/lib | |
540 | mv $RPM_BUILD_ROOT%{ruby_libarchdir}/bigdecimal.so $RPM_BUILD_ROOT%{gem_libdir}/bigdecimal-%{bigdecimal_ver}/lib | |
541 | mv $RPM_BUILD_ROOT%{gem_dir}/specifications/default/bigdecimal-%{bigdecimal_ver}.gemspec $RPM_BUILD_ROOT%{gem_dir}/specifications | |
542 | ln -s %{gem_dir}/gems/bigdecimal-%{bigdecimal_ver}/lib/bigdecimal $RPM_BUILD_ROOT%{ruby_libdir}/bigdecimal | |
543 | ln -s %{gem_libdir}/bigdecimal-%{bigdecimal_ver}/lib/bigdecimal.so $RPM_BUILD_ROOT%{ruby_libarchdir}/bigdecimal.so | |
544 | ||
545 | install -d $RPM_BUILD_ROOT%{gem_dir}/gems/io-console-%{io_console_ver}/lib | |
546 | install -d $RPM_BUILD_ROOT%{gem_libdir}/io-console-%{io_console_ver}/lib/io | |
547 | mv $RPM_BUILD_ROOT%{ruby_libdir}/io $RPM_BUILD_ROOT%{gem_dir}/gems/io-console-%{io_console_ver}/lib | |
548 | mv $RPM_BUILD_ROOT%{ruby_libarchdir}/io/console.so $RPM_BUILD_ROOT%{gem_libdir}/io-console-%{io_console_ver}/lib/io | |
549 | mv $RPM_BUILD_ROOT%{gem_dir}/specifications/default/io-console-%{io_console_ver}.gemspec $RPM_BUILD_ROOT%{gem_dir}/specifications | |
550 | ln -s %{gem_dir}/gems/io-console-%{io_console_ver}/lib/io $RPM_BUILD_ROOT%{ruby_libdir}/io | |
551 | ln -s %{gem_libdir}/io-console-%{io_console_ver}/lib/io/console.so $RPM_BUILD_ROOT%{ruby_libarchdir}/io/console.so | |
552 | ||
553 | install -d $RPM_BUILD_ROOT%{gem_dir}/gems/json-%{json_ver}/lib | |
554 | install -d $RPM_BUILD_ROOT%{gem_libdir}/json-%{json_ver}/lib | |
555 | mv $RPM_BUILD_ROOT%{ruby_libdir}/json* $RPM_BUILD_ROOT%{gem_dir}/gems/json-%{json_ver}/lib | |
556 | mv $RPM_BUILD_ROOT%{ruby_libarchdir}/json $RPM_BUILD_ROOT%{gem_libdir}/json-%{json_ver}/lib | |
557 | mv $RPM_BUILD_ROOT%{gem_dir}/specifications/default/json-%{json_ver}.gemspec $RPM_BUILD_ROOT%{gem_dir}/specifications | |
558 | ln -s %{gem_dir}/gems/json-%{json_ver}/lib/json $RPM_BUILD_ROOT%{ruby_libdir}/json | |
559 | ln -s %{gem_dir}/gems/json-%{json_ver}/lib/json.rb $RPM_BUILD_ROOT%{ruby_libdir}/json.rb | |
560 | install -d $RPM_BUILD_ROOT%{ruby_libarchdir}/json/ext | |
561 | ln -s %{gem_libdir}/json-%{json_ver}/lib/json/ext/parser.so $RPM_BUILD_ROOT%{ruby_libarchdir}/json/ext | |
562 | ln -s %{gem_libdir}/json-%{json_ver}/lib/json/ext/generator.so $RPM_BUILD_ROOT%{ruby_libarchdir}/json/ext | |
563 | ||
564 | install -d $RPM_BUILD_ROOT%{gem_dir}/gems/minitest-%{minitest_ver}/lib | |
565 | mv $RPM_BUILD_ROOT%{ruby_libdir}/minitest $RPM_BUILD_ROOT%{gem_dir}/gems/minitest-%{minitest_ver}/lib | |
566 | ln -s %{gem_dir}/gems/minitest-%{minitest_ver}/lib/minitest $RPM_BUILD_ROOT%{ruby_libdir} | |
567 | mv $RPM_BUILD_ROOT%{gem_dir}/specifications/default/minitest-%{minitest_ver}.gemspec $RPM_BUILD_ROOT%{gem_dir}/specifications | |
568 | ||
569 | install -d $RPM_BUILD_ROOT%{gem_dir}/gems/test-unit-%{test_unit_ver}/lib | |
570 | install -d $RPM_BUILD_ROOT%{ruby_libdir}/test | |
571 | mv $RPM_BUILD_ROOT%{ruby_libdir}/test/unit $RPM_BUILD_ROOT%{gem_dir}/gems/test-unit-%{test_unit_ver}/lib | |
572 | ln -s %{gem_dir}/gems/test-unit-%{test_unit_ver}/lib/unit $RPM_BUILD_ROOT%{ruby_libdir}/test | |
573 | mv $RPM_BUILD_ROOT%{gem_dir}/specifications/default/test-unit-%{test_unit_ver}.gemspec $RPM_BUILD_ROOT%{gem_dir}/specifications | |
574 | ||
575 | install -d $RPM_BUILD_ROOT%{gem_dir}/gems/psych-%{psych_ver}/lib | |
576 | install -d $RPM_BUILD_ROOT%{gem_libdir}/psych-%{psych_ver}/lib | |
577 | mv $RPM_BUILD_ROOT%{ruby_libdir}/psych* $RPM_BUILD_ROOT%{gem_dir}/gems/psych-%{psych_ver}/lib | |
578 | mv $RPM_BUILD_ROOT%{ruby_libarchdir}/psych.so $RPM_BUILD_ROOT%{gem_libdir}/psych-%{psych_ver}/lib/ | |
579 | mv $RPM_BUILD_ROOT%{gem_dir}/specifications/default/psych-%{psych_ver}.gemspec $RPM_BUILD_ROOT%{gem_dir}/specifications | |
580 | ln -s %{gem_dir}/gems/psych-%{psych_ver}/lib/psych $RPM_BUILD_ROOT%{ruby_libdir}/psych | |
581 | ln -s %{gem_dir}/gems/psych-%{psych_ver}/lib/psych.rb $RPM_BUILD_ROOT%{ruby_libdir}/psych.rb | |
582 | ln -s %{gem_libdir}/psych-%{psych_ver}/lib/psych.so $RPM_BUILD_ROOT%{ruby_archdir}/psych.so | |
583 | ||
584 | # Adjust the gemspec files so that the gems will load properly | |
585 | sed -i '/^end$/ i\ | |
586 | s.require_paths = ["lib"]' $RPM_BUILD_ROOT%{gem_dir}/specifications/rake-%{rake_ver}.gemspec | |
587 | ||
588 | sed -i '/^end$/ i\ | |
589 | s.require_paths = ["lib"]' $RPM_BUILD_ROOT%{gem_dir}/specifications/rdoc-%{rdoc_ver}.gemspec | |
590 | ||
591 | sed -i '/^end$/ i\ | |
592 | s.require_paths = ["lib"]\ | |
593 | s.extensions = ["bigdecimal.so"]' $RPM_BUILD_ROOT%{gem_dir}/specifications/bigdecimal-%{bigdecimal_ver}.gemspec | |
594 | ||
595 | sed -i '/^end$/ i\ | |
596 | s.require_paths = ["lib"]\ | |
597 | s.extensions = ["io/console.so"]' $RPM_BUILD_ROOT%{gem_dir}/specifications/io-console-%{io_console_ver}.gemspec | |
598 | ||
599 | sed -i '/^end$/ i\ | |
600 | s.require_paths = ["lib"]\ | |
601 | s.extensions = ["json/ext/parser.so", "json/ext/generator.so"]' $RPM_BUILD_ROOT%{gem_dir}/specifications/json-%{json_ver}.gemspec | |
602 | ||
603 | sed -i '/^end$/ i\ | |
604 | s.require_paths = ["lib"]' $RPM_BUILD_ROOT%{gem_dir}/specifications/minitest-%{minitest_ver}.gemspec | |
605 | ||
9c41e51a | 606 | ln -sf %{gem_dir}/gems/rake-%{rake_ver}/bin/rake $RPM_BUILD_ROOT%{_bindir}/rake%{ruby_suffix} |
63b8d212 | 607 | |
15467dc7 | 608 | %if %{without batteries} |
b2f04116 | 609 | # packaged separately |
05f75f09 | 610 | %{__rm} -r $RPM_BUILD_ROOT%{ruby_libdir}/{rubygems,rake,json,minitest} |
0b1956f4 | 611 | %{__rm} -r $RPM_BUILD_ROOT%{ruby_archdir}/json |
7179288b | 612 | %{__rm} -r $RPM_BUILD_ROOT%{gem_dir}/gems/rake-* |
0b1956f4 | 613 | %{__rm} $RPM_BUILD_ROOT%{ruby_libdir}/{rake,rubygems,json}.rb |
92ff5331 | 614 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/{gem,rake} |
615 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/rake* | |
45f22c60 | 616 | %{__rm} $RPM_BUILD_ROOT%{gem_dir}/specifications/default/{json,minitest,rake}-*.gemspec |
7179288b | 617 | %{?with_doc:%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/ri/%{ruby_version}/system/JSON} |
15467dc7 | 618 | %endif |
1968db6d | 619 | |
44802bd7 | 620 | %if %{with doc} |
d78ec589 | 621 | # too much .ri |
2db0575e ER |
622 | %{__rm} $RPM_BUILD_ROOT%{ruby_ridir}/cache.ri |
623 | %{__rm} $RPM_BUILD_ROOT%{ruby_ridir}/created.rid | |
15467dc7 | 624 | %endif |
1968db6d | 625 | |
4ab119cd | 626 | %clean |
627 | rm -rf $RPM_BUILD_ROOT | |
628 | ||
d041de24 JR |
629 | %post -p /sbin/ldconfig |
630 | %postun -p /sbin/ldconfig | |
4ab119cd | 631 | |
632 | %files | |
633 | %defattr(644,root,root,755) | |
29a18971 | 634 | %doc NEWS LEGAL README README.EXT ChangeLog |
9c41e51a | 635 | %attr(755,root,root) %{_bindir}/ruby%{ruby_suffix} |
529ff870 | 636 | %attr(755,root,root) %{_libdir}/libruby.so.*.*.* |
eee72344 | 637 | %attr(755,root,root) %ghost %{_libdir}/libruby.so.%{ruby_version} |
9c41e51a | 638 | %{_mandir}/man1/ruby%{ruby_suffix}.1* |
05f75f09 | 639 | |
9c41e51a ER |
640 | %dir %{_libdir}/%{oname} |
641 | %dir %{_libdir}/%{oname}/%{vendordir} | |
642 | %dir %{_datadir}/%{oname} | |
0b1956f4 | 643 | |
be8e7b24 | 644 | %dir %{ruby_libdir} |
5c3d5a0e | 645 | %dir %{ruby_archdir} |
be8e7b24 | 646 | %dir %{ruby_vendorlibdir} |
be8e7b24 | 647 | %dir %{ruby_vendorarchdir} |
31058abe | 648 | |
df9a7ee8 | 649 | %dir %{dirname:%{ruby_ridir}} |
2db0575e | 650 | %dir %{ruby_ridir} |
a43d66d8 | 651 | %dir %{ruby_rdocdir} |
9fd96af7 | 652 | |
f1a7abab | 653 | # common dirs for ruby vendor modules |
08c2f6e5 | 654 | %dir %{ruby_vendorlibdir}/data |
f1a7abab ER |
655 | %dir %{ruby_vendorlibdir}/net |
656 | ||
9fd96af7 | 657 | %files devel |
658 | %defattr(644,root,root,755) | |
529ff870 | 659 | %attr(755,root,root) %{_libdir}/libruby.so |
9c41e51a | 660 | %{_includedir}/%{oname}-%{ruby_version} |
c24d5840 | 661 | %{_pkgconfigdir}/%{oname}-%{ruby_version}.pc |
b5465d0c | 662 | %{ruby_libdir}/mkmf.rb |
9fd96af7 | 663 | |
664 | %files static | |
665 | %defattr(644,root,root,755) | |
529ff870 | 666 | %{_libdir}/libruby-static.a |
9fd96af7 | 667 | |
15ecb21e | 668 | %if %{with tk} |
9fd96af7 | 669 | %files tk |
670 | %defattr(644,root,root,755) | |
0b1956f4 ER |
671 | %{ruby_libdir}/tcltk.rb |
672 | %{ruby_libdir}/tk*.rb | |
673 | %{ruby_libdir}/tk | |
674 | %{ruby_libdir}/tkextlib | |
675 | %attr(755,root,root) %{ruby_archdir}/t*.so | |
15ecb21e | 676 | %endif |
9fd96af7 | 677 | |
d8228776 ER |
678 | %files irb |
679 | %defattr(644,root,root,755) | |
9c41e51a | 680 | %attr(755,root,root) %{_bindir}/irb%{ruby_suffix} |
d8228776 ER |
681 | %{ruby_libdir}/irb.rb |
682 | %{ruby_libdir}/irb | |
9c41e51a | 683 | %{_mandir}/man1/irb%{ruby_suffix}.1* |
d8228776 | 684 | |
2db0575e | 685 | %files rdoc |
9fd96af7 | 686 | %defattr(644,root,root,755) |
9c41e51a ER |
687 | %attr(755,root,root) %{_bindir}/rdoc%{ruby_suffix} |
688 | %attr(755,root,root) %{_bindir}/ri%{ruby_suffix} | |
689 | %{_mandir}/man1/rdoc%{ruby_suffix}.1* | |
2db0575e ER |
690 | %{ruby_libdir}/rdoc |
691 | %dir %{gem_dir}/gems/rdoc-%{rdoc_ver} | |
a6d548c5 | 692 | %{gem_dir}/gems/rdoc-%{rdoc_ver}/lib |
2db0575e ER |
693 | %dir %{gem_dir}/gems/rdoc-%{rdoc_ver}/bin |
694 | %attr(755,root,root) %{gem_dir}/gems/rdoc-%{rdoc_ver}/bin/rdoc | |
695 | %{gem_dir}/specifications/rdoc-%{rdoc_ver}.gemspec | |
696 | %attr(755,root,root) %{gem_dir}/gems/rdoc-%{rdoc_ver}/bin/ri | |
697 | ||
44802bd7 ER |
698 | %if %{with batteries} |
699 | %files rubygems | |
941981c7 | 700 | %defattr(644,root,root,755) |
9c41e51a | 701 | %attr(755,root,root) %{_bindir}/gem%{ruby_suffix} |
f493239c ER |
702 | %{rubygems_dir}/rubygems |
703 | %{rubygems_dir}/rubygems.rb | |
704 | %{rubygems_dir}/ubygems.rb | |
45f22c60 | 705 | %{rubygems_dir}/rbconfig |
63b8d212 ER |
706 | |
707 | %files rake | |
708 | %defattr(644,root,root,755) | |
9c41e51a ER |
709 | %attr(755,root,root) %{_bindir}/rake%{ruby_suffix} |
710 | %{_mandir}/man1/rake%{ruby_suffix}.1* | |
63b8d212 | 711 | %{ruby_libdir}/rake |
05bcc29a | 712 | %{ruby_libdir}/rake.rb |
63b8d212 | 713 | %dir %{gem_dir}/gems/rake-%{rake_ver} |
a6d548c5 | 714 | %{gem_dir}/gems/rake-%{rake_ver}/lib |
63b8d212 ER |
715 | %dir %{gem_dir}/gems/rake-%{rake_ver}/bin |
716 | %attr(755,root,root) %{gem_dir}/gems/rake-%{rake_ver}/bin/rake | |
717 | %{gem_dir}/specifications/rake-%{rake_ver}.gemspec | |
7e87bcc1 ER |
718 | |
719 | %files json | |
720 | %defattr(644,root,root,755) | |
721 | %{ruby_libdir}/json | |
722 | %dir %{ruby_archdir}/json | |
723 | %dir %{ruby_archdir}/json/ext | |
724 | %attr(755,root,root) %{ruby_archdir}/json/ext/*.so | |
a6d548c5 ER |
725 | |
726 | %dir %{gem_libdir}/json-%{json_ver} | |
727 | %dir %{gem_libdir}/json-%{json_ver}/lib | |
728 | %dir %{gem_libdir}/json-%{json_ver}/lib/json | |
729 | %dir %{gem_libdir}/json-%{json_ver}/lib/json/ext | |
730 | %attr(755,root,root) %{gem_libdir}/json-%{json_ver}/lib/json/ext/generator.so | |
731 | %attr(755,root,root) %{gem_libdir}/json-%{json_ver}/lib/json/ext/parser.so | |
732 | ||
733 | %{gem_dir}/gems/json-%{json_ver} | |
7e87bcc1 | 734 | %{gem_dir}/specifications/json-%{json_ver}.gemspec |
44802bd7 ER |
735 | %endif |
736 | ||
9fd96af7 | 737 | %files modules |
738 | %defattr(644,root,root,755) | |
9c41e51a | 739 | %attr(755,root,root) %{_bindir}/erb%{ruby_suffix} |
0b1956f4 ER |
740 | %{ruby_libdir}/cgi |
741 | %{ruby_libdir}/date | |
742 | %{ruby_libdir}/digest | |
743 | %{ruby_libdir}/dl | |
744 | %{ruby_libdir}/drb | |
745 | %{ruby_libdir}/fiddle | |
746 | %{ruby_libdir}/io | |
0b1956f4 | 747 | %{ruby_libdir}/matrix |
0b1956f4 ER |
748 | %{ruby_libdir}/net |
749 | %{ruby_libdir}/openssl | |
750 | %{ruby_libdir}/optparse | |
0b1956f4 ER |
751 | %{ruby_libdir}/racc |
752 | %{ruby_libdir}/rbconfig | |
0b1956f4 ER |
753 | %{ruby_libdir}/rexml |
754 | %{ruby_libdir}/rinda | |
755 | %{ruby_libdir}/ripper | |
756 | %{ruby_libdir}/rss | |
757 | %{ruby_libdir}/shell | |
45f22c60 ER |
758 | #%{ruby_libdir}/syck |
759 | %{ruby_libdir}/syslog | |
0b1956f4 ER |
760 | %{ruby_libdir}/test |
761 | %{ruby_libdir}/uri | |
762 | %{ruby_libdir}/webrick | |
763 | %{ruby_libdir}/xmlrpc | |
764 | %{ruby_libdir}/yaml | |
ba0bcd1d ER |
765 | |
766 | %{ruby_libdir}/English.rb | |
767 | %{ruby_libdir}/abbrev.rb | |
768 | %{ruby_libdir}/base64.rb | |
769 | %{ruby_libdir}/benchmark.rb | |
770 | %{ruby_libdir}/cgi.rb | |
771 | %{ruby_libdir}/cmath.rb | |
772 | %{ruby_libdir}/complex.rb | |
773 | %{ruby_libdir}/csv.rb | |
774 | %{ruby_libdir}/date.rb | |
775 | %{ruby_libdir}/debug.rb | |
776 | %{ruby_libdir}/delegate.rb | |
777 | %{ruby_libdir}/digest.rb | |
778 | %{ruby_libdir}/dl.rb | |
779 | %{ruby_libdir}/drb.rb | |
780 | %{ruby_libdir}/e2mmap.rb | |
781 | %{ruby_libdir}/erb.rb | |
782 | %{ruby_libdir}/expect.rb | |
783 | %{ruby_libdir}/fiddle.rb | |
784 | %{ruby_libdir}/fileutils.rb | |
785 | %{ruby_libdir}/find.rb | |
786 | %{ruby_libdir}/forwardable.rb | |
787 | %{ruby_libdir}/getoptlong.rb | |
788 | %{ruby_libdir}/gserver.rb | |
789 | %{ruby_libdir}/ipaddr.rb | |
790 | %{ruby_libdir}/json.rb | |
791 | %{ruby_libdir}/kconv.rb | |
792 | %{ruby_libdir}/logger.rb | |
793 | %{ruby_libdir}/mathn.rb | |
794 | %{ruby_libdir}/matrix.rb | |
795 | %{ruby_libdir}/monitor.rb | |
796 | %{ruby_libdir}/mutex_m.rb | |
797 | %{ruby_libdir}/observer.rb | |
798 | %{ruby_libdir}/open-uri.rb | |
799 | %{ruby_libdir}/open3.rb | |
800 | %{ruby_libdir}/openssl.rb | |
801 | %{ruby_libdir}/optparse.rb | |
802 | %{ruby_libdir}/ostruct.rb | |
803 | %{ruby_libdir}/pathname.rb | |
804 | %{ruby_libdir}/pp.rb | |
805 | %{ruby_libdir}/prettyprint.rb | |
806 | %{ruby_libdir}/prime.rb | |
807 | %{ruby_libdir}/profile.rb | |
808 | %{ruby_libdir}/profiler.rb | |
809 | %{ruby_libdir}/pstore.rb | |
810 | %{ruby_libdir}/psych.rb | |
811 | %{ruby_libdir}/rational.rb | |
812 | %{ruby_libdir}/rdoc.rb | |
813 | %{ruby_libdir}/resolv-replace.rb | |
814 | %{ruby_libdir}/resolv.rb | |
815 | %{ruby_libdir}/ripper.rb | |
816 | %{ruby_libdir}/rss.rb | |
817 | %{ruby_libdir}/scanf.rb | |
818 | %{ruby_libdir}/securerandom.rb | |
819 | %{ruby_libdir}/set.rb | |
820 | %{ruby_libdir}/shell.rb | |
821 | %{ruby_libdir}/shellwords.rb | |
822 | %{ruby_libdir}/singleton.rb | |
823 | %{ruby_libdir}/socket.rb | |
824 | %{ruby_libdir}/sync.rb | |
0b1956f4 | 825 | %{ruby_libdir}/tempfile.rb |
0b1956f4 ER |
826 | %{ruby_libdir}/thwait.rb |
827 | %{ruby_libdir}/time.rb | |
828 | %{ruby_libdir}/timeout.rb | |
829 | %{ruby_libdir}/tmpdir.rb | |
830 | %{ruby_libdir}/tracer.rb | |
831 | %{ruby_libdir}/tsort.rb | |
05bcc29a ER |
832 | %{ruby_libdir}/un.rb |
833 | %{ruby_libdir}/uri.rb | |
834 | %{ruby_libdir}/weakref.rb | |
835 | %{ruby_libdir}/webrick.rb | |
836 | %{ruby_libdir}/xmlrpc.rb | |
837 | %{ruby_libdir}/yaml.rb | |
ba0bcd1d | 838 | |
7179288b | 839 | %if %{with batteries} |
44802bd7 ER |
840 | %exclude %{ruby_libdir}/rubygems.rb |
841 | %exclude %{ruby_libdir}/ubygems.rb | |
ed7247e0 ER |
842 | %exclude %{ruby_libdir}/rbconfig/datadir.rb |
843 | %exclude %{ruby_libdir}/rbconfig/obsolete.rb | |
7179288b | 844 | %endif |
d8228776 | 845 | %exclude %{ruby_libdir}/irb.rb |
b5465d0c | 846 | %exclude %{ruby_libdir}/mkmf.rb |
05bcc29a ER |
847 | %exclude %{ruby_libdir}/rake.rb |
848 | ||
849 | %{ruby_archdir}/rbconfig.rb | |
850 | %attr(755,root,root) %{ruby_archdir}/bigdecimal.so | |
851 | %attr(755,root,root) %{ruby_archdir}/continuation.so | |
852 | %attr(755,root,root) %{ruby_archdir}/coverage.so | |
a319cc02 | 853 | #%attr(755,root,root) %{ruby_archdir}/curses.so |
05bcc29a ER |
854 | %attr(755,root,root) %{ruby_archdir}/date_core.so |
855 | %attr(755,root,root) %{ruby_archdir}/dbm.so | |
856 | %attr(755,root,root) %{ruby_archdir}/digest.so | |
857 | %attr(755,root,root) %{ruby_archdir}/dl.so | |
858 | %attr(755,root,root) %{ruby_archdir}/etc.so | |
859 | %attr(755,root,root) %{ruby_archdir}/fcntl.so | |
860 | %attr(755,root,root) %{ruby_archdir}/fiber.so | |
861 | %attr(755,root,root) %{ruby_archdir}/fiddle.so | |
862 | %attr(755,root,root) %{ruby_archdir}/gdbm.so | |
863 | %attr(755,root,root) %{ruby_archdir}/nkf.so | |
864 | %attr(755,root,root) %{ruby_archdir}/objspace.so | |
865 | %attr(755,root,root) %{ruby_archdir}/openssl.so | |
866 | %attr(755,root,root) %{ruby_archdir}/pathname.so | |
867 | %attr(755,root,root) %{ruby_archdir}/psych.so | |
868 | %attr(755,root,root) %{ruby_archdir}/pty.so | |
869 | %attr(755,root,root) %{ruby_archdir}/readline.so | |
870 | %attr(755,root,root) %{ruby_archdir}/ripper.so | |
a319cc02 | 871 | %attr(755,root,root) %{ruby_archdir}/thread.so |
05bcc29a ER |
872 | %attr(755,root,root) %{ruby_archdir}/sdbm.so |
873 | %attr(755,root,root) %{ruby_archdir}/socket.so | |
874 | %attr(755,root,root) %{ruby_archdir}/stringio.so | |
875 | %attr(755,root,root) %{ruby_archdir}/strscan.so | |
876 | %attr(755,root,root) %{ruby_archdir}/syslog.so | |
877 | %attr(755,root,root) %{ruby_archdir}/zlib.so | |
878 | ||
0b1956f4 ER |
879 | %dir %{ruby_archdir}/digest |
880 | %attr(755,root,root) %{ruby_archdir}/digest/*.so | |
881 | %dir %{ruby_archdir}/dl | |
882 | %attr(755,root,root) %{ruby_archdir}/dl/callback.so | |
883 | %dir %{ruby_archdir}/enc | |
884 | %attr(755,root,root) %{ruby_archdir}/enc/*.so | |
885 | %dir %{ruby_archdir}/enc/trans | |
886 | %attr(755,root,root) %{ruby_archdir}/enc/trans/*.so | |
887 | %dir %{ruby_archdir}/io | |
888 | %attr(755,root,root) %{ruby_archdir}/io/*.so | |
0b1956f4 ER |
889 | %dir %{ruby_archdir}/mathn |
890 | %attr(755,root,root) %{ruby_archdir}/mathn/*.so | |
891 | %dir %{ruby_archdir}/racc | |
892 | %attr(755,root,root) %{ruby_archdir}/racc/*.so | |
a319cc02 ER |
893 | %dir %{ruby_archdir}/rbconfig |
894 | %attr(755,root,root) %{ruby_archdir}/rbconfig/sizeof.so | |
31058abe | 895 | |
a6d548c5 | 896 | # bigdecimal |
ee1edb11 | 897 | %{gem_dir}/specifications/bigdecimal-%{bigdecimal_ver}.gemspec |
a6d548c5 ER |
898 | %{gem_dir}/gems/bigdecimal-%{bigdecimal_ver} |
899 | %dir %{gem_libdir}/bigdecimal-%{bigdecimal_ver} | |
900 | %dir %{gem_libdir}/bigdecimal-%{bigdecimal_ver}/lib | |
901 | %attr(755,root,root) %{gem_libdir}/bigdecimal-%{bigdecimal_ver}/lib/bigdecimal.so | |
902 | %{ruby_libdir}/bigdecimal | |
903 | ||
904 | %dir %{_libdir}/gems | |
905 | %dir %{_libdir}/gems/%{oname} | |
906 | ||
907 | # io-console | |
ee1edb11 | 908 | %{gem_dir}/specifications/io-console-%{io_console_ver}.gemspec |
a6d548c5 ER |
909 | %{gem_dir}/gems/io-console-%{io_console_ver} |
910 | %dir %{gem_libdir}/io-console-%{io_console_ver} | |
911 | %dir %{gem_libdir}/io-console-%{io_console_ver}/lib | |
912 | %dir %{gem_libdir}/io-console-%{io_console_ver}/lib/io | |
913 | %attr(755,root,root) %{gem_libdir}/io-console-%{io_console_ver}/lib/io/console.so | |
ee1edb11 | 914 | |
05f75f09 | 915 | %if %{with batteries} |
05f75f09 ER |
916 | # minitest |
917 | %{ruby_libdir}/minitest | |
a6d548c5 | 918 | %{gem_dir}/gems/minitest-%{minitest_ver} |
05f75f09 | 919 | %{gem_dir}/specifications/minitest-%{minitest_ver}.gemspec |
05f75f09 ER |
920 | %endif |
921 | ||
a6d548c5 ER |
922 | %{gem_dir}/specifications/psych-%{psych_ver}.gemspec |
923 | %{gem_dir}/gems/psych-%{psych_ver} | |
924 | %{ruby_libdir}/psych | |
925 | %dir %{gem_libdir}/psych-%{psych_ver} | |
926 | %dir %{gem_libdir}/psych-%{psych_ver}/lib | |
927 | %attr(755,root,root) %{gem_libdir}/psych-%{psych_ver}/lib/psych.so | |
45f22c60 ER |
928 | |
929 | # test-unit | |
a6d548c5 | 930 | %{gem_dir}/specifications/test-unit-%{test_unit_ver}.gemspec |
45f22c60 | 931 | %dir %{gem_dir}/gems/test-unit-%{test_unit_ver} |
a6d548c5 | 932 | %{gem_dir}/gems/test-unit-%{test_unit_ver}/lib |
45f22c60 ER |
933 | %dir %{gem_dir}/gems/test-unit-%{test_unit_ver}/bin |
934 | %attr(755,root,root) %{gem_dir}/gems/test-unit-%{test_unit_ver}/bin/testrb | |
a6d548c5 ER |
935 | %attr(755,root,root) %{_bindir}/testrb%{ruby_suffix} |
936 | %{_mandir}/man1/testrb%{ruby_suffix}.1* | |
31058abe | 937 | |
d78ec589 | 938 | %dir %{gem_dir} |
a6d548c5 | 939 | %dir %{gem_dir}/gems |
d78ec589 | 940 | %dir %{gem_dir}/specifications |
45f22c60 | 941 | %dir %{gem_dir}/specifications/default |
9c41e51a ER |
942 | %{_mandir}/man1/erb%{ruby_suffix}.1* |
943 | %{_mandir}/man1/ri%{ruby_suffix}.1* | |
15467dc7 | 944 | |
9fd96af7 | 945 | %files doc |
9434194f | 946 | %defattr(644,root,root,755) |
b2f04116 | 947 | %doc ruby-doc-bundle/* |
af4f9d38 JR |
948 | %{?with_doc:%doc ruby_%{doc_version}_stdlib} |
949 | %{?with_doc:%doc ruby_%{doc_version}_core} | |
87b9c30a | 950 | |
d0f5536d | 951 | %if %{with doc} |
9fd96af7 | 952 | %files doc-ri |
e40bfe06 | 953 | %defattr(644,root,root,755) |
2db0575e | 954 | %{ruby_ridir}/* |
d0f5536d | 955 | %endif |
265d0efe | 956 | |
9fd96af7 | 957 | %files examples |
616a12d8 | 958 | %defattr(644,root,root,755) |
8f46e138 | 959 | %{_examplesdir}/%{oname}-* |