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