]>
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 |
7c1d9960 | 12 | %define patchlevel 174 |
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} |
c45aca49 | 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 |
7c1d9960 | 26 | # Source0-md5: 88c45aaf627b4404e5e4273cb03ba2ee |
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 | |
2efa4f24 | 49 | Patch4: %{name}-imap-quicksync-fix.patch |
7c36cd5d | 50 | URL: http://www.ruby-lang.org/ |
6eed9bfd | 51 | BuildRequires: autoconf |
53c95475 | 52 | BuildRequires: automake |
f0eb2dd9 | 53 | BuildRequires: db-devel |
e99f31df | 54 | %{?with_emacs:BuildRequires: emacs} |
e9f2c6fe | 55 | BuildRequires: gdbm-devel >= 1.8.3 |
1968db6d | 56 | BuildRequires: ncurses-devel |
f33fb184 | 57 | BuildRequires: openssl-devel |
933aeb0e | 58 | BuildRequires: readline-devel >= 4.2 |
7911cce0 | 59 | BuildRequires: sed >= 4.0 |
1968db6d | 60 | BuildRequires: texinfo |
15ecb21e | 61 | %if %{with tk} |
e14a2f74 | 62 | BuildRequires: tk-devel |
15ecb21e | 63 | %endif |
53830491 | 64 | BuildRequires: unzip |
f0eb2dd9 | 65 | Requires(post,postun): /sbin/ldconfig |
68ec864f | 66 | Provides: ruby(ver) = %{ruby_ver} |
ecce1c8a | 67 | Obsoletes: rdoc |
e14a2f74 | 68 | Obsoletes: ruby-REXML |
bb5582fa | 69 | Obsoletes: ruby-doc < 1.8.4 |
1be6ffc9 | 70 | Obsoletes: ruby-fastthread |
584b8bcb | 71 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
4ab119cd | 72 | |
8ea447c1 | 73 | # bleh, some nasty (gcc or ruby) bug still not fixed |
cc2dcaa2 | 74 | # (SEGV or "unexpected break" on miniruby run during build) |
8ea447c1 JB |
75 | %define specflags_ia64 -O0 |
76 | ||
88546731 | 77 | # ruby needs frame pointers for correct exception handling |
b66203d6 | 78 | %define specflags_ia32 -fno-omit-frame-pointer |
88546731 | 79 | |
4ab119cd | 80 | %description |
81 | Ruby is the interpreted scripting language for quick and easy | |
82 | object-oriented programming. It has many features to process text | |
83 | files and to do system management tasks (as in Perl). It is simple, | |
84 | straight-forward, extensible, and portable. | |
85 | ||
9fd96af7 | 86 | This package contains only shared library and ruby interpreter. To get |
87 | full-functional ruby environment install ruby-modules package. | |
88 | ||
a0a47c48 JR |
89 | %description -l ja.UTF-8 |
90 | Rubyはシンプルかつ強力なオブジェクト指向スクリプト言語です.Rubyは最初 | |
91 | から純粋なオブジェクト指向言語として設計されていますから,オブジェクト | |
92 | 指向プログラミングを手軽に行う事が出来ます.もちろん通常の手続き型のプ | |
93 | ログラミングも可能です. | |
7c36cd5d | 94 | |
a0a47c48 JR |
95 | %description -l pl.UTF-8 |
96 | Ruby to interpretowany język skryptowy, w sam raz dla łatwego i | |
97 | szybkiego pisania zorientowanych obiektowo programów. Ma wiele funkcji | |
98 | ułatwiających przetwarzanie plików tekstowych i wykonywanie prac | |
99 | związanych z zarządzaniem systemu (podobnie jak Perl). Jest prosty, | |
100 | rozszerzalny i przenośny. | |
6e2f9b3c | 101 | |
a0a47c48 JR |
102 | Ten pakiet zawiera tylko bibliotekę dzieloną i interpreter ruby. |
103 | Zainstaluj pakiet ruby-modules, jeżeli potrzebujesz w pełni | |
104 | funkcjonalnego środowiska ruby. | |
9fd96af7 | 105 | |
a0a47c48 JR |
106 | %description -l pt_BR.UTF-8 |
107 | Ruby é uma linguagem de script interpretada de programação orientada a | |
108 | objeto. Possui diversas características para processamento de texto. É | |
109 | simples, extensível e direta. | |
7c36cd5d | 110 | |
9fd96af7 | 111 | %package modules |
112 | Summary: Ruby standard modules and utilities | |
3c3949cf | 113 | Summary(pl.UTF-8): Standardowe moduły i narzędzia dla języka Ruby |
9fd96af7 | 114 | Group: Development/Languages |
115 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
68ec864f | 116 | Provides: ruby-modules(ver) = %{ruby_ver} |
9fd96af7 | 117 | |
118 | %description modules | |
119 | Ruby standard modules and utilities: | |
120 | - erb - Tiny eRuby | |
121 | - rdoc - documentation tool for source code | |
122 | - irb - interactive Ruby | |
123 | - ri - Ruby interactive reference | |
7911cce0 | 124 | - testrb - automatic runner for Test::Unit of Ruby |
9fd96af7 | 125 | |
a0a47c48 JR |
126 | %description modules -l pl.UTF-8 |
127 | Standardowe moduły i narzędzia Ruby: | |
128 | - erb - mały eRuby | |
129 | - rdoc - narzędzie do dokumentowania kodu źródłowego | |
9fd96af7 | 130 | - irb - interaktywny Ruby |
131 | - ri - interaktywna dokumentacja Ruby | |
7911cce0 | 132 | - testrb - automatyczny runner dla Ruby Test::Unit |
9fd96af7 | 133 | |
265d0efe | 134 | %package tk |
135 | Summary: Ruby/Tk bindings | |
3c3949cf | 136 | Summary(pl.UTF-8): Wiązania Ruby/Tk |
e65aac33 | 137 | Group: Development/Languages |
69b51dc9 | 138 | Requires: %{name}-modules = %{epoch}:%{version}-%{release} |
265d0efe | 139 | |
140 | %description tk | |
e65aac33 | 141 | This pachage contains Ruby/Tk bindings. |
142 | ||
a0a47c48 JR |
143 | %description tk -l pl.UTF-8 |
144 | Ten pakiet zawiera wiązania Ruby/Tk. | |
265d0efe | 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 |
6cd63ddf | 219 | %setup -q -n %{name}-%{basever}-p%{patchlevel} -a1 -a2 -a3 -a5 -a6 -a7 |
933aeb0e | 220 | %patch0 -p1 |
a310037a | 221 | %patch1 -p1 |
8b6ee5b1 | 222 | %patch2 -p1 |
a310037a | 223 | %patch3 -p1 |
4fcbb012 | 224 | %patch4 -p1 |
4ab119cd | 225 | |
09a25e86 AM |
226 | find -type f \( -name '*.rb' -o -name '*.cgi' -o -name '*.test' -o -name 'ruby.1' \ |
227 | -o -name 'ruby.info*' -o -name '*.html' -o -name '*.tcl' -o -name '*.texi' \) \ | |
bb5582fa | 228 | | xargs %{__sed} -i 's,/usr/local/bin/,%{_bindir}/,' |
e7754311 | 229 | |
4ab119cd | 230 | %build |
8ea447c1 | 231 | cp -f /usr/share/automake/config.sub . |
a5f9b7ff | 232 | |
26fc6c3c | 233 | %if %{with onigurma} |
78fb46ac | 234 | cd oniguruma |
8ea447c1 JB |
235 | %configure \ |
236 | --with-rubydir=.. | |
78fb46ac | 237 | %{__make} 18 |
238 | cd .. | |
26fc6c3c | 239 | %endif |
78fb46ac | 240 | |
8ea447c1 | 241 | %{__autoconf} |
ecde9c47 | 242 | %configure \ |
3a4dd1f6 | 243 | --enable-shared \ |
16a27f95 | 244 | --with-default-kcode=utf8 \ |
b66203d6 | 245 | --enable-pthread |
4ab119cd | 246 | |
cc468487 | 247 | %{__make} |
84438d27 | 248 | %{__make} clean -C %{name}-texi-1.4-en |
e20bcdfd | 249 | %{__make} info -C %{name}-texi-1.4-en |
aa58dbf5 | 250 | |
d0f5536d | 251 | %if %{with doc} |
6d5de039 | 252 | mkdir rdoc |
253 | ||
b4ca71cd | 254 | RUBYLIB=".:lib:$(find ext .ext -type d | tr '\n' ':')" |
d58222f0 | 255 | export RUBYLIB |
43ca149b | 256 | LD_LIBRARY_PATH=$(pwd) |
257 | export LD_LIBRARY_PATH | |
d58222f0 | 258 | |
db241521 | 259 | ./miniruby bin/rdoc --inline-source --op rdoc/core \ |
a164aedf | 260 | array.c bignum.c class.c compar.c dir.c dln.c dmyext.c enum.c \ |
53830491 | 261 | error.c eval.c file.c gc.c hash.c inits.c io.c lex.c main.c marshal.c \ |
262 | math.c numeric.c object.c pack.c parse.c prec.c process.c random.c range.c \ | |
263 | re.c regex.c ruby.c signal.c sprintf.c st.c string.c struct.c time.c util.c \ | |
264 | variable.c version.c \ | |
265 | lib/English.rb lib/abbrev.rb lib/base64.rb lib/benchmark.rb lib/cgi.rb \ | |
266 | lib/cgi/session.rb lib/complex.rb lib/date.rb lib/fileutils.rb lib/find.rb \ | |
a164aedf | 267 | lib/generator.rb lib/logger.rb lib/matrix.rb lib/observer.rb \ |
268 | lib/pathname.rb lib/set.rb lib/shellwords.rb lib/singleton.rb \ | |
269 | lib/tempfile.rb lib/test/unit.rb lib/thread.rb lib/thwait.rb \ | |
270 | lib/time.rb lib/yaml.rb | |
53830491 | 271 | |
272 | mv ruby-doc-stdlib-%{stdlibdoc_version}/stdlib rdoc/stdlib | |
68ec864f | 273 | mv ri/%{ruby_ver}/site ri/%{ruby_ver}/system |
53830491 | 274 | |
db241521 | 275 | ./miniruby bin/rdoc --ri -o ri/%{ruby_ver}/system \ |
a164aedf | 276 | array.c bignum.c class.c compar.c dir.c dln.c \ |
53830491 | 277 | dmyext.c enum.c error.c eval.c file.c gc.c hash.c inits.c io.c lex.c main.c \ |
278 | marshal.c math.c numeric.c object.c pack.c parse.c prec.c process.c \ | |
279 | random.c range.c re.c regex.c ruby.c signal.c sprintf.c st.c string.c \ | |
280 | struct.c time.c util.c variable.c version.c \ | |
281 | lib/English.rb lib/abbrev.rb lib/base64.rb lib/benchmark.rb lib/cgi.rb \ | |
282 | lib/cgi/session.rb lib/complex.rb lib/date.rb lib/fileutils.rb lib/find.rb \ | |
283 | lib/generator.rb lib/logger.rb lib/matrix.rb lib/observer.rb lib/pathname.rb \ | |
284 | lib/set.rb lib/shellwords.rb lib/singleton.rb lib/tempfile.rb \ | |
285 | lib/test/unit.rb lib/thread.rb lib/thwait.rb lib/time.rb lib/yaml.rb | |
d0f5536d | 286 | %endif |
53830491 | 287 | |
4ab119cd | 288 | %install |
289 | rm -rf $RPM_BUILD_ROOT | |
7c7c6ea6 | 290 | install -d $RPM_BUILD_ROOT{%{_datadir}/%{name},%{_infodir},%{_mandir}/man1,%{_examplesdir}/%{name}-%{version},%{ruby_ridir},%{ruby_rdocdir}} |
1968db6d | 291 | |
ecde9c47 JB |
292 | %{__make} install \ |
293 | DESTDIR=$RPM_BUILD_ROOT | |
1968db6d | 294 | |
9fd96af7 | 295 | cp -Rf sample/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
4ab119cd | 296 | install %{name}-texi-1.4-en/ruby.info* $RPM_BUILD_ROOT%{_infodir} |
18e966a7 | 297 | install %{SOURCE4} $RPM_BUILD_ROOT%{_mandir}/man1 |
b2789087 | 298 | install %{SOURCE8} $RPM_BUILD_ROOT%{_mandir}/man1 |
9fd96af7 | 299 | install %{SOURCE9} $RPM_BUILD_ROOT%{_mandir}/man1 |
300 | install %{SOURCE10} $RPM_BUILD_ROOT%{_mandir}/man1 | |
301 | install %{SOURCE11} $RPM_BUILD_ROOT%{_mandir}/man1 | |
18e966a7 | 302 | |
68ec864f | 303 | cp -Rf ruby-uguide guide |
304 | cp -Rf rubyfaq faq | |
1968db6d | 305 | |
d0f5536d | 306 | %{?with_doc:cp -Rf ri/%{ruby_ver}/system/* $RPM_BUILD_ROOT%{ruby_ridir}} |
aa58dbf5 | 307 | |
e99f31df | 308 | # ruby emacs mode - borrowed from FC-4 |
309 | %if %{with emacs} | |
a563469d | 310 | install -d $RPM_BUILD_ROOT%{_emacs_lispdir}/{%{name}-mode,site-start.d} |
e99f31df | 311 | install misc/*.el $RPM_BUILD_ROOT%{_emacs_lispdir}/%{name}-mode |
113ad3d1 | 312 | rm -f $RPM_BUILD_ROOT%{_emacs_lispdir}/%{name}-mode/rubydb2x.el* |
b2789087 | 313 | install %{SOURCE12} $RPM_BUILD_ROOT%{_emacs_lispdir}/site-start.d |
b4ca71cd | 314 | cat << 'EOF' > path.el |
e99f31df | 315 | (setq load-path (cons "." load-path) byte-compile-warnings nil) |
316 | EOF | |
317 | emacs --no-site-file -q -batch -l path.el -f batch-byte-compile $RPM_BUILD_ROOT%{_emacs_lispdir}/%{name}-mode/*.el | |
318 | rm -f path.el* | |
319 | %endif | |
320 | ||
4ab119cd | 321 | %clean |
322 | rm -rf $RPM_BUILD_ROOT | |
323 | ||
b4ca71cd ER |
324 | %post -p /sbin/postshell |
325 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
c62c2faf | 326 | /sbin/ldconfig |
4ab119cd | 327 | |
b4ca71cd ER |
328 | %postun -p /sbin/postshell |
329 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
4ab119cd | 330 | /sbin/ldconfig |
331 | ||
332 | %files | |
333 | %defattr(644,root,root,755) | |
9fd96af7 | 334 | %doc README README.EXT ChangeLog ToDo |
335 | %attr(755,root,root) %{_bindir}/ruby | |
529ff870 JB |
336 | %attr(755,root,root) %{_libdir}/libruby.so.*.*.* |
337 | %attr(755,root,root) %ghost %{_libdir}/libruby.so.1.8 | |
9fd96af7 | 338 | %{_mandir}/man1/ruby.1* |
529ff870 | 339 | %{_infodir}/ruby.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* | |
3ea9be56 | 346 | %dir %{_libdir}/%{name}/vendor_ruby |
347 | %dir %{_libdir}/%{name}/vendor_ruby/%{ruby_ver} | |
348 | %dir %{_libdir}/%{name}/vendor_ruby/%{ruby_ver}/*-linux* | |
68ec864f | 349 | %dir %{_datadir}/%{name} |
350 | %dir %{_datadir}/ri | |
351 | %dir %{_datadir}/ri/%{ruby_ver} | |
352 | %dir %{_datadir}/ri/%{ruby_ver}/system | |
b4ca71cd | 353 | %dir %{ruby_rdocdir} |
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 |