]> git.pld-linux.org Git - packages/ruby-text-format.git/blob - ruby-text-format.spec
- up to 1.0.0
[packages/ruby-text-format.git] / ruby-text-format.spec
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
4 Name:           ruby-%{pkgname}
5 Version:        1.0.0
6 Release:        1
7 License:        GPL
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)
18
19 %description
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.
23
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.
28
29 %package rdoc
30 Summary:        Documentation files for %{pkgname}
31 Group:          Documentation
32 Requires:       ruby >= 1:1.8.7-4
33
34 %description rdoc
35 Documentation files for %{pkgname}.
36
37 %prep
38 %setup -q -c
39 %{__tar} xf %{SOURCE0} -O data.tar.gz | %{__tar} xz
40 find -newer README  -o -print | xargs touch --reference %{SOURCE0}
41
42 %build
43 rdoc --inline-source --op rdoc lib
44 rdoc --ri --op ri lib
45 # rm -rf ri/NOT_THIS_MODULE_RELATED_DIRS
46 rm -f ri/created.rid
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT{%{ruby_rubylibdir},%{ruby_ridir},%{ruby_rdocdir}/%{name}-%{version}}
51
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}
55
56 %clean
57 rm -rf $RPM_BUILD_ROOT
58
59 %files
60 %defattr(644,root,root,755)
61 %{ruby_rubylibdir}/*
62
63 %files rdoc
64 %defattr(644,root,root,755)
65 %{ruby_rdocdir}/%{name}-%{version}
66 %{ruby_ridir}/Text
This page took 0.071669 seconds and 4 git commands to generate.