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