]>
Commit | Line | Data |
---|---|---|
e99f31df | 1 | # |
198b2d1a | 2 | # TODO: |
198b2d1a JR |
3 | # - include ext/ in docs |
4 | # - replace ri with fastri | |
97b7914a | 5 | # - patch ri to search multiple indexes (one per package), so RPMs can install ri docs |
198b2d1a | 6 | # |
2acc5f17 | 7 | # Conditional build: |
bc991d5a | 8 | %bcond_without doc # skip (time-consuming) docs generating; intended for speed up test builds |
bc991d5a | 9 | %bcond_without tk # skip building package with Tk bindings |
a530aef0 | 10 | %bcond_without batteries # Don't include rubygems, json or rake |
d78ec589 | 11 | %bcond_without verpath # LOAD_PATH with version number |
92ff5331 | 12 | %bcond_with bootstrap # build bootstrap version |
fa311386 | 13 | |
31058abe | 14 | %define ruby_version 1.9 |
af4f9d38 | 15 | %define basever 1.9.3 |
fa311386 | 16 | %define patchlevel 392 |
ee1a9db5 | 17 | %define doc_version 1_9_3 |
fa311386 | 18 | %define json_ver 1.5.5 |
fc97a6ea JR |
19 | %define rake_ver 0.9.2.2 |
20 | %define rubygems_ver 1.8.11 | |
21 | %define minitest_ver 2.5.1 | |
fa311386 | 22 | %define rdoc_ver 3.9.5 |
6e2f9b3c | 23 | Summary: Ruby - interpreted scripting language |
3c3949cf ER |
24 | Summary(ja.UTF-8): オブジェクト指向言語Rubyインタプリタ |
25 | Summary(pl.UTF-8): Ruby - interpretowany język skryptowy | |
26 | Summary(pt_BR.UTF-8): Linguagem de script orientada a objeto | |
27 | Summary(zh_CN.UTF-8): ruby - 一种快速高效的面向对象脚本编程语言 | |
4ab119cd | 28 | Name: ruby |
6cd63ddf | 29 | Version: %{basever}.%{patchlevel} |
de8152d8 | 30 | Release: 0.10 |
01204e8f | 31 | Epoch: 1 |
0a23e00f | 32 | License: The Ruby License |
6eb17ef6 | 33 | Group: Development/Languages |
31058abe | 34 | Source0: ftp://ftp.ruby-lang.org/pub/ruby/%{ruby_version}/%{name}-%{basever}-p%{patchlevel}.tar.bz2 |
775b0723 | 35 | # Source0-md5: a810d64e2255179d2f334eb61fb8519c |
ef29702a | 36 | Source1: http://www.ruby-doc.org/download/%{name}-doc-bundle.tar.gz |
775b0723 | 37 | # Source1-md5: ad1af0043be98ba1a4f6d0185df63876 |
af4f9d38 | 38 | Source2: http://www.ruby-doc.org/downloads/%{name}_%{doc_version}_stdlib_rdocs.tgz |
775b0723 | 39 | # Source2-md5: ec622612428672c432b6f65dd31a84b5 |
af4f9d38 | 40 | Source3: http://www.ruby-doc.org/downloads/%{name}_%{doc_version}_core_rdocs.tgz |
775b0723 | 41 | # Source3-md5: 1892aadde51d36106c513bced2193dff |
92ff5331 | 42 | Source100: ftp://ftp.ruby-lang.org/pub/ruby/1.8/%{name}-1.8.7-p330.tar.gz |
43 | # Source100-md5: 50a49edb787211598d08e756e733e42e | |
af4f9d38 | 44 | Source4: rdoc.1 |
af4f9d38 JR |
45 | Source5: testrb.1 |
46 | Source6: %{name}-mode-init.el | |
fc97a6ea JR |
47 | Patch0: %{name}-lib64.patch |
48 | Patch1: %{name}-ffs.patch | |
360c41c0 | 49 | Patch2: fix-bison-invocation.patch |
d78ec589 ER |
50 | # http://redmine.ruby-lang.org/issues/5231 |
51 | Patch3: disable-versioned-paths.patch | |
52 | # TODO: Should be submitted upstream? | |
53 | Patch4: arch-specific-dir.patch | |
54 | # http://redmine.ruby-lang.org/issues/5281 | |
55 | Patch5: site-and-vendor-arch-flags.patch | |
7c36cd5d | 56 | URL: http://www.ruby-lang.org/ |
19b741fe | 57 | BuildRequires: autoconf >= 2.60 |
53c95475 | 58 | BuildRequires: automake |
cc4f6b84 | 59 | BuildRequires: bison |
f0eb2dd9 | 60 | BuildRequires: db-devel |
e9f2c6fe | 61 | BuildRequires: gdbm-devel >= 1.8.3 |
9ae7df75 | 62 | BuildRequires: libffi-devel |
1968db6d | 63 | BuildRequires: ncurses-devel |
f33fb184 | 64 | BuildRequires: openssl-devel |
74c8af09 | 65 | BuildRequires: pkgconfig |
933aeb0e | 66 | BuildRequires: readline-devel >= 4.2 |
92ff5331 | 67 | %{!?with_bootstrap:BuildRequires: ruby-modules} |
7911cce0 | 68 | BuildRequires: sed >= 4.0 |
92ff5331 | 69 | BuildRequires: yaml-devel |
15ecb21e | 70 | %if %{with tk} |
e14a2f74 | 71 | BuildRequires: tk-devel |
15ecb21e | 72 | %endif |
f0eb2dd9 | 73 | Requires(post,postun): /sbin/ldconfig |
31058abe | 74 | Provides: ruby(ver) = %{ruby_version} |
ecce1c8a | 75 | Obsoletes: rdoc |
e14a2f74 | 76 | Obsoletes: ruby-REXML |
bb5582fa | 77 | Obsoletes: ruby-doc < 1.8.4 |
1be6ffc9 | 78 | Obsoletes: ruby-fastthread |
ada7d096 | 79 | %if %{with batteries} |
c4ef2b1c JR |
80 | Provides: json = %{json_ver} |
81 | Provides: rake = %{rake_ver} | |
fc97a6ea | 82 | Provides: ruby-json = %{json_ver} |
bc991d5a | 83 | Provides: ruby-rake = %{rake_ver} |
fc97a6ea | 84 | Provides: ruby-rubygems = %{rubygems_ver} |
d78ec589 | 85 | Provides: rubygems = %{rubygems_ver} |
ada7d096 JB |
86 | Obsoletes: ruby-json |
87 | Obsoletes: ruby-rake | |
88 | Obsoletes: ruby-rubygems | |
89 | %endif | |
a2963aa1 JR |
90 | Conflicts: ruby-activesupport < 2.3.11-2 |
91 | Conflicts: ruby-activesupport2 < 2.3.11-2 | |
584b8bcb | 92 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
4ab119cd | 93 | |
d78ec589 | 94 | %define gem_dir %{_datadir}/%{name}/gems/%{ruby_version} |
d78ec589 ER |
95 | |
96 | # The RubyGems library has to stay out of Ruby directory three, since the | |
97 | # RubyGems should be share by all Ruby implementations. | |
98 | %define rubygems_dir %{_datadir}/rubygems | |
d78ec589 | 99 | |
989b4296 | 100 | %define ruby_libdir %{_datadir}/%{name} |
d78ec589 ER |
101 | %define ruby_libarchdir %{_libdir}/%{name} |
102 | ||
103 | # This is the local lib/arch and should not be used for packaging. | |
104 | %define ruby_sitedir site_ruby | |
989b4296 ER |
105 | %define ruby_sitelibdir %{_prefix}/local/share/%{name}/%{ruby_sitedir} |
106 | %define ruby_sitearchdir %{_prefix}/local/%{_lib}/%{name}/%{ruby_sitedir} | |
d78ec589 ER |
107 | |
108 | # This is the general location for libs/archs compatible with all | |
109 | # or most of the Ruby versions available in the PLD repositories. | |
110 | %define ruby_vendordir vendor_ruby | |
989b4296 ER |
111 | %define ruby_vendorlibdir %{_datadir}/%{name}/%{ruby_vendordir} |
112 | %define ruby_vendorarchdir %{_libdir}/%{name}/%{ruby_vendordir} | |
d78ec589 ER |
113 | |
114 | # TODO: drop legacy loadpaths after all ruby modules rebuilt in Th | |
115 | %define legacy_libdir %{_libdir}/%{name}/%{ruby_version} | |
116 | %define legacy_archdir %{_libdir}/%{name}/%{ruby_version}/%{_arch}-linux | |
117 | %define legacy_sitedir %{_libdir}/%{name}/%{ruby_sitedir} | |
118 | %define legacy_sitelibdir %{_libdir}/%{name}/%{ruby_sitedir}/%{ruby_version} | |
119 | %define legacy_sitearchdir %{_libdir}/%{name}/%{ruby_sitedir}/%{ruby_version}/%{_arch}-linux | |
120 | %define legacy_vendordir %{_libdir}/%{name}/%{ruby_vendordir} | |
121 | %define legacy_vendorlibdir %{_libdir}/%{name}/%{ruby_vendordir}/%{ruby_version} | |
122 | %define legacy_vendorarchdir %{_libdir}/%{name}/%{ruby_vendordir}/%{ruby_version}/%{_arch}-linux | |
123 | ||
bdde3309 | 124 | %define legacy_siteloadpath %{legacy_sitelibdir}\\0%{legacy_sitearchdir}\\0%{legacy_sitedir} |
c2522b53 ER |
125 | %define legacy_vendorloadpath %{legacy_vendorlibdir}\\0%{legacy_vendorarchdir} |
126 | %define legacy_loadpath %{legacy_archdir} | |
bdde3309 | 127 | %define legacy_loadpaths %{legacy_siteloadpath}\\0%{legacy_vendorloadpath}\\0%{legacy_loadpath} |
d78ec589 | 128 | |
8ea447c1 | 129 | # bleh, some nasty (gcc or ruby) bug still not fixed |
cc2dcaa2 | 130 | # (SEGV or "unexpected break" on miniruby run during build) |
8ea447c1 JB |
131 | %define specflags_ia64 -O0 |
132 | ||
88546731 | 133 | # ruby needs frame pointers for correct exception handling |
b66203d6 | 134 | %define specflags_ia32 -fno-omit-frame-pointer |
88546731 | 135 | |
4ab119cd | 136 | %description |
137 | Ruby is the interpreted scripting language for quick and easy | |
138 | object-oriented programming. It has many features to process text | |
139 | files and to do system management tasks (as in Perl). It is simple, | |
140 | straight-forward, extensible, and portable. | |
141 | ||
9fd96af7 | 142 | This package contains only shared library and ruby interpreter. To get |
143 | full-functional ruby environment install ruby-modules package. | |
144 | ||
a0a47c48 JR |
145 | %description -l ja.UTF-8 |
146 | Rubyはシンプルかつ強力なオブジェクト指向スクリプト言語です.Rubyは最初 | |
147 | から純粋なオブジェクト指向言語として設計されていますから,オブジェクト | |
15467dc7 | 148 | 指向プログラミングを手軽に行う事が出来ます.もちろん通常の手続き型のプ ログラミングも可能です. |
7c36cd5d | 149 | |
a0a47c48 JR |
150 | %description -l pl.UTF-8 |
151 | Ruby to interpretowany język skryptowy, w sam raz dla łatwego i | |
152 | szybkiego pisania zorientowanych obiektowo programów. Ma wiele funkcji | |
153 | ułatwiających przetwarzanie plików tekstowych i wykonywanie prac | |
154 | związanych z zarządzaniem systemu (podobnie jak Perl). Jest prosty, | |
155 | rozszerzalny i przenośny. | |
6e2f9b3c | 156 | |
a0a47c48 JR |
157 | Ten pakiet zawiera tylko bibliotekę dzieloną i interpreter ruby. |
158 | Zainstaluj pakiet ruby-modules, jeżeli potrzebujesz w pełni | |
159 | funkcjonalnego środowiska ruby. | |
9fd96af7 | 160 | |
a0a47c48 JR |
161 | %description -l pt_BR.UTF-8 |
162 | Ruby é uma linguagem de script interpretada de programação orientada a | |
163 | objeto. Possui diversas características para processamento de texto. É | |
164 | simples, extensível e direta. | |
7c36cd5d | 165 | |
9fd96af7 | 166 | %package modules |
167 | Summary: Ruby standard modules and utilities | |
3c3949cf | 168 | Summary(pl.UTF-8): Standardowe moduły i narzędzia dla języka Ruby |
9fd96af7 | 169 | Group: Development/Languages |
170 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
56ca5a3b | 171 | # workaround for autodep generator net getting version properly |
31058abe ER |
172 | Provides: ruby(abi) = %{ruby_version} |
173 | Provides: ruby-modules(ver) = %{ruby_version} | |
816fcc98 | 174 | Obsoletes: ruby-minitest |
9fd96af7 | 175 | |
176 | %description modules | |
177 | Ruby standard modules and utilities: | |
178 | - erb - Tiny eRuby | |
179 | - rdoc - documentation tool for source code | |
180 | - irb - interactive Ruby | |
181 | - ri - Ruby interactive reference | |
7911cce0 | 182 | - testrb - automatic runner for Test::Unit of Ruby |
9fd96af7 | 183 | |
a0a47c48 JR |
184 | %description modules -l pl.UTF-8 |
185 | Standardowe moduły i narzędzia Ruby: | |
186 | - erb - mały eRuby | |
187 | - rdoc - narzędzie do dokumentowania kodu źródłowego | |
9fd96af7 | 188 | - irb - interaktywny Ruby |
189 | - ri - interaktywna dokumentacja Ruby | |
7911cce0 | 190 | - testrb - automatyczny runner dla Ruby Test::Unit |
9fd96af7 | 191 | |
265d0efe | 192 | %package tk |
193 | Summary: Ruby/Tk bindings | |
3c3949cf | 194 | Summary(pl.UTF-8): Wiązania Ruby/Tk |
e65aac33 | 195 | Group: Development/Languages |
69b51dc9 | 196 | Requires: %{name}-modules = %{epoch}:%{version}-%{release} |
265d0efe | 197 | |
198 | %description tk | |
e65aac33 | 199 | This pachage contains Ruby/Tk bindings. |
200 | ||
a0a47c48 JR |
201 | %description tk -l pl.UTF-8 |
202 | Ten pakiet zawiera wiązania Ruby/Tk. | |
265d0efe | 203 | |
e14a2f74 | 204 | %package devel |
e14a2f74 | 205 | Summary: Ruby development libraries |
3c3949cf | 206 | Summary(pl.UTF-8): Biblioteki programistyczne interpretera języka Ruby |
9434194f | 207 | Group: Development/Languages |
9fd96af7 | 208 | Requires: %{name}-modules = %{epoch}:%{version}-%{release} |
e14a2f74 | 209 | |
210 | %description devel | |
9434194f JB |
211 | Ruby development libraries. |
212 | ||
a0a47c48 JR |
213 | %description devel -l pl.UTF-8 |
214 | Biblioteki programistyczne interpretera języka Ruby. | |
e14a2f74 | 215 | |
87b9c30a | 216 | %package static |
217 | Summary: Ruby static libraries | |
3c3949cf | 218 | Summary(pl.UTF-8): Biblioteki statyczne Ruby |
87b9c30a | 219 | Group: Development/Languages |
f89d855e | 220 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
87b9c30a | 221 | |
222 | %description static | |
223 | Ruby static libraries. | |
224 | ||
a0a47c48 | 225 | %description static -l pl.UTF-8 |
87b9c30a | 226 | Biblioteki statyczne Ruby. |
227 | ||
754b419a | 228 | %package doc |
9fd96af7 | 229 | Summary: Ruby HTML documentation |
3c3949cf | 230 | Summary(pl.UTF-8): Dokumentacja HTML do Ruby |
9fd96af7 | 231 | Group: Documentation |
232 | ||
233 | %description doc | |
234 | Ruby HTML documentation: FAQ, guide, core and standard library. | |
235 | ||
a0a47c48 | 236 | %description doc -l pl.UTF-8 |
d99a4382 | 237 | Dokumentacja HTML do Ruby: FAQ, przewodnik, dokumentacja dla core i |
238 | stdlib. | |
69b51dc9 | 239 | |
9fd96af7 | 240 | %package doc-ri |
241 | Summary: Ruby ri documentation | |
3c3949cf | 242 | Summary(pl.UTF-8): Dokumentacja Ruby w formacie ri |
9fd96af7 | 243 | Group: Documentation |
69b51dc9 | 244 | Requires: %{name}-modules = %{epoch}:%{version}-%{release} |
9fd96af7 | 245 | |
246 | %description doc-ri | |
247 | Ruby ri documentation. | |
248 | ||
a0a47c48 | 249 | %description doc-ri -l pl.UTF-8 |
9fd96af7 | 250 | Dokumentacja Ruby w formacie ri. |
251 | ||
252 | %package examples | |
253 | Summary: Ruby examples | |
3c3949cf | 254 | Summary(pl.UTF-8): Przykłady dla języka Ruby |
9fd96af7 | 255 | Group: Development/Languages |
256 | ||
257 | %description examples | |
258 | Ruby examples. | |
259 | ||
a0a47c48 JR |
260 | %description examples -l pl.UTF-8 |
261 | Przykłady programów w języku Ruby. | |
9fd96af7 | 262 | |
4ab119cd | 263 | %prep |
360c41c0 | 264 | %if %{with bootstrap} |
af4f9d38 | 265 | %setup -q -n %{name}-%{basever}-p%{patchlevel} -a1 -a2 -a3 -a100 |
360c41c0 JR |
266 | %else |
267 | %setup -q -n %{name}-%{basever}-p%{patchlevel} -a1 -a2 -a3 | |
268 | %endif | |
933aeb0e | 269 | %patch0 -p1 |
a310037a | 270 | %patch1 -p1 |
360c41c0 | 271 | %patch2 -p1 |
d78ec589 ER |
272 | %patch3 -p1 |
273 | %patch4 -p1 | |
274 | %patch5 -p1 | |
360c41c0 JR |
275 | |
276 | # must be regenerated with new bison | |
277 | %{__rm} parse.{c,h} | |
4ab119cd | 278 | |
b2f04116 JR |
279 | find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f |
280 | ||
281 | find -type f '(' -name '*.rb' -o -name '*.cgi' -o -name '*.test' \ | |
282 | -o -name 'ruby.1' -o -name '*.html' -o -name '*.tcl' ')' \ | |
bb5582fa | 283 | | xargs %{__sed} -i 's,/usr/local/bin/,%{_bindir}/,' |
e7754311 | 284 | |
4ab119cd | 285 | %build |
8ea447c1 | 286 | cp -f /usr/share/automake/config.sub . |
a5f9b7ff | 287 | |
92ff5331 | 288 | # build ruby-1.8.7 first |
289 | %if %{with bootstrap} | |
290 | cd %{name}-1.8.7-p330 | |
291 | %configure | |
292 | %{__make} | |
293 | cd .. | |
294 | %endif | |
295 | ||
8ea447c1 | 296 | %{__autoconf} |
ecde9c47 | 297 | %configure \ |
92ff5331 | 298 | %{?with_bootstrap:--with-baseruby=%{name}-1.8.7-p330/miniruby} \ |
d78ec589 | 299 | --with-rubylibprefix=%{ruby_libdir} \ |
31058abe | 300 | --with-archdir=%{ruby_libarchdir}/%{ruby_version} \ |
d78ec589 ER |
301 | --with-sitedir=%{ruby_sitelibdir} \ |
302 | --with-sitearchdir=%{ruby_sitearchdir} \ | |
303 | --with-vendordir=%{ruby_vendorlibdir} \ | |
304 | --with-vendorarchdir=%{ruby_vendorarchdir} \ | |
305 | --with-rubygemsdir=%{rubygems_dir} \ | |
31058abe | 306 | --with-search-path="%{legacy_loadpaths}" \ |
3a4dd1f6 | 307 | --enable-shared \ |
374c5b6e | 308 | --enable-pthread \ |
96c2e1a4 | 309 | --disable-install-doc \ |
d78ec589 | 310 | %{!?with_verpath:--disable-versioned-paths} \ |
15467dc7 | 311 | --with-ruby-version=minor |
4ab119cd | 312 | |
dbf8f91d | 313 | %{__make} -j1 main \ |
d78ec589 ER |
314 | COPY="cp -p" Q= \ |
315 | %{?with_bootstrap:BASERUBY="ruby-1.8.7-p330/miniruby -I./ruby-1.8.7-p330/lib"} | |
aa58dbf5 | 316 | |
d0f5536d | 317 | %if %{with doc} |
dbf8f91d | 318 | %{__make} -j1 docs |
d0f5536d | 319 | %endif |
53830491 | 320 | |
4ab119cd | 321 | %install |
322 | rm -rf $RPM_BUILD_ROOT | |
fc97a6ea | 323 | install -d $RPM_BUILD_ROOT{%{ruby_rdocdir},%{_examplesdir}/%{name}-%{version}} \ |
be8e7b24 ER |
324 | $RPM_BUILD_ROOT%{ruby_libdir}/%{ruby_version}/tasks \ |
325 | $RPM_BUILD_ROOT%{ruby_vendorarchdir}/%{ruby_version} \ | |
de8152d8 | 326 | $RPM_BUILD_ROOT{%{legacy_archdir},%{legacy_sitelibdir},%{legacy_sitearchdir},%{legacy_vendorarchdir}} \ |
1968db6d | 327 | |
96c2e1a4 | 328 | %{__make} install %{?with_doc:install-doc} \ |
ecde9c47 | 329 | DESTDIR=$RPM_BUILD_ROOT |
d041de24 | 330 | |
9fd96af7 | 331 | cp -Rf sample/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
d78ec589 ER |
332 | cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_mandir}/man1 |
333 | cp -p %{SOURCE5} $RPM_BUILD_ROOT%{_mandir}/man1 | |
18e966a7 | 334 | |
698147c7 ER |
335 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}/html |
336 | ||
15467dc7 | 337 | %if %{without batteries} |
b2f04116 | 338 | # packaged separately |
aaf7ed9e | 339 | %{__rm} -r $RPM_BUILD_ROOT%{ruby_libdir}/%{ruby_version}/{rubygems,rake,json,tasks} |
bdde3309 | 340 | %{__rm} -r $RPM_BUILD_ROOT%{ruby_libarchdir}/%{ruby_version}/json |
aaf7ed9e | 341 | %{__rm} $RPM_BUILD_ROOT%{ruby_libdir}/%{ruby_version}/{rake,rubygems,json}.rb |
92ff5331 | 342 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/{gem,rake} |
343 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/rake* | |
31058abe | 344 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/ri/%{ruby_version}/system/JSON |
15467dc7 | 345 | %endif |
1968db6d | 346 | |
d78ec589 ER |
347 | # too much .ri |
348 | rm -rf $RPM_BUILD_ROOT%{_datadir}/ri | |
d78ec589 | 349 | |
4ab119cd | 350 | %clean |
351 | rm -rf $RPM_BUILD_ROOT | |
352 | ||
d041de24 JR |
353 | %post -p /sbin/ldconfig |
354 | %postun -p /sbin/ldconfig | |
4ab119cd | 355 | |
356 | %files | |
357 | %defattr(644,root,root,755) | |
b2f04116 | 358 | %doc NEWS LEGAL README README.EXT ChangeLog ToDo |
9fd96af7 | 359 | %attr(755,root,root) %{_bindir}/ruby |
15467dc7 | 360 | %if %{with batteries} |
361 | %attr(755,root,root) %{_bindir}/gem | |
362 | %attr(755,root,root) %{_bindir}/rake | |
363 | %endif | |
529ff870 | 364 | %attr(755,root,root) %{_libdir}/libruby.so.*.*.* |
b2f04116 | 365 | %attr(755,root,root) %ghost %{_libdir}/libruby.so.1.9 |
9fd96af7 | 366 | %{_mandir}/man1/ruby.1* |
15467dc7 | 367 | %if %{with batteries} |
368 | %{_mandir}/man1/rake.1* | |
369 | %endif | |
bdde3309 | 370 | |
be8e7b24 ER |
371 | %dir %{ruby_libdir} |
372 | %dir %{ruby_libdir}/%{ruby_version} | |
31058abe | 373 | %dir %{ruby_libarchdir} |
935675ed | 374 | %dir %{ruby_libarchdir}/%{ruby_version} |
be8e7b24 ER |
375 | %dir %{ruby_vendorlibdir} |
376 | %dir %{ruby_vendorlibdir}/%{ruby_version} | |
377 | %dir %{ruby_vendorarchdir} | |
378 | %dir %{ruby_vendorarchdir}/%{ruby_version} | |
31058abe | 379 | |
d78ec589 | 380 | #%dir %{_datadir}/ri |
31058abe ER |
381 | #%dir %{_datadir}/ri/%{ruby_version} |
382 | #%dir %{_datadir}/ri/%{ruby_version}/system | |
a43d66d8 | 383 | %dir %{ruby_rdocdir} |
9fd96af7 | 384 | |
de8152d8 ER |
385 | # legacy dirs. when everything rebuilt in Th not using these dirs. drop them |
386 | %dir %{legacy_archdir} | |
387 | %dir %{legacy_sitedir} | |
388 | %dir %{legacy_sitelibdir} | |
389 | %dir %{legacy_sitearchdir} | |
390 | %dir %{legacy_vendorarchdir} | |
391 | ||
9fd96af7 | 392 | %files devel |
393 | %defattr(644,root,root,755) | |
529ff870 | 394 | %attr(755,root,root) %{_libdir}/libruby.so |
31058abe ER |
395 | %{_includedir}/%{name}-%{ruby_version} |
396 | %{_pkgconfigdir}/ruby-%{ruby_version}.pc | |
9fd96af7 | 397 | |
398 | %files static | |
399 | %defattr(644,root,root,755) | |
529ff870 | 400 | %{_libdir}/libruby-static.a |
9fd96af7 | 401 | |
15ecb21e | 402 | %if %{with tk} |
9fd96af7 | 403 | %files tk |
404 | %defattr(644,root,root,755) | |
aaf7ed9e ER |
405 | %{ruby_libdir}/%{ruby_version}/tcltk.rb |
406 | %{ruby_libdir}/%{ruby_version}/tk*.rb | |
407 | %{ruby_libdir}/%{ruby_version}/tk | |
408 | %{ruby_libdir}/%{ruby_version}/tkextlib | |
bdde3309 | 409 | %attr(755,root,root) %{ruby_libarchdir}/%{ruby_version}/t*.so |
15ecb21e | 410 | %endif |
9fd96af7 | 411 | |
412 | %files modules | |
413 | %defattr(644,root,root,755) | |
414 | %attr(755,root,root) %{_bindir}/erb | |
415 | %attr(755,root,root) %{_bindir}/irb | |
416 | %attr(755,root,root) %{_bindir}/rdoc | |
417 | %attr(755,root,root) %{_bindir}/ri | |
418 | %attr(755,root,root) %{_bindir}/testrb | |
aaf7ed9e ER |
419 | %{ruby_libdir}/%{ruby_version}/bigdecimal |
420 | %{ruby_libdir}/%{ruby_version}/cgi | |
421 | %{ruby_libdir}/%{ruby_version}/date | |
422 | %{ruby_libdir}/%{ruby_version}/digest | |
423 | %{ruby_libdir}/%{ruby_version}/dl | |
424 | %{ruby_libdir}/%{ruby_version}/drb | |
425 | %{ruby_libdir}/%{ruby_version}/fiddle | |
426 | %{ruby_libdir}/%{ruby_version}/io | |
427 | %{ruby_libdir}/%{ruby_version}/irb | |
428 | %{ruby_libdir}/%{ruby_version}/matrix | |
429 | %{ruby_libdir}/%{ruby_version}/minitest | |
430 | %{ruby_libdir}/%{ruby_version}/net | |
431 | %{ruby_libdir}/%{ruby_version}/openssl | |
432 | %{ruby_libdir}/%{ruby_version}/optparse | |
15467dc7 | 433 | %if %{with batteries} |
aaf7ed9e ER |
434 | %{ruby_libdir}/%{ruby_version}/json |
435 | %{ruby_libdir}/%{ruby_version}/rake | |
436 | %{ruby_libdir}/%{ruby_version}/rubygems | |
dbf8f91d | 437 | %dir %{ruby_libdir}/%{ruby_version}/tasks |
15467dc7 | 438 | %endif |
aaf7ed9e ER |
439 | %{ruby_libdir}/%{ruby_version}/psych |
440 | %{ruby_libdir}/%{ruby_version}/racc | |
441 | %{ruby_libdir}/%{ruby_version}/rbconfig | |
442 | %{ruby_libdir}/%{ruby_version}/rdoc | |
443 | %{ruby_libdir}/%{ruby_version}/rexml | |
444 | %{ruby_libdir}/%{ruby_version}/rinda | |
445 | %{ruby_libdir}/%{ruby_version}/ripper | |
446 | %{ruby_libdir}/%{ruby_version}/rss | |
447 | %{ruby_libdir}/%{ruby_version}/shell | |
448 | %{ruby_libdir}/%{ruby_version}/syck | |
449 | %{ruby_libdir}/%{ruby_version}/test | |
450 | %{ruby_libdir}/%{ruby_version}/uri | |
451 | %{ruby_libdir}/%{ruby_version}/webrick | |
452 | %{ruby_libdir}/%{ruby_version}/xmlrpc | |
453 | %{ruby_libdir}/%{ruby_version}/yaml | |
454 | %{ruby_libdir}/%{ruby_version}/[A-Za-s]*.rb | |
455 | %{ruby_libdir}/%{ruby_version}/tempfile.rb | |
456 | %{ruby_libdir}/%{ruby_version}/thread.rb | |
457 | %{ruby_libdir}/%{ruby_version}/thwait.rb | |
458 | %{ruby_libdir}/%{ruby_version}/time.rb | |
459 | %{ruby_libdir}/%{ruby_version}/timeout.rb | |
460 | %{ruby_libdir}/%{ruby_version}/tmpdir.rb | |
461 | %{ruby_libdir}/%{ruby_version}/tracer.rb | |
462 | %{ruby_libdir}/%{ruby_version}/tsort.rb | |
463 | %{ruby_libdir}/%{ruby_version}/[u-z]*.rb | |
bdde3309 ER |
464 | %attr(755,root,root) %{ruby_libarchdir}/%{ruby_version}/[a-s]*.so |
465 | %attr(755,root,root) %{ruby_libarchdir}/%{ruby_version}/[u-z]*.so | |
466 | %dir %{ruby_libarchdir}/%{ruby_version}/digest | |
467 | %attr(755,root,root) %{ruby_libarchdir}/%{ruby_version}/digest/*.so | |
468 | %dir %{ruby_libarchdir}/%{ruby_version}/dl | |
469 | %attr(755,root,root) %{ruby_libarchdir}/%{ruby_version}/dl/callback.so | |
470 | %dir %{ruby_libarchdir}/%{ruby_version}/enc | |
471 | %attr(755,root,root) %{ruby_libarchdir}/%{ruby_version}/enc/*.so | |
472 | %dir %{ruby_libarchdir}/%{ruby_version}/enc/trans | |
473 | %attr(755,root,root) %{ruby_libarchdir}/%{ruby_version}/enc/trans/*.so | |
474 | %dir %{ruby_libarchdir}/%{ruby_version}/io | |
475 | %attr(755,root,root) %{ruby_libarchdir}/%{ruby_version}/io/*.so | |
15467dc7 | 476 | %if %{with batteries} |
bdde3309 ER |
477 | %dir %{ruby_libarchdir}/%{ruby_version}/json |
478 | %dir %{ruby_libarchdir}/%{ruby_version}/json/ext | |
479 | %attr(755,root,root) %{ruby_libarchdir}/%{ruby_version}/json/ext/*.so | |
15467dc7 | 480 | %endif |
bdde3309 ER |
481 | %dir %{ruby_libarchdir}/%{ruby_version}/mathn |
482 | %attr(755,root,root) %{ruby_libarchdir}/%{ruby_version}/mathn/*.so | |
483 | %dir %{ruby_libarchdir}/%{ruby_version}/racc | |
484 | %attr(755,root,root) %{ruby_libarchdir}/%{ruby_version}/racc/*.so | |
485 | %{ruby_libarchdir}/%{ruby_version}/rbconfig.rb | |
31058abe ER |
486 | |
487 | # parents of gem_dir | |
dbf8f91d | 488 | %dir %{_datadir}/%{name}/gems |
31058abe ER |
489 | #%dir %{_datadir}/%{name}/gems/%{ruby_version} |
490 | %dir %{_datadir}/%{name}/gems/%{ruby_version}/gems | |
491 | ||
d78ec589 | 492 | %dir %{gem_dir} |
d78ec589 ER |
493 | %dir %{gem_dir}/specifications |
494 | %{gem_dir}/specifications/io-console-*.gemspec | |
495 | %{gem_dir}/specifications/bigdecimal-*.gemspec | |
9a8b7dca | 496 | %if %{with batteries} |
dbf8f91d ER |
497 | %dir %{gem_dir}/gems/rake-%{rake_ver} |
498 | %dir %{gem_dir}/gems/rake-%{rake_ver}/bin | |
499 | %attr(755,root,root) %{gem_dir}/gems/rake-%{rake_ver}/bin/rake | |
500 | %dir %{gem_dir}/gems/rdoc-%{rdoc_ver} | |
501 | %dir %{gem_dir}/gems/rdoc-%{rdoc_ver}/bin | |
502 | %attr(755,root,root) %{gem_dir}/gems/rdoc-%{rdoc_ver}/bin/rdoc | |
503 | %attr(755,root,root) %{gem_dir}/gems/rdoc-%{rdoc_ver}/bin/ri | |
d78ec589 ER |
504 | %{gem_dir}/specifications/minitest-%{minitest_ver}.gemspec |
505 | %{gem_dir}/specifications/rake-%{rake_ver}.gemspec | |
506 | %{gem_dir}/specifications/rdoc-%{rdoc_ver}.gemspec | |
507 | %{gem_dir}/specifications/json-%{json_ver}.gemspec | |
9a8b7dca | 508 | %endif |
9fd96af7 | 509 | %{_mandir}/man1/erb.1* |
510 | %{_mandir}/man1/irb.1* | |
511 | %{_mandir}/man1/rdoc.1* | |
512 | %{_mandir}/man1/ri.1* | |
513 | %{_mandir}/man1/testrb.1* | |
15467dc7 | 514 | |
9fd96af7 | 515 | %files doc |
9434194f | 516 | %defattr(644,root,root,755) |
b2f04116 | 517 | %doc ruby-doc-bundle/* |
af4f9d38 JR |
518 | %{?with_doc:%doc ruby_%{doc_version}_stdlib} |
519 | %{?with_doc:%doc ruby_%{doc_version}_core} | |
87b9c30a | 520 | |
d0f5536d | 521 | %if %{with doc} |
9fd96af7 | 522 | %files doc-ri |
e40bfe06 | 523 | %defattr(644,root,root,755) |
31058abe | 524 | %{_datadir}/ri/%{ruby_version}/system/* |
d0f5536d | 525 | %endif |
265d0efe | 526 | |
9fd96af7 | 527 | %files examples |
616a12d8 | 528 | %defattr(644,root,root,755) |
9fd96af7 | 529 | %{_examplesdir}/%{name}-%{version} |