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