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