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