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