annotate rubygem-ruby-feedparser.spec @ 3:299cdbca3f7a default tip

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