]>
Commit | Line | Data |
---|---|---|
e99f31df | 1 | # |
198b2d1a | 2 | # TODO: |
198b2d1a JR |
3 | # - include ext/ in docs |
4 | # - replace ri with fastri | |
5 | # - patch ri to search multiple indexes (one per package), so RPMs can | |
6 | # install ri docs | |
7 | # | |
2acc5f17 | 8 | # Conditional build: |
bc991d5a | 9 | %bcond_without doc # skip (time-consuming) docs generating; intended for speed up test builds |
bc991d5a | 10 | %bcond_without tk # skip building package with Tk bindings |
a530aef0 | 11 | %bcond_without batteries # Don't include rubygems, json or rake |
92ff5331 | 12 | %bcond_with bootstrap # build bootstrap version |
fa311386 | 13 | |
374c5b6e | 14 | %define ruby_ver 1.9 |
af4f9d38 | 15 | %define basever 1.9.3 |
fa311386 | 16 | %define patchlevel 392 |
ee1a9db5 | 17 | %define doc_version 1_9_3 |
fa311386 | 18 | %define json_ver 1.5.5 |
fc97a6ea JR |
19 | %define rake_ver 0.9.2.2 |
20 | %define rubygems_ver 1.8.11 | |
21 | %define minitest_ver 2.5.1 | |
fa311386 | 22 | %define rdoc_ver 3.9.5 |
6e2f9b3c | 23 | Summary: Ruby - interpreted scripting language |
3c3949cf ER |
24 | Summary(ja.UTF-8): オブジェクト指向言語Rubyインタプリタ |
25 | Summary(pl.UTF-8): Ruby - interpretowany język skryptowy | |
26 | Summary(pt_BR.UTF-8): Linguagem de script orientada a objeto | |
27 | Summary(zh_CN.UTF-8): ruby - 一种快速高效的面向对象脚本编程语言 | |
4ab119cd | 28 | Name: ruby |
6cd63ddf | 29 | Version: %{basever}.%{patchlevel} |
fa311386 | 30 | Release: 1 |
01204e8f | 31 | Epoch: 1 |
0a23e00f | 32 | License: The Ruby License |
6eb17ef6 | 33 | Group: Development/Languages |
2690877c | 34 | Source0: ftp://ftp.ruby-lang.org/pub/ruby/%{ruby_ver}/%{name}-%{basever}-p%{patchlevel}.tar.bz2 |
775b0723 | 35 | # Source0-md5: a810d64e2255179d2f334eb61fb8519c |
ef29702a | 36 | Source1: http://www.ruby-doc.org/download/%{name}-doc-bundle.tar.gz |
775b0723 | 37 | # Source1-md5: ad1af0043be98ba1a4f6d0185df63876 |
af4f9d38 | 38 | Source2: http://www.ruby-doc.org/downloads/%{name}_%{doc_version}_stdlib_rdocs.tgz |
775b0723 | 39 | # Source2-md5: ec622612428672c432b6f65dd31a84b5 |
af4f9d38 | 40 | Source3: http://www.ruby-doc.org/downloads/%{name}_%{doc_version}_core_rdocs.tgz |
775b0723 | 41 | # Source3-md5: 1892aadde51d36106c513bced2193dff |
92ff5331 | 42 | Source100: ftp://ftp.ruby-lang.org/pub/ruby/1.8/%{name}-1.8.7-p330.tar.gz |
43 | # Source100-md5: 50a49edb787211598d08e756e733e42e | |
af4f9d38 | 44 | Source4: rdoc.1 |
af4f9d38 JR |
45 | Source5: testrb.1 |
46 | Source6: %{name}-mode-init.el | |
fc97a6ea JR |
47 | Patch0: %{name}-lib64.patch |
48 | Patch1: %{name}-ffs.patch | |
360c41c0 | 49 | Patch2: fix-bison-invocation.patch |
7c36cd5d | 50 | URL: http://www.ruby-lang.org/ |
19b741fe | 51 | BuildRequires: autoconf >= 2.60 |
53c95475 | 52 | BuildRequires: automake |
cc4f6b84 | 53 | BuildRequires: bison |
f0eb2dd9 | 54 | BuildRequires: db-devel |
e9f2c6fe | 55 | BuildRequires: gdbm-devel >= 1.8.3 |
9ae7df75 | 56 | BuildRequires: libffi-devel |
1968db6d | 57 | BuildRequires: ncurses-devel |
f33fb184 | 58 | BuildRequires: openssl-devel |
74c8af09 | 59 | BuildRequires: pkgconfig |
933aeb0e | 60 | BuildRequires: readline-devel >= 4.2 |
92ff5331 | 61 | %{!?with_bootstrap:BuildRequires: ruby-modules} |
7911cce0 | 62 | BuildRequires: sed >= 4.0 |
92ff5331 | 63 | BuildRequires: yaml-devel |
15ecb21e | 64 | %if %{with tk} |
e14a2f74 | 65 | BuildRequires: tk-devel |
15ecb21e | 66 | %endif |
f0eb2dd9 | 67 | Requires(post,postun): /sbin/ldconfig |
68ec864f | 68 | Provides: ruby(ver) = %{ruby_ver} |
ecce1c8a | 69 | Obsoletes: rdoc |
e14a2f74 | 70 | Obsoletes: ruby-REXML |
bb5582fa | 71 | Obsoletes: ruby-doc < 1.8.4 |
1be6ffc9 | 72 | Obsoletes: ruby-fastthread |
ada7d096 | 73 | %if %{with batteries} |
c4ef2b1c JR |
74 | Provides: json = %{json_ver} |
75 | Provides: rake = %{rake_ver} | |
fc97a6ea | 76 | Provides: ruby-json = %{json_ver} |
bc991d5a | 77 | Provides: ruby-rake = %{rake_ver} |
fc97a6ea | 78 | Provides: ruby-rubygems = %{rubygems_ver} |
2690877c | 79 | Provides: rubygems = %{rubygems_ver} |
ada7d096 JB |
80 | Obsoletes: ruby-json |
81 | Obsoletes: ruby-rake | |
82 | Obsoletes: ruby-rubygems | |
83 | %endif | |
a2963aa1 JR |
84 | Conflicts: ruby-activesupport < 2.3.11-2 |
85 | Conflicts: ruby-activesupport2 < 2.3.11-2 | |
584b8bcb | 86 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
4ab119cd | 87 | |
8ea447c1 | 88 | # bleh, some nasty (gcc or ruby) bug still not fixed |
cc2dcaa2 | 89 | # (SEGV or "unexpected break" on miniruby run during build) |
8ea447c1 JB |
90 | %define specflags_ia64 -O0 |
91 | ||
88546731 | 92 | # ruby needs frame pointers for correct exception handling |
b66203d6 | 93 | %define specflags_ia32 -fno-omit-frame-pointer |
88546731 | 94 | |
4ab119cd | 95 | %description |
96 | Ruby is the interpreted scripting language for quick and easy | |
97 | object-oriented programming. It has many features to process text | |
98 | files and to do system management tasks (as in Perl). It is simple, | |
99 | straight-forward, extensible, and portable. | |
100 | ||
9fd96af7 | 101 | This package contains only shared library and ruby interpreter. To get |
102 | full-functional ruby environment install ruby-modules package. | |
103 | ||
a0a47c48 JR |
104 | %description -l ja.UTF-8 |
105 | Rubyはシンプルかつ強力なオブジェクト指向スクリプト言語です.Rubyは最初 | |
106 | から純粋なオブジェクト指向言語として設計されていますから,オブジェクト | |
15467dc7 | 107 | 指向プログラミングを手軽に行う事が出来ます.もちろん通常の手続き型のプ ログラミングも可能です. |
7c36cd5d | 108 | |
a0a47c48 JR |
109 | %description -l pl.UTF-8 |
110 | Ruby to interpretowany język skryptowy, w sam raz dla łatwego i | |
111 | szybkiego pisania zorientowanych obiektowo programów. Ma wiele funkcji | |
112 | ułatwiających przetwarzanie plików tekstowych i wykonywanie prac | |
113 | związanych z zarządzaniem systemu (podobnie jak Perl). Jest prosty, | |
114 | rozszerzalny i przenośny. | |
6e2f9b3c | 115 | |
a0a47c48 JR |
116 | Ten pakiet zawiera tylko bibliotekę dzieloną i interpreter ruby. |
117 | Zainstaluj pakiet ruby-modules, jeżeli potrzebujesz w pełni | |
118 | funkcjonalnego środowiska ruby. | |
9fd96af7 | 119 | |
a0a47c48 JR |
120 | %description -l pt_BR.UTF-8 |
121 | Ruby é uma linguagem de script interpretada de programação orientada a | |
122 | objeto. Possui diversas características para processamento de texto. É | |
123 | simples, extensível e direta. | |
7c36cd5d | 124 | |
9fd96af7 | 125 | %package modules |
126 | Summary: Ruby standard modules and utilities | |
3c3949cf | 127 | Summary(pl.UTF-8): Standardowe moduły i narzędzia dla języka Ruby |
9fd96af7 | 128 | Group: Development/Languages |
129 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
56ca5a3b JR |
130 | # workaround for autodep generator net getting version properly |
131 | Provides: ruby(abi) = %{ruby_ver} | |
68ec864f | 132 | Provides: ruby-modules(ver) = %{ruby_ver} |
816fcc98 | 133 | Obsoletes: ruby-minitest |
9fd96af7 | 134 | |
135 | %description modules | |
136 | Ruby standard modules and utilities: | |
137 | - erb - Tiny eRuby | |
138 | - rdoc - documentation tool for source code | |
139 | - irb - interactive Ruby | |
140 | - ri - Ruby interactive reference | |
7911cce0 | 141 | - testrb - automatic runner for Test::Unit of Ruby |
9fd96af7 | 142 | |
a0a47c48 JR |
143 | %description modules -l pl.UTF-8 |
144 | Standardowe moduły i narzędzia Ruby: | |
145 | - erb - mały eRuby | |
146 | - rdoc - narzędzie do dokumentowania kodu źródłowego | |
9fd96af7 | 147 | - irb - interaktywny Ruby |
148 | - ri - interaktywna dokumentacja Ruby | |
7911cce0 | 149 | - testrb - automatyczny runner dla Ruby Test::Unit |
9fd96af7 | 150 | |
265d0efe | 151 | %package tk |
152 | Summary: Ruby/Tk bindings | |
3c3949cf | 153 | Summary(pl.UTF-8): Wiązania Ruby/Tk |
e65aac33 | 154 | Group: Development/Languages |
69b51dc9 | 155 | Requires: %{name}-modules = %{epoch}:%{version}-%{release} |
265d0efe | 156 | |
157 | %description tk | |
e65aac33 | 158 | This pachage contains Ruby/Tk bindings. |
159 | ||
a0a47c48 JR |
160 | %description tk -l pl.UTF-8 |
161 | Ten pakiet zawiera wiązania Ruby/Tk. | |
265d0efe | 162 | |
e14a2f74 | 163 | %package devel |
e14a2f74 | 164 | Summary: Ruby development libraries |
3c3949cf | 165 | Summary(pl.UTF-8): Biblioteki programistyczne interpretera języka Ruby |
9434194f | 166 | Group: Development/Languages |
9fd96af7 | 167 | Requires: %{name}-modules = %{epoch}:%{version}-%{release} |
e14a2f74 | 168 | |
169 | %description devel | |
9434194f JB |
170 | Ruby development libraries. |
171 | ||
a0a47c48 JR |
172 | %description devel -l pl.UTF-8 |
173 | Biblioteki programistyczne interpretera języka Ruby. | |
e14a2f74 | 174 | |
87b9c30a | 175 | %package static |
176 | Summary: Ruby static libraries | |
3c3949cf | 177 | Summary(pl.UTF-8): Biblioteki statyczne Ruby |
87b9c30a | 178 | Group: Development/Languages |
f89d855e | 179 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
87b9c30a | 180 | |
181 | %description static | |
182 | Ruby static libraries. | |
183 | ||
a0a47c48 | 184 | %description static -l pl.UTF-8 |
87b9c30a | 185 | Biblioteki statyczne Ruby. |
186 | ||
754b419a | 187 | %package doc |
9fd96af7 | 188 | Summary: Ruby HTML documentation |
3c3949cf | 189 | Summary(pl.UTF-8): Dokumentacja HTML do Ruby |
9fd96af7 | 190 | Group: Documentation |
191 | ||
192 | %description doc | |
193 | Ruby HTML documentation: FAQ, guide, core and standard library. | |
194 | ||
a0a47c48 | 195 | %description doc -l pl.UTF-8 |
d99a4382 | 196 | Dokumentacja HTML do Ruby: FAQ, przewodnik, dokumentacja dla core i |
197 | stdlib. | |
69b51dc9 | 198 | |
9fd96af7 | 199 | %package doc-ri |
200 | Summary: Ruby ri documentation | |
3c3949cf | 201 | Summary(pl.UTF-8): Dokumentacja Ruby w formacie ri |
9fd96af7 | 202 | Group: Documentation |
69b51dc9 | 203 | Requires: %{name}-modules = %{epoch}:%{version}-%{release} |
9fd96af7 | 204 | |
205 | %description doc-ri | |
206 | Ruby ri documentation. | |
207 | ||
a0a47c48 | 208 | %description doc-ri -l pl.UTF-8 |
9fd96af7 | 209 | Dokumentacja Ruby w formacie ri. |
210 | ||
211 | %package examples | |
212 | Summary: Ruby examples | |
3c3949cf | 213 | Summary(pl.UTF-8): Przykłady dla języka Ruby |
9fd96af7 | 214 | Group: Development/Languages |
215 | ||
216 | %description examples | |
217 | Ruby examples. | |
218 | ||
a0a47c48 JR |
219 | %description examples -l pl.UTF-8 |
220 | Przykłady programów w języku Ruby. | |
9fd96af7 | 221 | |
4ab119cd | 222 | %prep |
360c41c0 | 223 | %if %{with bootstrap} |
af4f9d38 | 224 | %setup -q -n %{name}-%{basever}-p%{patchlevel} -a1 -a2 -a3 -a100 |
360c41c0 JR |
225 | %else |
226 | %setup -q -n %{name}-%{basever}-p%{patchlevel} -a1 -a2 -a3 | |
227 | %endif | |
933aeb0e | 228 | %patch0 -p1 |
a310037a | 229 | %patch1 -p1 |
360c41c0 JR |
230 | %patch2 -p1 |
231 | ||
232 | # must be regenerated with new bison | |
233 | %{__rm} parse.{c,h} | |
4ab119cd | 234 | |
b2f04116 JR |
235 | find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f |
236 | ||
237 | find -type f '(' -name '*.rb' -o -name '*.cgi' -o -name '*.test' \ | |
238 | -o -name 'ruby.1' -o -name '*.html' -o -name '*.tcl' ')' \ | |
bb5582fa | 239 | | xargs %{__sed} -i 's,/usr/local/bin/,%{_bindir}/,' |
e7754311 | 240 | |
4ab119cd | 241 | %build |
8ea447c1 | 242 | cp -f /usr/share/automake/config.sub . |
a5f9b7ff | 243 | |
92ff5331 | 244 | # build ruby-1.8.7 first |
245 | %if %{with bootstrap} | |
246 | cd %{name}-1.8.7-p330 | |
247 | %configure | |
248 | %{__make} | |
249 | cd .. | |
250 | %endif | |
251 | ||
8ea447c1 | 252 | %{__autoconf} |
ecde9c47 | 253 | %configure \ |
92ff5331 | 254 | %{?with_bootstrap:--with-baseruby=%{name}-1.8.7-p330/miniruby} \ |
3a4dd1f6 | 255 | --enable-shared \ |
374c5b6e | 256 | --enable-pthread \ |
15467dc7 | 257 | --with-ruby-version=minor |
4ab119cd | 258 | |
2690877c ER |
259 | %{__make} -j1 \ |
260 | COPY="cp -p" Q= \ | |
261 | %{?with_bootstrap:BASERUBY="ruby-1.8.7-p330/miniruby -I./ruby-1.8.7-p330/lib"} | |
aa58dbf5 | 262 | |
d0f5536d | 263 | %if %{with doc} |
98757242 | 264 | %{__make} -j1 rdoc |
d0f5536d | 265 | %endif |
53830491 | 266 | |
4ab119cd | 267 | %install |
268 | rm -rf $RPM_BUILD_ROOT | |
fc97a6ea JR |
269 | install -d $RPM_BUILD_ROOT{%{ruby_rdocdir},%{_examplesdir}/%{name}-%{version}} \ |
270 | $RPM_BUILD_ROOT%{_libdir}/%{name}/%{ruby_ver}/tasks | |
1968db6d | 271 | |
ecde9c47 JB |
272 | %{__make} install \ |
273 | DESTDIR=$RPM_BUILD_ROOT | |
d041de24 | 274 | |
9fd96af7 | 275 | cp -Rf sample/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
2690877c ER |
276 | cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_mandir}/man1 |
277 | cp -p %{SOURCE5} $RPM_BUILD_ROOT%{_mandir}/man1 | |
18e966a7 | 278 | |
698147c7 ER |
279 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}/html |
280 | ||
15467dc7 | 281 | %if %{without batteries} |
b2f04116 | 282 | # packaged separately |
fc97a6ea | 283 | %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/%{name}/%{ruby_ver}/{rubygems,rake,json,tasks} |
92ff5331 | 284 | %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/%{name}/%{ruby_ver}/*-linux*/json |
285 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/%{ruby_ver}/{rake,rubygems,json}.rb | |
286 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/{gem,rake} | |
287 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/rake* | |
288 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/ri/%{ruby_ver}/system/JSON | |
15467dc7 | 289 | %endif |
1968db6d | 290 | |
4ab119cd | 291 | %clean |
292 | rm -rf $RPM_BUILD_ROOT | |
293 | ||
d041de24 JR |
294 | %post -p /sbin/ldconfig |
295 | %postun -p /sbin/ldconfig | |
4ab119cd | 296 | |
297 | %files | |
298 | %defattr(644,root,root,755) | |
b2f04116 | 299 | %doc NEWS LEGAL README README.EXT ChangeLog ToDo |
9fd96af7 | 300 | %attr(755,root,root) %{_bindir}/ruby |
15467dc7 | 301 | %if %{with batteries} |
302 | %attr(755,root,root) %{_bindir}/gem | |
303 | %attr(755,root,root) %{_bindir}/rake | |
304 | %endif | |
529ff870 | 305 | %attr(755,root,root) %{_libdir}/libruby.so.*.*.* |
b2f04116 | 306 | %attr(755,root,root) %ghost %{_libdir}/libruby.so.1.9 |
9fd96af7 | 307 | %{_mandir}/man1/ruby.1* |
15467dc7 | 308 | %if %{with batteries} |
309 | %{_mandir}/man1/rake.1* | |
310 | %endif | |
68ec864f | 311 | %dir %{_libdir}/%{name} |
312 | %dir %{_libdir}/%{name}/%{ruby_ver} | |
313 | %dir %{_libdir}/%{name}/%{ruby_ver}/*-linux* | |
95dfb220 | 314 | %dir %{_libdir}/%{name}/site_ruby |
315 | %dir %{_libdir}/%{name}/site_ruby/%{ruby_ver} | |
316 | %dir %{_libdir}/%{name}/site_ruby/%{ruby_ver}/*-linux* | |
3ea9be56 | 317 | %dir %{_libdir}/%{name}/vendor_ruby |
318 | %dir %{_libdir}/%{name}/vendor_ruby/%{ruby_ver} | |
319 | %dir %{_libdir}/%{name}/vendor_ruby/%{ruby_ver}/*-linux* | |
68ec864f | 320 | %dir %{_datadir}/ri |
321 | %dir %{_datadir}/ri/%{ruby_ver} | |
322 | %dir %{_datadir}/ri/%{ruby_ver}/system | |
a43d66d8 | 323 | %dir %{ruby_rdocdir} |
9fd96af7 | 324 | |
325 | %files devel | |
326 | %defattr(644,root,root,755) | |
529ff870 | 327 | %attr(755,root,root) %{_libdir}/libruby.so |
b2f04116 | 328 | %{_includedir}/%{name}-%{ruby_ver} |
fc97a6ea | 329 | %{_pkgconfigdir}/ruby-%{ruby_ver}.pc |
9fd96af7 | 330 | |
331 | %files static | |
332 | %defattr(644,root,root,755) | |
529ff870 | 333 | %{_libdir}/libruby-static.a |
9fd96af7 | 334 | |
15ecb21e | 335 | %if %{with tk} |
9fd96af7 | 336 | %files tk |
337 | %defattr(644,root,root,755) | |
68ec864f | 338 | %{_libdir}/%{name}/%{ruby_ver}/tcltk.rb |
339 | %{_libdir}/%{name}/%{ruby_ver}/tk*.rb | |
340 | %{_libdir}/%{name}/%{ruby_ver}/tk | |
341 | %{_libdir}/%{name}/%{ruby_ver}/tkextlib | |
342 | %attr(755,root,root) %{_libdir}/%{name}/%{ruby_ver}/*-linux*/t*.so | |
15ecb21e | 343 | %endif |
9fd96af7 | 344 | |
345 | %files modules | |
346 | %defattr(644,root,root,755) | |
347 | %attr(755,root,root) %{_bindir}/erb | |
348 | %attr(755,root,root) %{_bindir}/irb | |
349 | %attr(755,root,root) %{_bindir}/rdoc | |
350 | %attr(755,root,root) %{_bindir}/ri | |
351 | %attr(755,root,root) %{_bindir}/testrb | |
68ec864f | 352 | %{_libdir}/%{name}/%{ruby_ver}/bigdecimal |
353 | %{_libdir}/%{name}/%{ruby_ver}/cgi | |
354 | %{_libdir}/%{name}/%{ruby_ver}/date | |
db241521 | 355 | %{_libdir}/%{name}/%{ruby_ver}/digest |
68ec864f | 356 | %{_libdir}/%{name}/%{ruby_ver}/dl |
357 | %{_libdir}/%{name}/%{ruby_ver}/drb | |
b421095b | 358 | %{_libdir}/%{name}/%{ruby_ver}/fiddle |
fc97a6ea | 359 | %{_libdir}/%{name}/%{ruby_ver}/io |
68ec864f | 360 | %{_libdir}/%{name}/%{ruby_ver}/irb |
fc97a6ea | 361 | %{_libdir}/%{name}/%{ruby_ver}/matrix |
816fcc98 | 362 | %{_libdir}/%{name}/%{ruby_ver}/minitest |
68ec864f | 363 | %{_libdir}/%{name}/%{ruby_ver}/net |
364 | %{_libdir}/%{name}/%{ruby_ver}/openssl | |
365 | %{_libdir}/%{name}/%{ruby_ver}/optparse | |
15467dc7 | 366 | %if %{with batteries} |
367 | %{_libdir}/%{name}/%{ruby_ver}/json | |
368 | %{_libdir}/%{name}/%{ruby_ver}/rake | |
369 | %{_libdir}/%{name}/%{ruby_ver}/rubygems | |
fc97a6ea | 370 | %dir %{_libdir}/%{name}/%{ruby_ver}/tasks |
15467dc7 | 371 | %endif |
d3102046 | 372 | %{_libdir}/%{name}/%{ruby_ver}/psych |
68ec864f | 373 | %{_libdir}/%{name}/%{ruby_ver}/racc |
b2f04116 | 374 | %{_libdir}/%{name}/%{ruby_ver}/rbconfig |
68ec864f | 375 | %{_libdir}/%{name}/%{ruby_ver}/rdoc |
376 | %{_libdir}/%{name}/%{ruby_ver}/rexml | |
377 | %{_libdir}/%{name}/%{ruby_ver}/rinda | |
b2f04116 | 378 | %{_libdir}/%{name}/%{ruby_ver}/ripper |
68ec864f | 379 | %{_libdir}/%{name}/%{ruby_ver}/rss |
68ec864f | 380 | %{_libdir}/%{name}/%{ruby_ver}/shell |
15467dc7 | 381 | %{_libdir}/%{name}/%{ruby_ver}/syck |
68ec864f | 382 | %{_libdir}/%{name}/%{ruby_ver}/test |
383 | %{_libdir}/%{name}/%{ruby_ver}/uri | |
384 | %{_libdir}/%{name}/%{ruby_ver}/webrick | |
68ec864f | 385 | %{_libdir}/%{name}/%{ruby_ver}/xmlrpc |
68ec864f | 386 | %{_libdir}/%{name}/%{ruby_ver}/yaml |
387 | %{_libdir}/%{name}/%{ruby_ver}/[A-Za-s]*.rb | |
388 | %{_libdir}/%{name}/%{ruby_ver}/tempfile.rb | |
389 | %{_libdir}/%{name}/%{ruby_ver}/thread.rb | |
390 | %{_libdir}/%{name}/%{ruby_ver}/thwait.rb | |
391 | %{_libdir}/%{name}/%{ruby_ver}/time.rb | |
392 | %{_libdir}/%{name}/%{ruby_ver}/timeout.rb | |
393 | %{_libdir}/%{name}/%{ruby_ver}/tmpdir.rb | |
394 | %{_libdir}/%{name}/%{ruby_ver}/tracer.rb | |
395 | %{_libdir}/%{name}/%{ruby_ver}/tsort.rb | |
396 | %{_libdir}/%{name}/%{ruby_ver}/[u-z]*.rb | |
ada7d096 JB |
397 | %attr(755,root,root) %{_libdir}/%{name}/%{ruby_ver}/*-linux*/[a-s]*.so |
398 | %attr(755,root,root) %{_libdir}/%{name}/%{ruby_ver}/*-linux*/[u-z]*.so | |
68ec864f | 399 | %dir %{_libdir}/%{name}/%{ruby_ver}/*-linux*/digest |
ada7d096 JB |
400 | %attr(755,root,root) %{_libdir}/%{name}/%{ruby_ver}/*-linux*/digest/*.so |
401 | %dir %{_libdir}/%{name}/%{ruby_ver}/*-linux*/dl | |
402 | %attr(755,root,root) %{_libdir}/%{name}/%{ruby_ver}/*-linux*/dl/callback.so | |
b2f04116 | 403 | %dir %{_libdir}/%{name}/%{ruby_ver}/*-linux*/enc |
ada7d096 | 404 | %attr(755,root,root) %{_libdir}/%{name}/%{ruby_ver}/*-linux*/enc/*.so |
b2f04116 | 405 | %dir %{_libdir}/%{name}/%{ruby_ver}/*-linux*/enc/trans |
ada7d096 | 406 | %attr(755,root,root) %{_libdir}/%{name}/%{ruby_ver}/*-linux*/enc/trans/*.so |
68ec864f | 407 | %dir %{_libdir}/%{name}/%{ruby_ver}/*-linux*/io |
ada7d096 | 408 | %attr(755,root,root) %{_libdir}/%{name}/%{ruby_ver}/*-linux*/io/*.so |
15467dc7 | 409 | %if %{with batteries} |
410 | %dir %{_libdir}/%{name}/%{ruby_ver}/*-linux*/json | |
411 | %dir %{_libdir}/%{name}/%{ruby_ver}/*-linux*/json/ext | |
ada7d096 | 412 | %attr(755,root,root) %{_libdir}/%{name}/%{ruby_ver}/*-linux*/json/ext/*.so |
15467dc7 | 413 | %endif |
b2f04116 | 414 | %dir %{_libdir}/%{name}/%{ruby_ver}/*-linux*/mathn |
b2f04116 | 415 | %attr(755,root,root) %{_libdir}/%{name}/%{ruby_ver}/*-linux*/mathn/*.so |
ada7d096 | 416 | %dir %{_libdir}/%{name}/%{ruby_ver}/*-linux*/racc |
68ec864f | 417 | %attr(755,root,root) %{_libdir}/%{name}/%{ruby_ver}/*-linux*/racc/*.so |
418 | %{_libdir}/%{name}/%{ruby_ver}/*-linux*/rbconfig.rb | |
ada7d096 JB |
419 | %dir %{_libdir}/%{name}/gems |
420 | %dir %{_libdir}/%{name}/gems/%{ruby_ver} | |
fc97a6ea | 421 | %dir %{_libdir}/%{name}/gems/%{ruby_ver}/gems |
ada7d096 | 422 | %dir %{_libdir}/%{name}/gems/%{ruby_ver}/specifications |
fc97a6ea JR |
423 | %{_libdir}/%{name}/gems/%{ruby_ver}/specifications/io-console-*.gemspec |
424 | %{_libdir}/%{name}/gems/%{ruby_ver}/specifications/bigdecimal-*.gemspec | |
9a8b7dca | 425 | %if %{with batteries} |
fc97a6ea JR |
426 | %dir %{_libdir}/%{name}/gems/%{ruby_ver}/gems/rake-%{rake_ver} |
427 | %dir %{_libdir}/%{name}/gems/%{ruby_ver}/gems/rake-%{rake_ver}/bin | |
428 | %attr(755,root,root) %{_libdir}/%{name}/gems/%{ruby_ver}/gems/rake-%{rake_ver}/bin/rake | |
429 | %dir %{_libdir}/%{name}/gems/%{ruby_ver}/gems/rdoc-%{rdoc_ver} | |
430 | %dir %{_libdir}/%{name}/gems/%{ruby_ver}/gems/rdoc-%{rdoc_ver}/bin | |
431 | %attr(755,root,root) %{_libdir}/%{name}/gems/%{ruby_ver}/gems/rdoc-%{rdoc_ver}/bin/rdoc | |
432 | %attr(755,root,root) %{_libdir}/%{name}/gems/%{ruby_ver}/gems/rdoc-%{rdoc_ver}/bin/ri | |
54f55336 | 433 | %{_libdir}/%{name}/gems/%{ruby_ver}/specifications/minitest-%{minitest_ver}.gemspec |
434 | %{_libdir}/%{name}/gems/%{ruby_ver}/specifications/rake-%{rake_ver}.gemspec | |
435 | %{_libdir}/%{name}/gems/%{ruby_ver}/specifications/rdoc-%{rdoc_ver}.gemspec | |
fc97a6ea | 436 | %{_libdir}/%{name}/gems/%{ruby_ver}/specifications/json-%{json_ver}.gemspec |
9a8b7dca | 437 | %endif |
9fd96af7 | 438 | %{_mandir}/man1/erb.1* |
439 | %{_mandir}/man1/irb.1* | |
440 | %{_mandir}/man1/rdoc.1* | |
441 | %{_mandir}/man1/ri.1* | |
442 | %{_mandir}/man1/testrb.1* | |
15467dc7 | 443 | |
9fd96af7 | 444 | %files doc |
9434194f | 445 | %defattr(644,root,root,755) |
b2f04116 | 446 | %doc ruby-doc-bundle/* |
af4f9d38 JR |
447 | %{?with_doc:%doc ruby_%{doc_version}_stdlib} |
448 | %{?with_doc:%doc ruby_%{doc_version}_core} | |
87b9c30a | 449 | |
d0f5536d | 450 | %if %{with doc} |
9fd96af7 | 451 | %files doc-ri |
e40bfe06 | 452 | %defattr(644,root,root,755) |
68ec864f | 453 | %{_datadir}/ri/%{ruby_ver}/system/* |
d0f5536d | 454 | %endif |
265d0efe | 455 | |
9fd96af7 | 456 | %files examples |
616a12d8 | 457 | %defattr(644,root,root,755) |
9fd96af7 | 458 | %{_examplesdir}/%{name}-%{version} |