1 %define pkgname text-format
2 Summary: A Ruby port of Text::Format
3 Summary(pl.UTF-8): Port Text::Format dla języka Ruby
8 Group: Development/Libraries
9 Source0: http://rubygems.org/downloads/%{pkgname}-%{version}.gem
10 # Source0-md5: 7b08f134e605da252c23afedbb481beb
11 URL: http://www.halostatue.ca/ruby/Text__Format.html
12 BuildRequires: rpmbuild(macros) >= 1.277
13 BuildRequires: ruby-modules
14 %{?ruby_mod_ver_requires_eq}
15 Obsoletes: ruby-Text-Format
16 Provides: ruby-Text-Format
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 # nothing to be placed there. we're not noarch only because of ruby packaging
20 %define _enable_debug_packages 0
23 Text::Format provides strong text formatting capabilities to Ruby.
24 Based on Perl's Text::Format 0.52, it offers all of the functionality
25 of that module and new capabilities besides.
27 %description -l pl.UTF-8
28 Text::Format udostępnia potężne możliwości formatowania tekstu w
29 języku Ruby. Jest oparty na perlowym Text::Format 0.52 i oferuje całą
30 funkcjonalność tego modułu, a przy okazji nowe funkcje.
33 Summary: HTML documentation for %{pkgname}
34 Summary(pl.UTF-8): Dokumentacja w formacie HTML dla %{pkgname}
36 Requires: ruby >= 1:1.8.7-4
39 HTML documentation for %{pkgname}.
41 %description rdoc -l pl.UTF-8
42 Dokumentacja w formacie HTML dla %{pkgname}.
45 Summary: ri documentation for %{pkgname}
46 Summary(pl.UTF-8): Dokumentacja w formacie ri dla %{pkgname}
51 ri documentation for %{pkgname}.
53 %description ri -l pl.UTF-8
54 Dokumentacji w formacie ri dla %{pkgname}.
58 %{__tar} xf %{SOURCE0} -O data.tar.gz | %{__tar} xz
59 find -newer README -o -print | xargs touch --reference %{SOURCE0}
62 rdoc --inline-source --op rdoc lib
64 # rm -rf ri/NOT_THIS_MODULE_RELATED_DIRS
68 rm -rf $RPM_BUILD_ROOT
69 install -d $RPM_BUILD_ROOT{%{ruby_rubylibdir},%{ruby_ridir},%{ruby_rdocdir}/%{name}-%{version}}
71 cp -a lib/* $RPM_BUILD_ROOT%{ruby_rubylibdir}
72 cp -a ri/* $RPM_BUILD_ROOT%{ruby_ridir}
73 cp -a rdoc $RPM_BUILD_ROOT%{ruby_rdocdir}/%{name}-%{version}
76 rm -rf $RPM_BUILD_ROOT
79 %defattr(644,root,root,755)
83 %defattr(644,root,root,755)
84 %{ruby_rdocdir}/%{name}-%{version}
87 %defattr(644,root,root,755)