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