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)
20 Text::Format provides strong text formatting capabilities to Ruby.
21 Based on Perl's Text::Format 0.52, it offers all of the functionality
22 of that module and new capabilities besides.
24 %description -l pl.UTF-8
25 Text::Format udostępnia potężne możliwości formatowania tekstu w
26 języku Ruby. Jest oparty na perlowym Text::Format 0.52 i oferuje całą
27 funkcjonalność tego modułu, a przy okazji nowe funkcje.
30 Summary: Documentation files for %{pkgname}
32 Requires: ruby >= 1:1.8.7-4
35 Documentation files for %{pkgname}.
39 %{__tar} xf %{SOURCE0} -O data.tar.gz | %{__tar} xz
40 find -newer README -o -print | xargs touch --reference %{SOURCE0}
43 rdoc --inline-source --op rdoc lib
45 # rm -rf ri/NOT_THIS_MODULE_RELATED_DIRS
49 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT{%{ruby_rubylibdir},%{ruby_ridir},%{ruby_rdocdir}/%{name}-%{version}}
52 cp -a lib/* $RPM_BUILD_ROOT%{ruby_rubylibdir}
53 cp -a ri/* $RPM_BUILD_ROOT%{ruby_ridir}
54 cp -a rdoc $RPM_BUILD_ROOT%{ruby_rdocdir}/%{name}-%{version}
57 rm -rf $RPM_BUILD_ROOT
60 %defattr(644,root,root,755)
64 %defattr(644,root,root,755)
65 %{ruby_rdocdir}/%{name}-%{version}