2 Summary: Fast Ruby documentation browser
3 Summary(pl.UTF-8): Szybka przeglądarka dokumentacji Ruby
8 Group: Development/Languages
9 Source0: http://eigenclass.org/static/fastri/%{pkgname}-%{version}.tar.gz
10 # Source0-md5: 3a7d0a64b1c8e230a34ef7b4bad30dbe
11 URL: http://eigenclass.org/hiki.rb?fastri
12 BuildRequires: rpmbuild(macros) >= 1.484
13 BuildRequires: ruby >= 1:1.8.6
14 BuildRequires: ruby-modules
15 %{?ruby_mod_ver_requires_eq}
16 Requires: ruby-modules >= 1:1.8.7-3
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 FastRI is an alternative to the ri command-line tool. It is *much*
21 faster, and also allows you to offer RI lookup services over DRb.
22 FastRI is a bit smarter than ri, and can find classes anywhere in
23 the hierarchy without specifying the "full path". It also knows
24 about gems, and can tell you e.g. which extensions to a core class
25 were added by a specific gem.
27 %description -l pl.UTF-8
28 FastRI jest alternatywą dla narzędzia ri. Jest *znacznie* szybszy i
29 pozwala na oferowanie usług wyszukiwania RI poprzez DRb. FastRI jest
30 nieco mądrzejszy od ri i może znaleźć klasy gdziekolwiek w hierarchii
31 bez potrzeby podawania "pełnej ścieżki". Wie także o gemach i może
32 informować np. o tym które rozszerzenia klasy bazowej zostały dodane
36 Summary: HTML documentation for %{pkgname}
37 Summary(pl.UTF-8): Dokumentacja w formacie HTML dla %{pkgname}
39 Requires: ruby >= 1:1.8.7-4
42 HTML documentation for %{pkgname}.
44 %description rdoc -l pl.UTF-8
45 Dokumentacja w formacie HTML dla %{pkgname}.
48 Summary: ri documentation for %{pkgname}
49 Summary(pl.UTF-8): Dokumentacja w formacie ri dla %{pkgname}
54 ri documentation for %{pkgname}.
56 %description ri -l pl.UTF-8
57 Dokumentacji w formacie ri dla %{pkgname}.
60 %setup -q -n %{pkgname}-%{version}
63 %{__ruby} setup.rb config \
64 --site-ruby=%{ruby_vendorlibdir} \
65 --so-dir=%{ruby_vendorarchdir}
71 rm -r ri/{DefaultDisplay,Gem,RI}
75 rm -rf $RPM_BUILD_ROOT
76 install -d $RPM_BUILD_ROOT{%{ruby_rubylibdir},%{ruby_ridir},%{ruby_rdocdir}}
78 ruby setup.rb install \
79 --prefix=$RPM_BUILD_ROOT
81 cp -a ri/* $RPM_BUILD_ROOT%{ruby_ridir}
82 cp -a rdoc $RPM_BUILD_ROOT%{ruby_rdocdir}/%{name}-%{version}
85 rm -rf $RPM_BUILD_ROOT
88 %defattr(644,root,root,755)
89 %doc CHANGES README.en THANKS
90 %attr(755,root,root) %{_bindir}/fastri-server
91 %attr(755,root,root) %{_bindir}/fri
92 %attr(755,root,root) %{_bindir}/qri
93 %attr(755,root,root) %{_bindir}/ri-emacs
94 %{ruby_vendorlibdir}/fastri
97 %defattr(644,root,root,755)
98 %{ruby_rdocdir}/%{name}-%{version}
101 %defattr(644,root,root,755)