]>
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 |
e99f31df | 6 | # |
374c5b6e | 7 | %define ruby_ver 1.9 |
6cd63ddf | 8 | %define stdlibdoc_version 0.10.1 |
ef29702a JR |
9 | %define patchlevel 378 |
10 | %define basever 1.9.1 | |
6e2f9b3c | 11 | Summary: Ruby - interpreted scripting language |
3c3949cf ER |
12 | Summary(ja.UTF-8): オブジェクト指向言語Rubyインタプリタ |
13 | Summary(pl.UTF-8): Ruby - interpretowany język skryptowy | |
14 | Summary(pt_BR.UTF-8): Linguagem de script orientada a objeto | |
15 | Summary(zh_CN.UTF-8): ruby - 一种快速高效的面向对象脚本编程语言 | |
4ab119cd | 16 | Name: ruby |
6cd63ddf | 17 | Version: %{basever}.%{patchlevel} |
a98c485a | 18 | Release: 8 |
01204e8f | 19 | Epoch: 1 |
0a23e00f | 20 | License: The Ruby License |
6eb17ef6 | 21 | Group: Development/Languages |
40979579 | 22 | Source0: ftp://ftp.ruby-lang.org/pub/ruby/%{name}-%{basever}-p%{patchlevel}.tar.bz2 |
ef29702a JR |
23 | # Source0-md5: 5922459622a23612eb9b68a3586cb5f8 |
24 | Source1: http://www.ruby-doc.org/download/%{name}-doc-bundle.tar.gz | |
a94e3361 | 25 | # Source1-md5: ad1af0043be98ba1a4f6d0185df63876 |
ef29702a JR |
26 | Source2: http://www.ruby-doc.org/download/stdlib/%{name}-doc-stdlib-%{stdlibdoc_version}.tgz |
27 | # Source2-md5: 5437c281b44e7a4af142d2bd35eba407 | |
28 | Source3: rdoc.1 | |
29 | Source4: testrb.1 | |
30 | Source5: %{name}-mode-init.el | |
31 | Patch0: %{name}-mkmf-shared.patch | |
32 | Patch1: %{name}-lib64.patch | |
a98c485a | 33 | Patch2: %{name}-openssl.patch |
7c36cd5d | 34 | URL: http://www.ruby-lang.org/ |
6eed9bfd | 35 | BuildRequires: autoconf |
53c95475 | 36 | BuildRequires: automake |
cc4f6b84 | 37 | BuildRequires: bison |
f0eb2dd9 | 38 | BuildRequires: db-devel |
e99f31df | 39 | %{?with_emacs:BuildRequires: emacs} |
e9f2c6fe | 40 | BuildRequires: gdbm-devel >= 1.8.3 |
1968db6d | 41 | BuildRequires: ncurses-devel |
f33fb184 | 42 | BuildRequires: openssl-devel |
933aeb0e | 43 | BuildRequires: readline-devel >= 4.2 |
cc4f6b84 | 44 | BuildRequires: ruby-modules |
7911cce0 | 45 | BuildRequires: sed >= 4.0 |
15ecb21e | 46 | %if %{with tk} |
e14a2f74 | 47 | BuildRequires: tk-devel |
15ecb21e | 48 | %endif |
f0eb2dd9 | 49 | Requires(post,postun): /sbin/ldconfig |
68ec864f | 50 | Provides: ruby(ver) = %{ruby_ver} |
ecce1c8a | 51 | Obsoletes: rdoc |
e14a2f74 | 52 | Obsoletes: ruby-REXML |
bb5582fa | 53 | Obsoletes: ruby-doc < 1.8.4 |
1be6ffc9 | 54 | Obsoletes: ruby-fastthread |
584b8bcb | 55 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
4ab119cd | 56 | |
8ea447c1 | 57 | # bleh, some nasty (gcc or ruby) bug still not fixed |
cc2dcaa2 | 58 | # (SEGV or "unexpected break" on miniruby run during build) |
8ea447c1 JB |
59 | %define specflags_ia64 -O0 |
60 | ||
88546731 | 61 | # ruby needs frame pointers for correct exception handling |
b66203d6 | 62 | %define specflags_ia32 -fno-omit-frame-pointer |
88546731 | 63 | |
4ab119cd | 64 | %description |
65 | Ruby is the interpreted scripting language for quick and easy | |
66 | object-oriented programming. It has many features to process text | |
67 | files and to do system management tasks (as in Perl). It is simple, | |
68 | straight-forward, extensible, and portable. | |
69 | ||
9fd96af7 | 70 | This package contains only shared library and ruby interpreter. To get |
71 | full-functional ruby environment install ruby-modules package. | |
72 | ||
a0a47c48 JR |
73 | %description -l ja.UTF-8 |
74 | Rubyはシンプルかつ強力なオブジェクト指向スクリプト言語です.Rubyは最初 | |
75 | から純粋なオブジェクト指向言語として設計されていますから,オブジェクト | |
76 | 指向プログラミングを手軽に行う事が出来ます.もちろん通常の手続き型のプ | |
77 | ログラミングも可能です. | |
7c36cd5d | 78 | |
a0a47c48 JR |
79 | %description -l pl.UTF-8 |
80 | Ruby to interpretowany język skryptowy, w sam raz dla łatwego i | |
81 | szybkiego pisania zorientowanych obiektowo programów. Ma wiele funkcji | |
82 | ułatwiających przetwarzanie plików tekstowych i wykonywanie prac | |
83 | związanych z zarządzaniem systemu (podobnie jak Perl). Jest prosty, | |
84 | rozszerzalny i przenośny. | |
6e2f9b3c | 85 | |
a0a47c48 JR |
86 | Ten pakiet zawiera tylko bibliotekę dzieloną i interpreter ruby. |
87 | Zainstaluj pakiet ruby-modules, jeżeli potrzebujesz w pełni | |
88 | funkcjonalnego środowiska ruby. | |
9fd96af7 | 89 | |
a0a47c48 JR |
90 | %description -l pt_BR.UTF-8 |
91 | Ruby é uma linguagem de script interpretada de programação orientada a | |
92 | objeto. Possui diversas características para processamento de texto. É | |
93 | simples, extensível e direta. | |
7c36cd5d | 94 | |
9fd96af7 | 95 | %package modules |
96 | Summary: Ruby standard modules and utilities | |
3c3949cf | 97 | Summary(pl.UTF-8): Standardowe moduły i narzędzia dla języka Ruby |
9fd96af7 | 98 | Group: Development/Languages |
99 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
68ec864f | 100 | Provides: ruby-modules(ver) = %{ruby_ver} |
9fd96af7 | 101 | |
102 | %description modules | |
103 | Ruby standard modules and utilities: | |
104 | - erb - Tiny eRuby | |
105 | - rdoc - documentation tool for source code | |
106 | - irb - interactive Ruby | |
107 | - ri - Ruby interactive reference | |
7911cce0 | 108 | - testrb - automatic runner for Test::Unit of Ruby |
9fd96af7 | 109 | |
a0a47c48 JR |
110 | %description modules -l pl.UTF-8 |
111 | Standardowe moduły i narzędzia Ruby: | |
112 | - erb - mały eRuby | |
113 | - rdoc - narzędzie do dokumentowania kodu źródłowego | |
9fd96af7 | 114 | - irb - interaktywny Ruby |
115 | - ri - interaktywna dokumentacja Ruby | |
7911cce0 | 116 | - testrb - automatyczny runner dla Ruby Test::Unit |
9fd96af7 | 117 | |
265d0efe | 118 | %package tk |
119 | Summary: Ruby/Tk bindings | |
3c3949cf | 120 | Summary(pl.UTF-8): Wiązania Ruby/Tk |
e65aac33 | 121 | Group: Development/Languages |
69b51dc9 | 122 | Requires: %{name}-modules = %{epoch}:%{version}-%{release} |
265d0efe | 123 | |
124 | %description tk | |
e65aac33 | 125 | This pachage contains Ruby/Tk bindings. |
126 | ||
a0a47c48 JR |
127 | %description tk -l pl.UTF-8 |
128 | Ten pakiet zawiera wiązania Ruby/Tk. | |
265d0efe | 129 | |
e14a2f74 | 130 | %package devel |
e14a2f74 | 131 | Summary: Ruby development libraries |
3c3949cf | 132 | Summary(pl.UTF-8): Biblioteki programistyczne interpretera języka Ruby |
9434194f | 133 | Group: Development/Languages |
9fd96af7 | 134 | Requires: %{name}-modules = %{epoch}:%{version}-%{release} |
e14a2f74 | 135 | |
136 | %description devel | |
9434194f JB |
137 | Ruby development libraries. |
138 | ||
a0a47c48 JR |
139 | %description devel -l pl.UTF-8 |
140 | Biblioteki programistyczne interpretera języka Ruby. | |
e14a2f74 | 141 | |
87b9c30a | 142 | %package static |
143 | Summary: Ruby static libraries | |
3c3949cf | 144 | Summary(pl.UTF-8): Biblioteki statyczne Ruby |
87b9c30a | 145 | Group: Development/Languages |
f89d855e | 146 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
87b9c30a | 147 | |
148 | %description static | |
149 | Ruby static libraries. | |
150 | ||
a0a47c48 | 151 | %description static -l pl.UTF-8 |
87b9c30a | 152 | Biblioteki statyczne Ruby. |
153 | ||
754b419a | 154 | %package doc |
9fd96af7 | 155 | Summary: Ruby HTML documentation |
3c3949cf | 156 | Summary(pl.UTF-8): Dokumentacja HTML do Ruby |
9fd96af7 | 157 | Group: Documentation |
158 | ||
159 | %description doc | |
160 | Ruby HTML documentation: FAQ, guide, core and standard library. | |
161 | ||
a0a47c48 | 162 | %description doc -l pl.UTF-8 |
d99a4382 | 163 | Dokumentacja HTML do Ruby: FAQ, przewodnik, dokumentacja dla core i |
164 | stdlib. | |
69b51dc9 | 165 | |
9fd96af7 | 166 | %package doc-ri |
167 | Summary: Ruby ri documentation | |
3c3949cf | 168 | Summary(pl.UTF-8): Dokumentacja Ruby w formacie ri |
9fd96af7 | 169 | Group: Documentation |
69b51dc9 | 170 | Requires: %{name}-modules = %{epoch}:%{version}-%{release} |
9fd96af7 | 171 | |
172 | %description doc-ri | |
173 | Ruby ri documentation. | |
174 | ||
a0a47c48 | 175 | %description doc-ri -l pl.UTF-8 |
9fd96af7 | 176 | Dokumentacja Ruby w formacie ri. |
177 | ||
178 | %package examples | |
179 | Summary: Ruby examples | |
3c3949cf | 180 | Summary(pl.UTF-8): Przykłady dla języka Ruby |
9fd96af7 | 181 | Group: Development/Languages |
182 | ||
183 | %description examples | |
184 | Ruby examples. | |
185 | ||
a0a47c48 JR |
186 | %description examples -l pl.UTF-8 |
187 | Przykłady programów w języku Ruby. | |
9fd96af7 | 188 | |
e99f31df | 189 | %package emacs-mode |
190 | Summary: Ruby mode and debugger for Emacs | |
3c3949cf | 191 | Summary(pl.UTF-8): Tryb Ruby i debugger dla Emacsa |
2acc5f17 JB |
192 | Group: Development/Tools |
193 | Requires: %{name}-modules = %{epoch}:%{version}-%{release} | |
e99f31df | 194 | Requires: emacs-common |
e99f31df | 195 | |
196 | %description emacs-mode | |
197 | Ruby mode and debugger for Emacs. | |
198 | ||
a0a47c48 | 199 | %description emacs-mode -l pl.UTF-8 |
e99f31df | 200 | Tryb Ruby i debugger dla Emacsa. |
201 | ||
4ab119cd | 202 | %prep |
ef29702a | 203 | %setup -q -n %{name}-%{basever}-p%{patchlevel} -a1 -a2 |
933aeb0e | 204 | %patch0 -p1 |
a310037a | 205 | %patch1 -p1 |
a98c485a | 206 | %patch2 -p1 |
4ab119cd | 207 | |
b2f04116 JR |
208 | find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f |
209 | ||
210 | find -type f '(' -name '*.rb' -o -name '*.cgi' -o -name '*.test' \ | |
211 | -o -name 'ruby.1' -o -name '*.html' -o -name '*.tcl' ')' \ | |
bb5582fa | 212 | | xargs %{__sed} -i 's,/usr/local/bin/,%{_bindir}/,' |
e7754311 | 213 | |
4ab119cd | 214 | %build |
8ea447c1 | 215 | cp -f /usr/share/automake/config.sub . |
a5f9b7ff | 216 | |
8ea447c1 | 217 | %{__autoconf} |
ecde9c47 | 218 | %configure \ |
3a4dd1f6 | 219 | --enable-shared \ |
374c5b6e JR |
220 | --enable-pthread \ |
221 | --with-ruby-version=minor \ | |
222 | --enable-frame-address | |
4ab119cd | 223 | |
98757242 | 224 | %{__make} -j1 |
aa58dbf5 | 225 | |
d0f5536d | 226 | %if %{with doc} |
98757242 | 227 | %{__make} -j1 rdoc |
d0f5536d | 228 | %endif |
53830491 | 229 | |
4ab119cd | 230 | %install |
231 | rm -rf $RPM_BUILD_ROOT | |
a43d66d8 | 232 | install -d $RPM_BUILD_ROOT{%{ruby_rdocdir},%{_examplesdir}/%{name}-%{version}} |
1968db6d | 233 | |
ecde9c47 JB |
234 | %{__make} install \ |
235 | DESTDIR=$RPM_BUILD_ROOT | |
d041de24 | 236 | |
9fd96af7 | 237 | cp -Rf sample/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
ef29702a | 238 | cp -a %{SOURCE3} $RPM_BUILD_ROOT%{_mandir}/man1 |
2524363b | 239 | cp -a %{SOURCE4} $RPM_BUILD_ROOT%{_mandir}/man1 |
18e966a7 | 240 | |
b2f04116 JR |
241 | # packaged separately |
242 | rm -r $RPM_BUILD_ROOT%{_libdir}/%{name}/%{ruby_ver}/{rubygems,rake,json,minitest} | |
243 | rm -r $RPM_BUILD_ROOT%{_libdir}/%{name}/%{ruby_ver}/*-linux*/json | |
6fd58434 | 244 | rm $RPM_BUILD_ROOT%{_libdir}/%{name}/%{ruby_ver}/{rake,rubygems,json}.rb |
b2f04116 JR |
245 | rm $RPM_BUILD_ROOT%{_bindir}/{gem,rake} |
246 | rm $RPM_BUILD_ROOT%{_mandir}/man1/rake* | |
b6d575a9 | 247 | rm -r $RPM_BUILD_ROOT%{_datadir}/ri/%{ruby_ver}/system/JSON |
1968db6d | 248 | |
e99f31df | 249 | # ruby emacs mode - borrowed from FC-4 |
250 | %if %{with emacs} | |
a563469d | 251 | install -d $RPM_BUILD_ROOT%{_emacs_lispdir}/{%{name}-mode,site-start.d} |
2524363b | 252 | cp -a misc/*.el $RPM_BUILD_ROOT%{_emacs_lispdir}/%{name}-mode |
113ad3d1 | 253 | rm -f $RPM_BUILD_ROOT%{_emacs_lispdir}/%{name}-mode/rubydb2x.el* |
ef29702a | 254 | install -p %{SOURCE5} $RPM_BUILD_ROOT%{_emacs_lispdir}/site-start.d |
b4ca71cd | 255 | cat << 'EOF' > path.el |
e99f31df | 256 | (setq load-path (cons "." load-path) byte-compile-warnings nil) |
257 | EOF | |
258 | emacs --no-site-file -q -batch -l path.el -f batch-byte-compile $RPM_BUILD_ROOT%{_emacs_lispdir}/%{name}-mode/*.el | |
259 | rm -f path.el* | |
260 | %endif | |
261 | ||
4ab119cd | 262 | %clean |
263 | rm -rf $RPM_BUILD_ROOT | |
264 | ||
d041de24 JR |
265 | %post -p /sbin/ldconfig |
266 | %postun -p /sbin/ldconfig | |
4ab119cd | 267 | |
268 | %files | |
269 | %defattr(644,root,root,755) | |
b2f04116 | 270 | %doc NEWS LEGAL README README.EXT ChangeLog ToDo |
9fd96af7 | 271 | %attr(755,root,root) %{_bindir}/ruby |
529ff870 | 272 | %attr(755,root,root) %{_libdir}/libruby.so.*.*.* |
b2f04116 | 273 | %attr(755,root,root) %ghost %{_libdir}/libruby.so.1.9 |
9fd96af7 | 274 | %{_mandir}/man1/ruby.1* |
68ec864f | 275 | %dir %{_libdir}/%{name} |
276 | %dir %{_libdir}/%{name}/%{ruby_ver} | |
277 | %dir %{_libdir}/%{name}/%{ruby_ver}/*-linux* | |
95dfb220 | 278 | %dir %{_libdir}/%{name}/site_ruby |
279 | %dir %{_libdir}/%{name}/site_ruby/%{ruby_ver} | |
280 | %dir %{_libdir}/%{name}/site_ruby/%{ruby_ver}/*-linux* | |
3ea9be56 | 281 | %dir %{_libdir}/%{name}/vendor_ruby |
282 | %dir %{_libdir}/%{name}/vendor_ruby/%{ruby_ver} | |
283 | %dir %{_libdir}/%{name}/vendor_ruby/%{ruby_ver}/*-linux* | |
68ec864f | 284 | %dir %{_datadir}/ri |
285 | %dir %{_datadir}/ri/%{ruby_ver} | |
286 | %dir %{_datadir}/ri/%{ruby_ver}/system | |
a43d66d8 | 287 | %dir %{ruby_rdocdir} |
9fd96af7 | 288 | |
289 | %files devel | |
290 | %defattr(644,root,root,755) | |
529ff870 | 291 | %attr(755,root,root) %{_libdir}/libruby.so |
b2f04116 | 292 | %{_includedir}/%{name}-%{ruby_ver} |
9fd96af7 | 293 | |
294 | %files static | |
295 | %defattr(644,root,root,755) | |
529ff870 | 296 | %{_libdir}/libruby-static.a |
9fd96af7 | 297 | |
15ecb21e | 298 | %if %{with tk} |
9fd96af7 | 299 | %files tk |
300 | %defattr(644,root,root,755) | |
68ec864f | 301 | %{_libdir}/%{name}/%{ruby_ver}/tcltk.rb |
302 | %{_libdir}/%{name}/%{ruby_ver}/tk*.rb | |
303 | %{_libdir}/%{name}/%{ruby_ver}/tk | |
304 | %{_libdir}/%{name}/%{ruby_ver}/tkextlib | |
305 | %attr(755,root,root) %{_libdir}/%{name}/%{ruby_ver}/*-linux*/t*.so | |
15ecb21e | 306 | %endif |
9fd96af7 | 307 | |
308 | %files modules | |
309 | %defattr(644,root,root,755) | |
310 | %attr(755,root,root) %{_bindir}/erb | |
311 | %attr(755,root,root) %{_bindir}/irb | |
312 | %attr(755,root,root) %{_bindir}/rdoc | |
313 | %attr(755,root,root) %{_bindir}/ri | |
314 | %attr(755,root,root) %{_bindir}/testrb | |
68ec864f | 315 | %{_libdir}/%{name}/%{ruby_ver}/bigdecimal |
316 | %{_libdir}/%{name}/%{ruby_ver}/cgi | |
317 | %{_libdir}/%{name}/%{ruby_ver}/date | |
db241521 | 318 | %{_libdir}/%{name}/%{ruby_ver}/digest |
68ec864f | 319 | %{_libdir}/%{name}/%{ruby_ver}/dl |
320 | %{_libdir}/%{name}/%{ruby_ver}/drb | |
321 | %{_libdir}/%{name}/%{ruby_ver}/io | |
322 | %{_libdir}/%{name}/%{ruby_ver}/irb | |
323 | %{_libdir}/%{name}/%{ruby_ver}/net | |
324 | %{_libdir}/%{name}/%{ruby_ver}/openssl | |
325 | %{_libdir}/%{name}/%{ruby_ver}/optparse | |
326 | %{_libdir}/%{name}/%{ruby_ver}/racc | |
b2f04116 | 327 | %{_libdir}/%{name}/%{ruby_ver}/rbconfig |
68ec864f | 328 | %{_libdir}/%{name}/%{ruby_ver}/rdoc |
329 | %{_libdir}/%{name}/%{ruby_ver}/rexml | |
330 | %{_libdir}/%{name}/%{ruby_ver}/rinda | |
b2f04116 | 331 | %{_libdir}/%{name}/%{ruby_ver}/ripper |
68ec864f | 332 | %{_libdir}/%{name}/%{ruby_ver}/rss |
68ec864f | 333 | %{_libdir}/%{name}/%{ruby_ver}/shell |
68ec864f | 334 | %{_libdir}/%{name}/%{ruby_ver}/test |
335 | %{_libdir}/%{name}/%{ruby_ver}/uri | |
336 | %{_libdir}/%{name}/%{ruby_ver}/webrick | |
68ec864f | 337 | %{_libdir}/%{name}/%{ruby_ver}/xmlrpc |
68ec864f | 338 | %{_libdir}/%{name}/%{ruby_ver}/yaml |
339 | %{_libdir}/%{name}/%{ruby_ver}/[A-Za-s]*.rb | |
340 | %{_libdir}/%{name}/%{ruby_ver}/tempfile.rb | |
341 | %{_libdir}/%{name}/%{ruby_ver}/thread.rb | |
342 | %{_libdir}/%{name}/%{ruby_ver}/thwait.rb | |
343 | %{_libdir}/%{name}/%{ruby_ver}/time.rb | |
344 | %{_libdir}/%{name}/%{ruby_ver}/timeout.rb | |
345 | %{_libdir}/%{name}/%{ruby_ver}/tmpdir.rb | |
346 | %{_libdir}/%{name}/%{ruby_ver}/tracer.rb | |
347 | %{_libdir}/%{name}/%{ruby_ver}/tsort.rb | |
348 | %{_libdir}/%{name}/%{ruby_ver}/[u-z]*.rb | |
349 | %dir %{_libdir}/%{name}/%{ruby_ver}/*-linux*/digest | |
b2f04116 JR |
350 | %dir %{_libdir}/%{name}/%{ruby_ver}/*-linux*/enc |
351 | %dir %{_libdir}/%{name}/%{ruby_ver}/*-linux*/enc/trans | |
68ec864f | 352 | %dir %{_libdir}/%{name}/%{ruby_ver}/*-linux*/io |
b2f04116 | 353 | %dir %{_libdir}/%{name}/%{ruby_ver}/*-linux*/mathn |
68ec864f | 354 | %dir %{_libdir}/%{name}/%{ruby_ver}/*-linux*/racc |
355 | %attr(755,root,root) %{_libdir}/%{name}/%{ruby_ver}/*-linux*/[a-s]*.so | |
356 | %attr(755,root,root) %{_libdir}/%{name}/%{ruby_ver}/*-linux*/[u-z]*.so | |
357 | %attr(755,root,root) %{_libdir}/%{name}/%{ruby_ver}/*-linux*/digest/*.so | |
b2f04116 JR |
358 | %attr(755,root,root) %{_libdir}/%{name}/%{ruby_ver}/*-linux*/enc/*.so |
359 | %attr(755,root,root) %{_libdir}/%{name}/%{ruby_ver}/*-linux*/enc/trans/*.so | |
68ec864f | 360 | %attr(755,root,root) %{_libdir}/%{name}/%{ruby_ver}/*-linux*/io/*.so |
b2f04116 | 361 | %attr(755,root,root) %{_libdir}/%{name}/%{ruby_ver}/*-linux*/mathn/*.so |
68ec864f | 362 | %attr(755,root,root) %{_libdir}/%{name}/%{ruby_ver}/*-linux*/racc/*.so |
363 | %{_libdir}/%{name}/%{ruby_ver}/*-linux*/rbconfig.rb | |
9fd96af7 | 364 | %{_mandir}/man1/erb.1* |
365 | %{_mandir}/man1/irb.1* | |
366 | %{_mandir}/man1/rdoc.1* | |
367 | %{_mandir}/man1/ri.1* | |
368 | %{_mandir}/man1/testrb.1* | |
9fd96af7 | 369 | |
370 | %files doc | |
9434194f | 371 | %defattr(644,root,root,755) |
b2f04116 JR |
372 | %doc ruby-doc-bundle/* |
373 | %{?with_doc:%doc ruby-doc-stdlib-%{stdlibdoc_version}/stdlib} | |
87b9c30a | 374 | |
d0f5536d | 375 | %if %{with doc} |
9fd96af7 | 376 | %files doc-ri |
e40bfe06 | 377 | %defattr(644,root,root,755) |
68ec864f | 378 | %{_datadir}/ri/%{ruby_ver}/system/* |
d0f5536d | 379 | %endif |
265d0efe | 380 | |
9fd96af7 | 381 | %files examples |
616a12d8 | 382 | %defattr(644,root,root,755) |
9fd96af7 | 383 | %{_examplesdir}/%{name}-%{version} |
e99f31df | 384 | |
385 | %if %{with emacs} | |
386 | %files emacs-mode | |
387 | %defattr(644,root,root,755) | |
4b6581fc | 388 | %doc misc/* |
e99f31df | 389 | %dir %{_emacs_lispdir}/%{name}-mode |
4b6581fc | 390 | %{_emacs_lispdir}/%{name}-mode/*.elc |
391 | %{_emacs_lispdir}/site-start.d/*.el | |
e99f31df | 392 | %endif |