]>
Commit | Line | Data |
---|---|---|
e68c24ae | 1 | Summary: A Ruby port of Text::Format |
9d21782e | 2 | Summary(pl.UTF-8): Port Text::Format dla języka Ruby |
72ad9e96 | 3 | Name: ruby-Text-Format |
4 | Version: 0.64 | |
e11d11b5 | 5 | Release: 3 |
72ad9e96 | 6 | License: GPL |
7 | Group: Development/Libraries | |
8 | Source0: http://www.halostatue.ca/files/text-format-%{version}.tar.gz | |
9 | # Source0-md5: f9e1aa720f39fffd4c83aeae4ba9e90f | |
10 | Source1: setup.rb | |
13e756c0 | 11 | URL: http://www.halostatue.ca/ruby/Text__Format.html |
34027e77 | 12 | BuildRequires: rpmbuild(macros) >= 1.277 |
3a268596 | 13 | BuildRequires: ruby-modules |
1b6febb8 | 14 | %{?ruby_mod_ver_requires_eq} |
72ad9e96 | 15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
16 | ||
17 | %description | |
e68c24ae JB |
18 | Text::Format provides strong text formatting capabilities to Ruby. |
19 | Based on Perl's Text::Format 0.52, it offers all of the functionality | |
13e756c0 | 20 | of that module and new capabilities besides. |
e68c24ae | 21 | |
292fe192 JR |
22 | %description -l pl.UTF-8 |
23 | Text::Format udostępnia potężne możliwości formatowania tekstu w | |
24 | języku Ruby. Jest oparty na perlowym Text::Format 0.52 i oferuje całą | |
25 | funkcjonalność tego modułu, a przy okazji nowe funkcje. | |
72ad9e96 | 26 | |
27 | %prep | |
13e756c0 ER |
28 | %setup -q -n text-format-%{version} |
29 | cp %{SOURCE1} . | |
72ad9e96 | 30 | |
31 | %build | |
72ad9e96 | 32 | ruby setup.rb config \ |
263ea65f | 33 | --siterubyver=%{ruby_rubylibdir} |
72ad9e96 | 34 | |
35 | ruby setup.rb setup | |
36 | rdoc --inline-source --op rdoc lib | |
37 | rdoc --ri --op ri lib | |
38 | ||
39 | %install | |
40 | rm -rf $RPM_BUILD_ROOT | |
41 | install -d $RPM_BUILD_ROOT{%{ruby_rubylibdir},%{ruby_ridir}} | |
42 | ||
43 | ruby setup.rb install \ | |
dec378dd | 44 | --prefix=$RPM_BUILD_ROOT |
72ad9e96 | 45 | |
dd1a3f5a | 46 | cp -a ri/* $RPM_BUILD_ROOT%{ruby_ridir} |
72ad9e96 | 47 | |
48 | %clean | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %files | |
52 | %defattr(644,root,root,755) | |
53 | %{ruby_rubylibdir}/* | |
54 | %{ruby_ridir}/* |