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