]>
Commit | Line | Data |
---|---|---|
f0f02d8f | 1 | %define pkgname text-format |
e68c24ae | 2 | Summary: A Ruby port of Text::Format |
9d21782e | 3 | Summary(pl.UTF-8): Port Text::Format dla języka Ruby |
f0f02d8f | 4 | Name: ruby-%{pkgname} |
510eed25 | 5 | Version: 1.0.0 |
278ee49b | 6 | Release: 2 |
72ad9e96 | 7 | License: GPL |
8 | Group: Development/Libraries | |
510eed25 JR |
9 | Source0: http://rubygems.org/downloads/%{pkgname}-%{version}.gem |
10 | # Source0-md5: 7b08f134e605da252c23afedbb481beb | |
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} |
f0f02d8f JR |
15 | Obsoletes: ruby-Text-Format |
16 | Provides: ruby-Text-Format | |
72ad9e96 | 17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
18 | ||
b87a0b1d JR |
19 | # nothing to be placed there. we're not noarch only because of ruby packaging |
20 | %define _enable_debug_packages 0 | |
21 | ||
72ad9e96 | 22 | %description |
e68c24ae JB |
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 | |
13e756c0 | 25 | of that module and new capabilities besides. |
e68c24ae | 26 | |
292fe192 JR |
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. | |
72ad9e96 | 31 | |
510eed25 | 32 | %package rdoc |
b87a0b1d JR |
33 | Summary: HTML documentation for %{pkgname} |
34 | Summary(pl.UTF-8): Dokumentacja w formacie HTML dla %{pkgname} | |
510eed25 JR |
35 | Group: Documentation |
36 | Requires: ruby >= 1:1.8.7-4 | |
37 | ||
38 | %description rdoc | |
b87a0b1d JR |
39 | HTML documentation for %{pkgname}. |
40 | ||
41 | %description rdoc -l pl.UTF-8 | |
42 | Dokumentacja w formacie HTML dla %{pkgname}. | |
43 | ||
44 | %package ri | |
45 | Summary: ri documentation for %{pkgname} | |
46 | Summary(pl.UTF-8): Dokumentacja w formacie ri dla %{pkgname} | |
47 | Group: Documentation | |
48 | Requires: ruby | |
49 | ||
50 | %description ri | |
51 | ri documentation for %{pkgname}. | |
52 | ||
53 | %description ri -l pl.UTF-8 | |
54 | Dokumentacji w formacie ri dla %{pkgname}. | |
510eed25 | 55 | |
72ad9e96 | 56 | %prep |
510eed25 JR |
57 | %setup -q -c |
58 | %{__tar} xf %{SOURCE0} -O data.tar.gz | %{__tar} xz | |
59 | find -newer README -o -print | xargs touch --reference %{SOURCE0} | |
72ad9e96 | 60 | |
61 | %build | |
72ad9e96 | 62 | rdoc --inline-source --op rdoc lib |
63 | rdoc --ri --op ri lib | |
510eed25 JR |
64 | # rm -rf ri/NOT_THIS_MODULE_RELATED_DIRS |
65 | rm -f ri/created.rid | |
72ad9e96 | 66 | |
67 | %install | |
68 | rm -rf $RPM_BUILD_ROOT | |
510eed25 | 69 | install -d $RPM_BUILD_ROOT{%{ruby_rubylibdir},%{ruby_ridir},%{ruby_rdocdir}/%{name}-%{version}} |
72ad9e96 | 70 | |
510eed25 | 71 | cp -a lib/* $RPM_BUILD_ROOT%{ruby_rubylibdir} |
dd1a3f5a | 72 | cp -a ri/* $RPM_BUILD_ROOT%{ruby_ridir} |
510eed25 | 73 | cp -a rdoc $RPM_BUILD_ROOT%{ruby_rdocdir}/%{name}-%{version} |
72ad9e96 | 74 | |
75 | %clean | |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | ||
78 | %files | |
79 | %defattr(644,root,root,755) | |
80 | %{ruby_rubylibdir}/* | |
510eed25 JR |
81 | |
82 | %files rdoc | |
83 | %defattr(644,root,root,755) | |
84 | %{ruby_rdocdir}/%{name}-%{version} | |
b87a0b1d JR |
85 | |
86 | %files ri | |
87 | %defattr(644,root,root,755) | |
510eed25 | 88 | %{ruby_ridir}/Text |