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