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