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