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