]> git.pld-linux.org Git - packages/ruby-text-format.git/blob - ruby-text-format.spec
- ruby 2.0 rebuild
[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:        2
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 # nothing to be placed there. we're not noarch only because of ruby packaging
20 %define         _enable_debug_packages  0
21
22 %description
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.
26
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.
31
32 %package rdoc
33 Summary:        HTML documentation for %{pkgname}
34 Summary(pl.UTF-8):      Dokumentacja w formacie HTML dla %{pkgname}
35 Group:          Documentation
36 Requires:       ruby >= 1:1.8.7-4
37
38 %description rdoc
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}.
55
56 %prep
57 %setup -q -c
58 %{__tar} xf %{SOURCE0} -O data.tar.gz | %{__tar} xz
59 find -newer README  -o -print | xargs touch --reference %{SOURCE0}
60
61 %build
62 rdoc --inline-source --op rdoc lib
63 rdoc --ri --op ri lib
64 # rm -rf ri/NOT_THIS_MODULE_RELATED_DIRS
65 rm -f ri/created.rid
66
67 %install
68 rm -rf $RPM_BUILD_ROOT
69 install -d $RPM_BUILD_ROOT{%{ruby_rubylibdir},%{ruby_ridir},%{ruby_rdocdir}/%{name}-%{version}}
70
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}
74
75 %clean
76 rm -rf $RPM_BUILD_ROOT
77
78 %files
79 %defattr(644,root,root,755)
80 %{ruby_rubylibdir}/*
81
82 %files rdoc
83 %defattr(644,root,root,755)
84 %{ruby_rdocdir}/%{name}-%{version}
85
86 %files ri
87 %defattr(644,root,root,755)
88 %{ruby_ridir}/Text
This page took 0.035184 seconds and 3 git commands to generate.