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