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