]>
Commit | Line | Data |
---|---|---|
67113950 | 1 | # TODO |
4db2b9c4 | 2 | # - include ext/ in docs |
3 | # - replace ri with fastri | |
4 | # - patch ri to search multiple indexes (one per package), so RPMs can | |
5 | # install ri docs | |
e99f31df | 6 | # |
2acc5f17 | 7 | # Conditional build: |
d0f5536d | 8 | %bcond_without doc # skip generating docs (which is time-consuming). Intended for speed up test builds |
e99f31df | 9 | %bcond_without emacs # skip building package with ruby-mode for emacs |
15ecb21e | 10 | %bcond_without tk # skip building package with Tk bindings |
26fc6c3c | 11 | %bcond_with onigurma |
e99f31df | 12 | # |
68ec864f | 13 | %define ruby_ver 1.8 |
14 | %define ruby_ridir %{_datadir}/ri/%{ruby_ver}/system | |
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 |
26fc6c3c | 21 | Version: 1.8.7 |
a310037a | 22 | Release: 3 |
01204e8f | 23 | Epoch: 1 |
0a23e00f | 24 | License: The Ruby License |
6eb17ef6 | 25 | Group: Development/Languages |
a563469d | 26 | %define patchlevel 72 |
a310037a | 27 | Source0: ftp://ftp.ruby-lang.org/pub/ruby/1.8/%{name}-%{version}-p%{patchlevel}.tar.bz2 |
28 | # Source0-md5: 0b215c46b89b28d7ab8d56d96e72d5b9 | |
6ca6b15e | 29 | Source1: http://www.ibiblio.org/pub/languages/ruby/doc/%{name}-texi-1.4-en.tar.gz |
1451f854 | 30 | # Source1-md5: 839fda4af52b5c5c6d21f879f7fc62bf |
4ab119cd | 31 | Source2: http://www.math.sci.hokudai.ac.jp/~gotoken/ruby/%{name}-uguide-981227.tar.gz |
1451f854 | 32 | # Source2-md5: 24eadcd067278901da9ad70efb146b07 |
6ca6b15e | 33 | Source3: http://www.ibiblio.org/pub/languages/ruby/doc/%{name}faq-990927.tar.gz |
1451f854 | 34 | # Source3-md5: 634c25b14e19925d10af3720d72e8741 |
18e966a7 | 35 | Source4: irb.1 |
f9961a4a | 36 | Source5: http://www.geocities.jp/kosako3/oniguruma/archive/onigd2_5_9.tar.gz |
37 | # Source5-md5: 7e4c2b197387232afd9a11378feeb246 | |
bd429ed0 JB |
38 | %define stdlibdoc_version 0.10.1 |
39 | Source6: http://www.ruby-doc.org/download/stdlib/%{name}-doc-stdlib-%{stdlibdoc_version}.tgz | |
40 | # Source6-md5: 5437c281b44e7a4af142d2bd35eba407 | |
41 | Source7: http://www.ruby-doc.org/download/Ruby-1.8.1_ri_data.zip | |
53830491 | 42 | # Source7-md5: 96e97cdfa55ed197e0e6c39159394c82 |
b2789087 ER |
43 | Source8: erb.1 |
44 | Source9: rdoc.1 | |
45 | Source10: ri.1 | |
46 | Source11: testrb.1 | |
47 | Source12: %{name}-mode-init.el | |
1968db6d | 48 | Patch0: %{name}-info.patch |
a310037a | 49 | Patch1: %{name}-mkmf-shared.patch |
50 | Patch2: %{name}-require-rubygems-version.patch | |
51 | Patch3: %{name}-lib64.patch | |
7c36cd5d | 52 | URL: http://www.ruby-lang.org/ |
6eed9bfd | 53 | BuildRequires: autoconf |
53c95475 | 54 | BuildRequires: automake |
f0eb2dd9 | 55 | BuildRequires: db-devel |
e99f31df | 56 | %{?with_emacs:BuildRequires: emacs} |
e9f2c6fe | 57 | BuildRequires: gdbm-devel >= 1.8.3 |
1968db6d | 58 | BuildRequires: ncurses-devel |
f33fb184 | 59 | BuildRequires: openssl-devel |
933aeb0e | 60 | BuildRequires: readline-devel >= 4.2 |
7911cce0 | 61 | BuildRequires: sed >= 4.0 |
1968db6d | 62 | BuildRequires: texinfo |
15ecb21e | 63 | %if %{with tk} |
e14a2f74 | 64 | BuildRequires: tk-devel |
15ecb21e | 65 | %endif |
53830491 | 66 | BuildRequires: unzip |
f0eb2dd9 | 67 | Requires(post,postun): /sbin/ldconfig |
68ec864f | 68 | Provides: ruby(ver) = %{ruby_ver} |
ecce1c8a | 69 | Obsoletes: rdoc |
e14a2f74 | 70 | Obsoletes: ruby-REXML |
bb5582fa | 71 | Obsoletes: ruby-doc < 1.8.4 |
1be6ffc9 | 72 | Obsoletes: ruby-fastthread |
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 | から純粋なオブジェクト指向言語として設計されていますから,オブジェクト | |
94 | 指向プログラミングを手軽に行う事が出来ます.もちろん通常の手続き型のプ | |
95 | ログラミングも可能です. | |
7c36cd5d | 96 | |
a0a47c48 JR |
97 | %description -l pl.UTF-8 |
98 | Ruby to interpretowany język skryptowy, w sam raz dla łatwego i | |
99 | szybkiego pisania zorientowanych obiektowo programów. Ma wiele funkcji | |
100 | ułatwiających przetwarzanie plików tekstowych i wykonywanie prac | |
101 | związanych z zarządzaniem systemu (podobnie jak Perl). Jest prosty, | |
102 | rozszerzalny i przenośny. | |
6e2f9b3c | 103 | |
a0a47c48 JR |
104 | Ten pakiet zawiera tylko bibliotekę dzieloną i interpreter ruby. |
105 | Zainstaluj pakiet ruby-modules, jeżeli potrzebujesz w pełni | |
106 | funkcjonalnego środowiska ruby. | |
9fd96af7 | 107 | |
a0a47c48 JR |
108 | %description -l pt_BR.UTF-8 |
109 | Ruby é uma linguagem de script interpretada de programação orientada a | |
110 | objeto. Possui diversas características para processamento de texto. É | |
111 | simples, extensível e direta. | |
7c36cd5d | 112 | |
9fd96af7 | 113 | %package modules |
114 | Summary: Ruby standard modules and utilities | |
3c3949cf | 115 | Summary(pl.UTF-8): Standardowe moduły i narzędzia dla języka Ruby |
9fd96af7 | 116 | Group: Development/Languages |
117 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
68ec864f | 118 | Provides: ruby-modules(ver) = %{ruby_ver} |
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 |
f9961a4a | 221 | %setup -q -n %{name}-%{version}-p%{patchlevel} -a1 -a2 -a3 -a5 -a6 -a7 |
933aeb0e | 222 | %patch0 -p1 |
a310037a | 223 | %patch1 -p1 |
8b6ee5b1 | 224 | %patch2 -p1 |
a310037a | 225 | %patch3 -p1 |
4ab119cd | 226 | |
bb5582fa | 227 | find . -name '*.rb' -o -name '*.cgi' -o -name '*.test' -o -name 'ruby.1' \ |
228 | -o -name 'ruby.info*' -o -name '*.html' -o -name '*.tcl' -o -name '*.texi' \ | |
229 | | xargs %{__sed} -i 's,/usr/local/bin/,%{_bindir}/,' | |
e7754311 | 230 | |
4ab119cd | 231 | %build |
8ea447c1 | 232 | cp -f /usr/share/automake/config.sub . |
a5f9b7ff | 233 | |
26fc6c3c | 234 | %if %{with onigurma} |
78fb46ac | 235 | cd oniguruma |
8ea447c1 JB |
236 | %configure \ |
237 | --with-rubydir=.. | |
78fb46ac | 238 | %{__make} 18 |
239 | cd .. | |
26fc6c3c | 240 | %endif |
78fb46ac | 241 | |
8ea447c1 | 242 | %{__autoconf} |
ecde9c47 | 243 | %configure \ |
3a4dd1f6 | 244 | --enable-shared \ |
16a27f95 | 245 | --with-default-kcode=utf8 \ |
b66203d6 | 246 | --enable-pthread |
4ab119cd | 247 | |
cc468487 | 248 | %{__make} |
84438d27 | 249 | %{__make} clean -C %{name}-texi-1.4-en |
e20bcdfd | 250 | %{__make} info -C %{name}-texi-1.4-en |
aa58dbf5 | 251 | |
d0f5536d | 252 | %if %{with doc} |
6d5de039 | 253 | mkdir rdoc |
254 | ||
db241521 | 255 | RUBYLIB=".:lib:`find ext/ .ext/ -type d | tr '\n' ':'`" |
d58222f0 | 256 | export RUBYLIB |
43ca149b | 257 | LD_LIBRARY_PATH=$(pwd) |
258 | export LD_LIBRARY_PATH | |
d58222f0 | 259 | |
db241521 | 260 | ./miniruby bin/rdoc --inline-source --op rdoc/core \ |
a164aedf | 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 | |
db241521 | 276 | ./miniruby 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 | |
529ff870 | 291 | install -d $RPM_BUILD_ROOT{%{_datadir}/%{name},%{_infodir},%{_mandir}/man1,%{_examplesdir}/%{name}-%{version},%{ruby_ridir}} |
1968db6d | 292 | |
ecde9c47 JB |
293 | %{__make} install \ |
294 | DESTDIR=$RPM_BUILD_ROOT | |
1968db6d | 295 | |
9fd96af7 | 296 | cp -Rf sample/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
4ab119cd | 297 | install %{name}-texi-1.4-en/ruby.info* $RPM_BUILD_ROOT%{_infodir} |
18e966a7 | 298 | install %{SOURCE4} $RPM_BUILD_ROOT%{_mandir}/man1 |
b2789087 | 299 | install %{SOURCE8} $RPM_BUILD_ROOT%{_mandir}/man1 |
9fd96af7 | 300 | install %{SOURCE9} $RPM_BUILD_ROOT%{_mandir}/man1 |
301 | install %{SOURCE10} $RPM_BUILD_ROOT%{_mandir}/man1 | |
302 | install %{SOURCE11} $RPM_BUILD_ROOT%{_mandir}/man1 | |
18e966a7 | 303 | |
68ec864f | 304 | cp -Rf ruby-uguide guide |
305 | cp -Rf rubyfaq faq | |
1968db6d | 306 | |
d0f5536d | 307 | %{?with_doc:cp -Rf ri/%{ruby_ver}/system/* $RPM_BUILD_ROOT%{ruby_ridir}} |
aa58dbf5 | 308 | |
e99f31df | 309 | # ruby emacs mode - borrowed from FC-4 |
310 | %if %{with emacs} | |
a563469d | 311 | install -d $RPM_BUILD_ROOT%{_emacs_lispdir}/{%{name}-mode,site-start.d} |
e99f31df | 312 | install misc/*.el $RPM_BUILD_ROOT%{_emacs_lispdir}/%{name}-mode |
113ad3d1 | 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 | |
529ff870 JB |
337 | %attr(755,root,root) %{_libdir}/libruby.so.*.*.* |
338 | %attr(755,root,root) %ghost %{_libdir}/libruby.so.1.8 | |
9fd96af7 | 339 | %{_mandir}/man1/ruby.1* |
529ff870 | 340 | %{_infodir}/ruby.info* |
68ec864f | 341 | %dir %{_libdir}/%{name} |
342 | %dir %{_libdir}/%{name}/%{ruby_ver} | |
343 | %dir %{_libdir}/%{name}/%{ruby_ver}/*-linux* | |
95dfb220 | 344 | %dir %{_libdir}/%{name}/site_ruby |
345 | %dir %{_libdir}/%{name}/site_ruby/%{ruby_ver} | |
346 | %dir %{_libdir}/%{name}/site_ruby/%{ruby_ver}/*-linux* | |
3ea9be56 | 347 | %dir %{_libdir}/%{name}/vendor_ruby |
348 | %dir %{_libdir}/%{name}/vendor_ruby/%{ruby_ver} | |
349 | %dir %{_libdir}/%{name}/vendor_ruby/%{ruby_ver}/*-linux* | |
68ec864f | 350 | %dir %{_datadir}/%{name} |
351 | %dir %{_datadir}/ri | |
352 | %dir %{_datadir}/ri/%{ruby_ver} | |
353 | %dir %{_datadir}/ri/%{ruby_ver}/system | |
9fd96af7 | 354 | |
355 | %files devel | |
356 | %defattr(644,root,root,755) | |
529ff870 | 357 | %attr(755,root,root) %{_libdir}/libruby.so |
68ec864f | 358 | %{_libdir}/%{name}/%{ruby_ver}/*/*.h |
9fd96af7 | 359 | |
360 | %files static | |
361 | %defattr(644,root,root,755) | |
529ff870 | 362 | %{_libdir}/libruby-static.a |
9fd96af7 | 363 | |
15ecb21e | 364 | %if %{with tk} |
9fd96af7 | 365 | %files tk |
366 | %defattr(644,root,root,755) | |
68ec864f | 367 | %{_libdir}/%{name}/%{ruby_ver}/tcltk.rb |
368 | %{_libdir}/%{name}/%{ruby_ver}/tk*.rb | |
369 | %{_libdir}/%{name}/%{ruby_ver}/tk | |
370 | %{_libdir}/%{name}/%{ruby_ver}/tkextlib | |
371 | %attr(755,root,root) %{_libdir}/%{name}/%{ruby_ver}/*-linux*/t*.so | |
15ecb21e | 372 | %endif |
9fd96af7 | 373 | |
374 | %files modules | |
375 | %defattr(644,root,root,755) | |
376 | %attr(755,root,root) %{_bindir}/erb | |
377 | %attr(755,root,root) %{_bindir}/irb | |
378 | %attr(755,root,root) %{_bindir}/rdoc | |
379 | %attr(755,root,root) %{_bindir}/ri | |
380 | %attr(755,root,root) %{_bindir}/testrb | |
68ec864f | 381 | %{_libdir}/%{name}/%{ruby_ver}/bigdecimal |
382 | %{_libdir}/%{name}/%{ruby_ver}/cgi | |
383 | %{_libdir}/%{name}/%{ruby_ver}/date | |
db241521 | 384 | %{_libdir}/%{name}/%{ruby_ver}/digest |
68ec864f | 385 | %{_libdir}/%{name}/%{ruby_ver}/dl |
386 | %{_libdir}/%{name}/%{ruby_ver}/drb | |
387 | %{_libdir}/%{name}/%{ruby_ver}/io | |
388 | %{_libdir}/%{name}/%{ruby_ver}/irb | |
389 | %{_libdir}/%{name}/%{ruby_ver}/net | |
390 | %{_libdir}/%{name}/%{ruby_ver}/openssl | |
391 | %{_libdir}/%{name}/%{ruby_ver}/optparse | |
392 | %{_libdir}/%{name}/%{ruby_ver}/racc | |
393 | %{_libdir}/%{name}/%{ruby_ver}/rdoc | |
394 | %{_libdir}/%{name}/%{ruby_ver}/rexml | |
395 | %{_libdir}/%{name}/%{ruby_ver}/rinda | |
396 | %{_libdir}/%{name}/%{ruby_ver}/rss | |
397 | %{_libdir}/%{name}/%{ruby_ver}/runit | |
398 | %{_libdir}/%{name}/%{ruby_ver}/shell | |
399 | %{_libdir}/%{name}/%{ruby_ver}/soap | |
400 | %{_libdir}/%{name}/%{ruby_ver}/test | |
401 | %{_libdir}/%{name}/%{ruby_ver}/uri | |
402 | %{_libdir}/%{name}/%{ruby_ver}/webrick | |
403 | %{_libdir}/%{name}/%{ruby_ver}/wsdl | |
404 | %{_libdir}/%{name}/%{ruby_ver}/xmlrpc | |
405 | %{_libdir}/%{name}/%{ruby_ver}/xsd | |
406 | %{_libdir}/%{name}/%{ruby_ver}/yaml | |
407 | %{_libdir}/%{name}/%{ruby_ver}/[A-Za-s]*.rb | |
408 | %{_libdir}/%{name}/%{ruby_ver}/tempfile.rb | |
409 | %{_libdir}/%{name}/%{ruby_ver}/thread.rb | |
410 | %{_libdir}/%{name}/%{ruby_ver}/thwait.rb | |
411 | %{_libdir}/%{name}/%{ruby_ver}/time.rb | |
412 | %{_libdir}/%{name}/%{ruby_ver}/timeout.rb | |
413 | %{_libdir}/%{name}/%{ruby_ver}/tmpdir.rb | |
414 | %{_libdir}/%{name}/%{ruby_ver}/tracer.rb | |
415 | %{_libdir}/%{name}/%{ruby_ver}/tsort.rb | |
416 | %{_libdir}/%{name}/%{ruby_ver}/[u-z]*.rb | |
417 | %dir %{_libdir}/%{name}/%{ruby_ver}/*-linux*/digest | |
418 | %dir %{_libdir}/%{name}/%{ruby_ver}/*-linux*/io | |
419 | %dir %{_libdir}/%{name}/%{ruby_ver}/*-linux*/racc | |
420 | %attr(755,root,root) %{_libdir}/%{name}/%{ruby_ver}/*-linux*/[a-s]*.so | |
db241521 | 421 | %attr(755,root,root) %{_libdir}/%{name}/%{ruby_ver}/*-linux*/thread.so |
68ec864f | 422 | %attr(755,root,root) %{_libdir}/%{name}/%{ruby_ver}/*-linux*/[u-z]*.so |
423 | %attr(755,root,root) %{_libdir}/%{name}/%{ruby_ver}/*-linux*/digest/*.so | |
424 | %attr(755,root,root) %{_libdir}/%{name}/%{ruby_ver}/*-linux*/io/*.so | |
425 | %attr(755,root,root) %{_libdir}/%{name}/%{ruby_ver}/*-linux*/racc/*.so | |
426 | %{_libdir}/%{name}/%{ruby_ver}/*-linux*/rbconfig.rb | |
9fd96af7 | 427 | %{_mandir}/man1/erb.1* |
428 | %{_mandir}/man1/irb.1* | |
429 | %{_mandir}/man1/rdoc.1* | |
430 | %{_mandir}/man1/ri.1* | |
431 | %{_mandir}/man1/testrb.1* | |
9fd96af7 | 432 | |
433 | %files doc | |
9434194f | 434 | %defattr(644,root,root,755) |
d0f5536d | 435 | %doc faq guide |
436 | %{?with_doc:%doc rdoc} | |
87b9c30a | 437 | |
d0f5536d | 438 | %if %{with doc} |
9fd96af7 | 439 | %files doc-ri |
e40bfe06 | 440 | %defattr(644,root,root,755) |
68ec864f | 441 | %{_datadir}/ri/%{ruby_ver}/system/* |
d0f5536d | 442 | %endif |
265d0efe | 443 | |
9fd96af7 | 444 | %files examples |
616a12d8 | 445 | %defattr(644,root,root,755) |
9fd96af7 | 446 | %{_examplesdir}/%{name}-%{version} |
e99f31df | 447 | |
448 | %if %{with emacs} | |
449 | %files emacs-mode | |
450 | %defattr(644,root,root,755) | |
4b6581fc | 451 | %doc misc/* |
e99f31df | 452 | %dir %{_emacs_lispdir}/%{name}-mode |
4b6581fc | 453 | %{_emacs_lispdir}/%{name}-mode/*.elc |
454 | %{_emacs_lispdir}/site-start.d/*.el | |
e99f31df | 455 | %endif |