]>
Commit | Line | Data |
---|---|---|
e99f31df | 1 | # |
1b328062 | 2 | # NOTE: - segfaults on ppc during building when is built with `--with-pthreads' |
3 | # /home/users/builder/rpm/BUILD/ruby-1.8.5-p2/lib/mkmf.rb:147: [BUG] Segmentation fault | |
4 | # ruby 1.8.5 (2006-12-04) [powerpc-linux] | |
5 | # | |
6 | # - on the other hand when ruby is built on pcc with `--without-pthreads' | |
7 | # compilation of tk extensions fails with message: | |
8 | # | |
9 | # Ruby is not compiled with --enable-pthread, but your Tcl/Tk | |
10 | # ** library seems to be compiled with pthread support. This | |
11 | # ** combination may cause frequent hang or segmentation fault | |
12 | # ** errors when Ruby/Tk is working. | |
13 | # | |
2acc5f17 | 14 | # Conditional build: |
d0f5536d | 15 | %bcond_without doc # skip generating docs (which is time-consuming). Intended for speed up test builds |
e99f31df | 16 | %bcond_without emacs # skip building package with ruby-mode for emacs |
17 | # | |
68ec864f | 18 | %define ruby_ver 1.8 |
19 | %define ruby_ridir %{_datadir}/ri/%{ruby_ver}/system | |
6e2f9b3c | 20 | Summary: Ruby - interpreted scripting language |
a0a47c48 JR |
21 | Summary(ja.UTF-8): オブジェクト指向言語Rubyインタプリタ |
22 | Summary(pl.UTF-8): Ruby - interpretowany język skryptowy | |
23 | Summary(pt_BR.UTF-8): Linguagem de script orientada a objeto | |
24 | Summary(zh_CN.UTF-8): ruby - 一种快速高效的面向对象脚本编程语言 | |
4ab119cd | 25 | Name: ruby |
b1046019 | 26 | Version: 1.8.5p2 |
2fff51da | 27 | Release: 4.2 |
01204e8f | 28 | Epoch: 1 |
0a23e00f | 29 | License: The Ruby License |
6eb17ef6 | 30 | Group: Development/Languages |
b1046019 JB |
31 | Source0: ftp://ftp.ruby-lang.org/pub/ruby/%{name}-1.8.5-p2.tar.gz |
32 | # Source0-md5: a3517a224716f79b14196adda3e88057 | |
6ca6b15e | 33 | Source1: http://www.ibiblio.org/pub/languages/ruby/doc/%{name}-texi-1.4-en.tar.gz |
1451f854 | 34 | # Source1-md5: 839fda4af52b5c5c6d21f879f7fc62bf |
4ab119cd | 35 | Source2: http://www.math.sci.hokudai.ac.jp/~gotoken/ruby/%{name}-uguide-981227.tar.gz |
1451f854 | 36 | # Source2-md5: 24eadcd067278901da9ad70efb146b07 |
6ca6b15e | 37 | Source3: http://www.ibiblio.org/pub/languages/ruby/doc/%{name}faq-990927.tar.gz |
1451f854 | 38 | # Source3-md5: 634c25b14e19925d10af3720d72e8741 |
18e966a7 | 39 | Source4: irb.1 |
bd429ed0 JB |
40 | Source5: http://www.geocities.jp/kosako3/oniguruma/archive/onigd2_5_7.tar.gz |
41 | # Source5-md5: dcaa0b3608990791a5348e94b2f427d5 | |
42 | %define stdlibdoc_version 0.10.1 | |
43 | Source6: http://www.ruby-doc.org/download/stdlib/%{name}-doc-stdlib-%{stdlibdoc_version}.tgz | |
44 | # Source6-md5: 5437c281b44e7a4af142d2bd35eba407 | |
45 | Source7: http://www.ruby-doc.org/download/Ruby-1.8.1_ri_data.zip | |
53830491 | 46 | # Source7-md5: 96e97cdfa55ed197e0e6c39159394c82 |
b2789087 ER |
47 | Source8: erb.1 |
48 | Source9: rdoc.1 | |
49 | Source10: ri.1 | |
50 | Source11: testrb.1 | |
51 | Source12: %{name}-mode-init.el | |
1968db6d | 52 | Patch0: %{name}-info.patch |
3a4dd1f6 | 53 | Patch1: %{name}-LIB_PREFIX.patch |
8b6ee5b1 | 54 | Patch2: %{name}-mkmf-shared.patch |
21ea4572 | 55 | Patch3: %{name}-ac260.patch |
7c36cd5d | 56 | URL: http://www.ruby-lang.org/ |
6eed9bfd | 57 | BuildRequires: autoconf |
53c95475 | 58 | BuildRequires: automake |
f0eb2dd9 | 59 | BuildRequires: db-devel |
e99f31df | 60 | %{?with_emacs:BuildRequires: emacs} |
e9f2c6fe | 61 | BuildRequires: gdbm-devel >= 1.8.3 |
1968db6d | 62 | BuildRequires: ncurses-devel |
f33fb184 | 63 | BuildRequires: openssl-devel |
933aeb0e | 64 | BuildRequires: readline-devel >= 4.2 |
7911cce0 | 65 | BuildRequires: sed >= 4.0 |
1968db6d | 66 | BuildRequires: texinfo |
e14a2f74 | 67 | BuildRequires: tk-devel |
53830491 | 68 | BuildRequires: unzip |
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 |
584b8bcb | 74 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
4ab119cd | 75 | |
8ea447c1 | 76 | # bleh, some nasty (gcc or ruby) bug still not fixed |
cc2dcaa2 | 77 | # (SEGV or "unexpected break" on miniruby run during build) |
8ea447c1 JB |
78 | %define specflags_ia64 -O0 |
79 | ||
88546731 | 80 | # ruby needs frame pointers for correct exception handling |
b66203d6 | 81 | %define specflags_ia32 -fno-omit-frame-pointer |
88546731 | 82 | |
4ab119cd | 83 | %description |
84 | Ruby is the interpreted scripting language for quick and easy | |
85 | object-oriented programming. It has many features to process text | |
86 | files and to do system management tasks (as in Perl). It is simple, | |
87 | straight-forward, extensible, and portable. | |
88 | ||
9fd96af7 | 89 | This package contains only shared library and ruby interpreter. To get |
90 | full-functional ruby environment install ruby-modules package. | |
91 | ||
a0a47c48 JR |
92 | %description -l ja.UTF-8 |
93 | Rubyはシンプルかつ強力なオブジェクト指向スクリプト言語です.Rubyは最初 | |
94 | から純粋なオブジェクト指向言語として設計されていますから,オブジェクト | |
95 | 指向プログラミングを手軽に行う事が出来ます.もちろん通常の手続き型のプ | |
96 | ログラミングも可能です. | |
7c36cd5d | 97 | |
a0a47c48 JR |
98 | %description -l pl.UTF-8 |
99 | Ruby to interpretowany język skryptowy, w sam raz dla łatwego i | |
100 | szybkiego pisania zorientowanych obiektowo programów. Ma wiele funkcji | |
101 | ułatwiających przetwarzanie plików tekstowych i wykonywanie prac | |
102 | związanych z zarządzaniem systemu (podobnie jak Perl). Jest prosty, | |
103 | rozszerzalny i przenośny. | |
6e2f9b3c | 104 | |
a0a47c48 JR |
105 | Ten pakiet zawiera tylko bibliotekę dzieloną i interpreter ruby. |
106 | Zainstaluj pakiet ruby-modules, jeżeli potrzebujesz w pełni | |
107 | funkcjonalnego środowiska ruby. | |
9fd96af7 | 108 | |
a0a47c48 JR |
109 | %description -l pt_BR.UTF-8 |
110 | Ruby é uma linguagem de script interpretada de programação orientada a | |
111 | objeto. Possui diversas características para processamento de texto. É | |
112 | simples, extensível e direta. | |
7c36cd5d | 113 | |
9fd96af7 | 114 | %package modules |
115 | Summary: Ruby standard modules and utilities | |
a0a47c48 | 116 | Summary(pl.UTF-8): Standardowe moduły i narzędzia dla języka Ruby |
9fd96af7 | 117 | Group: Development/Languages |
118 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
68ec864f | 119 | Provides: ruby-modules(ver) = %{ruby_ver} |
9fd96af7 | 120 | |
121 | %description modules | |
122 | Ruby standard modules and utilities: | |
123 | - erb - Tiny eRuby | |
124 | - rdoc - documentation tool for source code | |
125 | - irb - interactive Ruby | |
126 | - ri - Ruby interactive reference | |
7911cce0 | 127 | - testrb - automatic runner for Test::Unit of Ruby |
9fd96af7 | 128 | |
a0a47c48 JR |
129 | %description modules -l pl.UTF-8 |
130 | Standardowe moduły i narzędzia Ruby: | |
131 | - erb - mały eRuby | |
132 | - rdoc - narzędzie do dokumentowania kodu źródłowego | |
9fd96af7 | 133 | - irb - interaktywny Ruby |
134 | - ri - interaktywna dokumentacja Ruby | |
7911cce0 | 135 | - testrb - automatyczny runner dla Ruby Test::Unit |
9fd96af7 | 136 | |
265d0efe | 137 | %package tk |
138 | Summary: Ruby/Tk bindings | |
a0a47c48 | 139 | Summary(pl.UTF-8): Wiązania Ruby/Tk |
e65aac33 | 140 | Group: Development/Languages |
69b51dc9 | 141 | Requires: %{name}-modules = %{epoch}:%{version}-%{release} |
265d0efe | 142 | |
143 | %description tk | |
e65aac33 | 144 | This pachage contains Ruby/Tk bindings. |
145 | ||
a0a47c48 JR |
146 | %description tk -l pl.UTF-8 |
147 | Ten pakiet zawiera wiązania Ruby/Tk. | |
265d0efe | 148 | |
e14a2f74 | 149 | %package devel |
e14a2f74 | 150 | Summary: Ruby development libraries |
a0a47c48 | 151 | Summary(pl.UTF-8): Biblioteki programistyczne interpretera języka Ruby |
9434194f | 152 | Group: Development/Languages |
9fd96af7 | 153 | Requires: %{name}-modules = %{epoch}:%{version}-%{release} |
e14a2f74 | 154 | |
155 | %description devel | |
9434194f JB |
156 | Ruby development libraries. |
157 | ||
a0a47c48 JR |
158 | %description devel -l pl.UTF-8 |
159 | Biblioteki programistyczne interpretera języka Ruby. | |
e14a2f74 | 160 | |
87b9c30a | 161 | %package static |
162 | Summary: Ruby static libraries | |
a0a47c48 | 163 | Summary(pl.UTF-8): Biblioteki statyczne Ruby |
87b9c30a | 164 | Group: Development/Languages |
f89d855e | 165 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
87b9c30a | 166 | |
167 | %description static | |
168 | Ruby static libraries. | |
169 | ||
a0a47c48 | 170 | %description static -l pl.UTF-8 |
87b9c30a | 171 | Biblioteki statyczne Ruby. |
172 | ||
754b419a | 173 | %package doc |
9fd96af7 | 174 | Summary: Ruby HTML documentation |
a0a47c48 | 175 | Summary(pl.UTF-8): Dokumentacja HTML do Ruby |
9fd96af7 | 176 | Group: Documentation |
177 | ||
178 | %description doc | |
179 | Ruby HTML documentation: FAQ, guide, core and standard library. | |
180 | ||
a0a47c48 | 181 | %description doc -l pl.UTF-8 |
d99a4382 | 182 | Dokumentacja HTML do Ruby: FAQ, przewodnik, dokumentacja dla core i |
183 | stdlib. | |
69b51dc9 | 184 | |
9fd96af7 | 185 | %package doc-ri |
186 | Summary: Ruby ri documentation | |
a0a47c48 | 187 | Summary(pl.UTF-8): Dokumentacja Ruby w formacie ri |
9fd96af7 | 188 | Group: Documentation |
69b51dc9 | 189 | Requires: %{name}-modules = %{epoch}:%{version}-%{release} |
9fd96af7 | 190 | |
191 | %description doc-ri | |
192 | Ruby ri documentation. | |
193 | ||
a0a47c48 | 194 | %description doc-ri -l pl.UTF-8 |
9fd96af7 | 195 | Dokumentacja Ruby w formacie ri. |
196 | ||
197 | %package examples | |
198 | Summary: Ruby examples | |
a0a47c48 | 199 | Summary(pl.UTF-8): Przykłady dla języka Ruby |
9fd96af7 | 200 | Group: Development/Languages |
201 | ||
202 | %description examples | |
203 | Ruby examples. | |
204 | ||
a0a47c48 JR |
205 | %description examples -l pl.UTF-8 |
206 | Przykłady programów w języku Ruby. | |
9fd96af7 | 207 | |
e99f31df | 208 | %package emacs-mode |
209 | Summary: Ruby mode and debugger for Emacs | |
a0a47c48 | 210 | Summary(pl.UTF-8): Tryb Ruby i debugger dla Emacsa |
2acc5f17 JB |
211 | Group: Development/Tools |
212 | Requires: %{name}-modules = %{epoch}:%{version}-%{release} | |
e99f31df | 213 | Requires: emacs-common |
e99f31df | 214 | |
215 | %description emacs-mode | |
216 | Ruby mode and debugger for Emacs. | |
217 | ||
a0a47c48 | 218 | %description emacs-mode -l pl.UTF-8 |
e99f31df | 219 | Tryb Ruby i debugger dla Emacsa. |
220 | ||
4ab119cd | 221 | %prep |
b1046019 | 222 | %setup -q -a1 -a2 -a3 -a5 -a6 -a7 -n %{name}-1.8.5-p2 |
933aeb0e | 223 | %patch0 -p1 |
21ea4572 | 224 | %patch1 -p1 |
8b6ee5b1 | 225 | %patch2 -p1 |
21ea4572 | 226 | %patch3 -p0 |
4ab119cd | 227 | |
bb5582fa | 228 | find . -name '*.rb' -o -name '*.cgi' -o -name '*.test' -o -name 'ruby.1' \ |
229 | -o -name 'ruby.info*' -o -name '*.html' -o -name '*.tcl' -o -name '*.texi' \ | |
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 | |
78fb46ac | 235 | cd oniguruma |
8ea447c1 JB |
236 | %configure \ |
237 | --with-rubydir=.. | |
78fb46ac | 238 | %{__make} 18 |
239 | cd .. | |
240 | ||
8ea447c1 | 241 | %{__autoconf} |
ecde9c47 | 242 | %configure \ |
3a4dd1f6 | 243 | --enable-shared \ |
1b328062 | 244 | %ifnarch powerpc ppc ppc64 |
b66203d6 | 245 | --enable-pthread |
1b328062 | 246 | %else |
247 | --disable-pthread | |
248 | %endif | |
4ab119cd | 249 | |
cc468487 | 250 | %{__make} |
84438d27 | 251 | %{__make} clean -C %{name}-texi-1.4-en |
e20bcdfd | 252 | %{__make} info -C %{name}-texi-1.4-en |
aa58dbf5 | 253 | |
d0f5536d | 254 | %if %{with doc} |
6d5de039 | 255 | mkdir rdoc |
256 | ||
ed2f06d2 | 257 | RUBYLIB="lib:`find ext/ .ext/ -type d | tr '\n' ':'`" |
d58222f0 | 258 | export RUBYLIB |
259 | ||
a164aedf | 260 | LD_LIBRARY_PATH=. ./ruby bin/rdoc --inline-source --op rdoc/core \ |
261 | array.c bignum.c class.c compar.c dir.c dln.c dmyext.c enum.c \ | |
53830491 | 262 | error.c eval.c file.c gc.c hash.c inits.c io.c lex.c main.c marshal.c \ |
263 | math.c numeric.c object.c pack.c parse.c prec.c process.c random.c range.c \ | |
264 | re.c regex.c ruby.c signal.c sprintf.c st.c string.c struct.c time.c util.c \ | |
265 | variable.c version.c \ | |
266 | lib/English.rb lib/abbrev.rb lib/base64.rb lib/benchmark.rb lib/cgi.rb \ | |
267 | lib/cgi/session.rb lib/complex.rb lib/date.rb lib/fileutils.rb lib/find.rb \ | |
a164aedf | 268 | lib/generator.rb lib/logger.rb lib/matrix.rb lib/observer.rb \ |
269 | lib/pathname.rb lib/set.rb lib/shellwords.rb lib/singleton.rb \ | |
270 | lib/tempfile.rb lib/test/unit.rb lib/thread.rb lib/thwait.rb \ | |
271 | lib/time.rb lib/yaml.rb | |
53830491 | 272 | |
273 | mv ruby-doc-stdlib-%{stdlibdoc_version}/stdlib rdoc/stdlib | |
68ec864f | 274 | mv ri/%{ruby_ver}/site ri/%{ruby_ver}/system |
53830491 | 275 | |
68ec864f | 276 | LD_LIBRARY_PATH=. ./ruby bin/rdoc --ri -o ri/%{ruby_ver}/system \ |
a164aedf | 277 | array.c bignum.c class.c compar.c dir.c dln.c \ |
53830491 | 278 | dmyext.c enum.c error.c eval.c file.c gc.c hash.c inits.c io.c lex.c main.c \ |
279 | marshal.c math.c numeric.c object.c pack.c parse.c prec.c process.c \ | |
280 | random.c range.c re.c regex.c ruby.c signal.c sprintf.c st.c string.c \ | |
281 | struct.c time.c util.c variable.c version.c \ | |
282 | lib/English.rb lib/abbrev.rb lib/base64.rb lib/benchmark.rb lib/cgi.rb \ | |
283 | lib/cgi/session.rb lib/complex.rb lib/date.rb lib/fileutils.rb lib/find.rb \ | |
284 | lib/generator.rb lib/logger.rb lib/matrix.rb lib/observer.rb lib/pathname.rb \ | |
285 | lib/set.rb lib/shellwords.rb lib/singleton.rb lib/tempfile.rb \ | |
286 | lib/test/unit.rb lib/thread.rb lib/thwait.rb lib/time.rb lib/yaml.rb | |
d0f5536d | 287 | %endif |
53830491 | 288 | |
4ab119cd | 289 | %install |
290 | rm -rf $RPM_BUILD_ROOT | |
f9bda030 | 291 | install -d $RPM_BUILD_ROOT{%{_infodir},%{_mandir}/man1,%{_examplesdir}/%{name}-%{version},%{ruby_ridir}} |
e99f31df | 292 | install -d $RPM_BUILD_ROOT{%{_datadir}/%{name},%{_emacs_lispdir}/{%{name}-mode,site-start.d}} |
1968db6d | 293 | |
ecde9c47 JB |
294 | %{__make} install \ |
295 | DESTDIR=$RPM_BUILD_ROOT | |
1968db6d | 296 | |
9fd96af7 | 297 | cp -Rf sample/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
4ab119cd | 298 | install %{name}-texi-1.4-en/ruby.info* $RPM_BUILD_ROOT%{_infodir} |
18e966a7 | 299 | install %{SOURCE4} $RPM_BUILD_ROOT%{_mandir}/man1 |
b2789087 | 300 | install %{SOURCE8} $RPM_BUILD_ROOT%{_mandir}/man1 |
9fd96af7 | 301 | install %{SOURCE9} $RPM_BUILD_ROOT%{_mandir}/man1 |
302 | install %{SOURCE10} $RPM_BUILD_ROOT%{_mandir}/man1 | |
303 | install %{SOURCE11} $RPM_BUILD_ROOT%{_mandir}/man1 | |
18e966a7 | 304 | |
68ec864f | 305 | cp -Rf ruby-uguide guide |
306 | cp -Rf rubyfaq faq | |
1968db6d | 307 | |
d0f5536d | 308 | %{?with_doc:cp -Rf ri/%{ruby_ver}/system/* $RPM_BUILD_ROOT%{ruby_ridir}} |
aa58dbf5 | 309 | |
e99f31df | 310 | # ruby emacs mode - borrowed from FC-4 |
311 | %if %{with emacs} | |
312 | install misc/*.el $RPM_BUILD_ROOT%{_emacs_lispdir}/%{name}-mode | |
313 | rm -f $RPM_BUILD_ROOT%{_emacs_lispdir}/%{name}-mode/rubydb2x.el | |
b2789087 | 314 | install %{SOURCE12} $RPM_BUILD_ROOT%{_emacs_lispdir}/site-start.d |
e99f31df | 315 | cat << EOF > path.el |
316 | (setq load-path (cons "." load-path) byte-compile-warnings nil) | |
317 | EOF | |
318 | emacs --no-site-file -q -batch -l path.el -f batch-byte-compile $RPM_BUILD_ROOT%{_emacs_lispdir}/%{name}-mode/*.el | |
319 | rm -f path.el* | |
320 | %endif | |
321 | ||
4ab119cd | 322 | %clean |
323 | rm -rf $RPM_BUILD_ROOT | |
324 | ||
325 | %post | |
b0706532 | 326 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 |
c62c2faf | 327 | /sbin/ldconfig |
4ab119cd | 328 | |
329 | %postun | |
b0706532 | 330 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 |
4ab119cd | 331 | /sbin/ldconfig |
332 | ||
333 | %files | |
334 | %defattr(644,root,root,755) | |
9fd96af7 | 335 | %doc README README.EXT ChangeLog ToDo |
336 | %attr(755,root,root) %{_bindir}/ruby | |
584b8bcb | 337 | %attr(755,root,root) %{_libdir}/lib*.so.*.*.* |
9fd96af7 | 338 | %{_mandir}/man1/ruby.1* |
339 | %{_infodir}/*.info* | |
68ec864f | 340 | %dir %{_libdir}/%{name} |
341 | %dir %{_libdir}/%{name}/%{ruby_ver} | |
342 | %dir %{_libdir}/%{name}/%{ruby_ver}/*-linux* | |
95dfb220 | 343 | %dir %{_libdir}/%{name}/site_ruby |
344 | %dir %{_libdir}/%{name}/site_ruby/%{ruby_ver} | |
345 | %dir %{_libdir}/%{name}/site_ruby/%{ruby_ver}/*-linux* | |
68ec864f | 346 | %dir %{_datadir}/%{name} |
347 | %dir %{_datadir}/ri | |
348 | %dir %{_datadir}/ri/%{ruby_ver} | |
349 | %dir %{_datadir}/ri/%{ruby_ver}/system | |
9fd96af7 | 350 | |
351 | %files devel | |
352 | %defattr(644,root,root,755) | |
353 | %attr(755,root,root) %{_libdir}/lib*.so | |
68ec864f | 354 | %{_libdir}/%{name}/%{ruby_ver}/*/*.h |
9fd96af7 | 355 | |
356 | %files static | |
357 | %defattr(644,root,root,755) | |
358 | %{_libdir}/lib*.a | |
359 | ||
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 | |
9fd96af7 | 367 | |
368 | %files modules | |
369 | %defattr(644,root,root,755) | |
370 | %attr(755,root,root) %{_bindir}/erb | |
371 | %attr(755,root,root) %{_bindir}/irb | |
372 | %attr(755,root,root) %{_bindir}/rdoc | |
373 | %attr(755,root,root) %{_bindir}/ri | |
374 | %attr(755,root,root) %{_bindir}/testrb | |
68ec864f | 375 | %{_libdir}/%{name}/%{ruby_ver}/bigdecimal |
376 | %{_libdir}/%{name}/%{ruby_ver}/cgi | |
377 | %{_libdir}/%{name}/%{ruby_ver}/date | |
378 | %{_libdir}/%{name}/%{ruby_ver}/dl | |
379 | %{_libdir}/%{name}/%{ruby_ver}/drb | |
380 | %{_libdir}/%{name}/%{ruby_ver}/io | |
381 | %{_libdir}/%{name}/%{ruby_ver}/irb | |
382 | %{_libdir}/%{name}/%{ruby_ver}/net | |
383 | %{_libdir}/%{name}/%{ruby_ver}/openssl | |
384 | %{_libdir}/%{name}/%{ruby_ver}/optparse | |
385 | %{_libdir}/%{name}/%{ruby_ver}/racc | |
386 | %{_libdir}/%{name}/%{ruby_ver}/rdoc | |
387 | %{_libdir}/%{name}/%{ruby_ver}/rexml | |
388 | %{_libdir}/%{name}/%{ruby_ver}/rinda | |
389 | %{_libdir}/%{name}/%{ruby_ver}/rss | |
390 | %{_libdir}/%{name}/%{ruby_ver}/runit | |
391 | %{_libdir}/%{name}/%{ruby_ver}/shell | |
392 | %{_libdir}/%{name}/%{ruby_ver}/soap | |
393 | %{_libdir}/%{name}/%{ruby_ver}/test | |
394 | %{_libdir}/%{name}/%{ruby_ver}/uri | |
395 | %{_libdir}/%{name}/%{ruby_ver}/webrick | |
396 | %{_libdir}/%{name}/%{ruby_ver}/wsdl | |
397 | %{_libdir}/%{name}/%{ruby_ver}/xmlrpc | |
398 | %{_libdir}/%{name}/%{ruby_ver}/xsd | |
399 | %{_libdir}/%{name}/%{ruby_ver}/yaml | |
400 | %{_libdir}/%{name}/%{ruby_ver}/[A-Za-s]*.rb | |
401 | %{_libdir}/%{name}/%{ruby_ver}/tempfile.rb | |
402 | %{_libdir}/%{name}/%{ruby_ver}/thread.rb | |
403 | %{_libdir}/%{name}/%{ruby_ver}/thwait.rb | |
404 | %{_libdir}/%{name}/%{ruby_ver}/time.rb | |
405 | %{_libdir}/%{name}/%{ruby_ver}/timeout.rb | |
406 | %{_libdir}/%{name}/%{ruby_ver}/tmpdir.rb | |
407 | %{_libdir}/%{name}/%{ruby_ver}/tracer.rb | |
408 | %{_libdir}/%{name}/%{ruby_ver}/tsort.rb | |
409 | %{_libdir}/%{name}/%{ruby_ver}/[u-z]*.rb | |
410 | %dir %{_libdir}/%{name}/%{ruby_ver}/*-linux*/digest | |
411 | %dir %{_libdir}/%{name}/%{ruby_ver}/*-linux*/io | |
412 | %dir %{_libdir}/%{name}/%{ruby_ver}/*-linux*/racc | |
413 | %attr(755,root,root) %{_libdir}/%{name}/%{ruby_ver}/*-linux*/[a-s]*.so | |
414 | %attr(755,root,root) %{_libdir}/%{name}/%{ruby_ver}/*-linux*/[u-z]*.so | |
415 | %attr(755,root,root) %{_libdir}/%{name}/%{ruby_ver}/*-linux*/digest/*.so | |
416 | %attr(755,root,root) %{_libdir}/%{name}/%{ruby_ver}/*-linux*/io/*.so | |
417 | %attr(755,root,root) %{_libdir}/%{name}/%{ruby_ver}/*-linux*/racc/*.so | |
418 | %{_libdir}/%{name}/%{ruby_ver}/*-linux*/rbconfig.rb | |
9fd96af7 | 419 | %{_mandir}/man1/erb.1* |
420 | %{_mandir}/man1/irb.1* | |
421 | %{_mandir}/man1/rdoc.1* | |
422 | %{_mandir}/man1/ri.1* | |
423 | %{_mandir}/man1/testrb.1* | |
9fd96af7 | 424 | |
425 | %files doc | |
9434194f | 426 | %defattr(644,root,root,755) |
d0f5536d | 427 | %doc faq guide |
428 | %{?with_doc:%doc rdoc} | |
87b9c30a | 429 | |
d0f5536d | 430 | %if %{with doc} |
9fd96af7 | 431 | %files doc-ri |
e40bfe06 | 432 | %defattr(644,root,root,755) |
68ec864f | 433 | %{_datadir}/ri/%{ruby_ver}/system/* |
d0f5536d | 434 | %endif |
265d0efe | 435 | |
9fd96af7 | 436 | %files examples |
616a12d8 | 437 | %defattr(644,root,root,755) |
9fd96af7 | 438 | %{_examplesdir}/%{name}-%{version} |
e99f31df | 439 | |
440 | %if %{with emacs} | |
441 | %files emacs-mode | |
442 | %defattr(644,root,root,755) | |
4b6581fc | 443 | %doc misc/* |
e99f31df | 444 | %dir %{_emacs_lispdir}/%{name}-mode |
4b6581fc | 445 | %{_emacs_lispdir}/%{name}-mode/*.elc |
446 | %{_emacs_lispdir}/site-start.d/*.el | |
e99f31df | 447 | %endif |