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