packages/rhel6/rubygem-ruby-feedparser

view rubygem-ruby-feedparser.spec @ 2:1994a0a86f86

Update to version 0.9.3
author Guido Berhoerster <guido+packaging@berhoerster.name>
date Mon Apr 28 17:33:20 2014 +0200 (2014-04-28)
parents 96f724280bbf
children 299cdbca3f7a
line source
1 %global gemname ruby-feedparser
3 %global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
4 %global geminstdir %{gemdir}/gems/%{gemname}-%{version}
5 %global gemdocdir %{gemdir}/doc/%{gemname}-%{version}
6 %global rubyabi 1.8
8 Name: rubygem-%{gemname}
9 Version: 0.9.3
10 Release: 1%{?dist}
11 Summary: Ruby Library to Parse ATOM and RSS Feeds
13 Group: Development/Languages
14 License: BSD
15 URL: http://rubygems.org/gems/ruby-feedparser
16 Source0: http://rubygems.org/downloads/%{gemname}-%{version}.gem
17 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
18 BuildArch: noarch
20 BuildRequires: ruby(abi) = 1.8
21 BuildRequires: ruby
22 BuildRequires: ruby(rubygems)
23 Requires: ruby(abi) = 1.8
24 Requires: ruby
25 Requires: ruby(rubygems)
26 Requires: rubygem(magic)
27 Provides: rubygem(%{gemname}) = %{version}
29 %description
30 ruby-feedparser is an RSS and Atom parser for Ruby. It was initially developed
31 for Feed2Imap, but it is now a standalone library.
33 ruby-feedparser is:
35 * based on REXML
36 * built for robustness : most feeds are not valid, a parser can't ignore that
37 * fully unit-tested
38 * easy to use (it can output text or HTML easily)
40 %package doc
41 Summary: Documentation for %{name}
42 Group: Documentation
43 Requires: %{name} = %{version}-%{release}
44 BuildArch: noarch
46 %description doc
47 Documentation for %{name}.
49 %prep
50 %setup -q -c -T
52 %build
54 %install
55 rm -rf %{buildroot}
56 mkdir -p %{buildroot}%{gemdir}
57 gem install --local --install-dir %{buildroot}%{gemdir} \
58 --force %{SOURCE0}
59 find %{buildroot}%{geminstdir} %{buildroot}%{gemdocdir} \
60 -type f -exec chmod 644 {} \+
61 find %{buildroot}%{geminstdir}/test %{buildroot}%{geminstdir}/tools \
62 %{buildroot}%{geminstdir}/setup.rb -type f -exec chmod 755 {} \+
64 %clean
65 rm -rf %{buildroot}
67 %files
68 %defattr(-, root, root, -)
69 %dir %{geminstdir}
70 %doc %{geminstdir}/LICENSE
71 %doc %{geminstdir}/COPYING
72 %{geminstdir}/Rakefile
73 %{geminstdir}/setup.rb
74 %{geminstdir}/lib
75 %{geminstdir}/test
76 %{geminstdir}/tools
77 %{gemdir}/cache/%{gemname}-%{version}.gem
78 %{gemdir}/specifications/%{gemname}-%{version}.gemspec
80 %files doc
81 %defattr(-,root,root,-)
82 %doc %{gemdocdir}
83 %doc %{geminstdir}/ChangeLog
84 %doc %{geminstdir}/README
86 %changelog
87 * Mon Apr 28 2014 Guido Berhoerster <guido+packaging@berhoerster.name> - 0.9.3-1
88 - Update to version 0.9.3
90 * Wed Jan 09 2013 Guido Berhoerster <guido+packaging@berhoerster.name> - 0.7-1
91 - Initial packaging