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