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