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