]> git.pld-linux.org Git - packages/ruby-text-format.git/blame - ruby-text-format.spec
- ruby 2.0 rebuild
[packages/ruby-text-format.git] / ruby-text-format.spec
CommitLineData
f0f02d8f 1%define pkgname text-format
e68c24ae 2Summary: A Ruby port of Text::Format
9d21782e 3Summary(pl.UTF-8): Port Text::Format dla języka Ruby
f0f02d8f 4Name: ruby-%{pkgname}
510eed25 5Version: 1.0.0
278ee49b 6Release: 2
72ad9e96 7License: GPL
8Group: Development/Libraries
510eed25
JR
9Source0: http://rubygems.org/downloads/%{pkgname}-%{version}.gem
10# Source0-md5: 7b08f134e605da252c23afedbb481beb
13e756c0 11URL: http://www.halostatue.ca/ruby/Text__Format.html
34027e77 12BuildRequires: rpmbuild(macros) >= 1.277
3a268596 13BuildRequires: ruby-modules
1b6febb8 14%{?ruby_mod_ver_requires_eq}
f0f02d8f
JR
15Obsoletes: ruby-Text-Format
16Provides: ruby-Text-Format
72ad9e96 17BuildRoot: %{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
23Text::Format provides strong text formatting capabilities to Ruby.
24Based on Perl's Text::Format 0.52, it offers all of the functionality
13e756c0 25of that module and new capabilities besides.
e68c24ae 26
292fe192
JR
27%description -l pl.UTF-8
28Text::Format udostępnia potężne możliwości formatowania tekstu w
29języku Ruby. Jest oparty na perlowym Text::Format 0.52 i oferuje całą
30funkcjonalność tego modułu, a przy okazji nowe funkcje.
72ad9e96 31
510eed25 32%package rdoc
b87a0b1d
JR
33Summary: HTML documentation for %{pkgname}
34Summary(pl.UTF-8): Dokumentacja w formacie HTML dla %{pkgname}
510eed25
JR
35Group: Documentation
36Requires: ruby >= 1:1.8.7-4
37
38%description rdoc
b87a0b1d
JR
39HTML documentation for %{pkgname}.
40
41%description rdoc -l pl.UTF-8
42Dokumentacja w formacie HTML dla %{pkgname}.
43
44%package ri
45Summary: ri documentation for %{pkgname}
46Summary(pl.UTF-8): Dokumentacja w formacie ri dla %{pkgname}
47Group: Documentation
48Requires: ruby
49
50%description ri
51ri documentation for %{pkgname}.
52
53%description ri -l pl.UTF-8
54Dokumentacji 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
59find -newer README -o -print | xargs touch --reference %{SOURCE0}
72ad9e96 60
61%build
72ad9e96 62rdoc --inline-source --op rdoc lib
63rdoc --ri --op ri lib
510eed25
JR
64# rm -rf ri/NOT_THIS_MODULE_RELATED_DIRS
65rm -f ri/created.rid
72ad9e96 66
67%install
68rm -rf $RPM_BUILD_ROOT
510eed25 69install -d $RPM_BUILD_ROOT{%{ruby_rubylibdir},%{ruby_ridir},%{ruby_rdocdir}/%{name}-%{version}}
72ad9e96 70
510eed25 71cp -a lib/* $RPM_BUILD_ROOT%{ruby_rubylibdir}
dd1a3f5a 72cp -a ri/* $RPM_BUILD_ROOT%{ruby_ridir}
510eed25 73cp -a rdoc $RPM_BUILD_ROOT%{ruby_rdocdir}/%{name}-%{version}
72ad9e96 74
75%clean
76rm -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
This page took 0.072265 seconds and 4 git commands to generate.