Mercurial > packages > rhel6 > rubygem-ruby-feedparser
annotate rubygem-ruby-feedparser.spec @ 2:1994a0a86f86
Update to version 0.9.3
author | Guido Berhoerster <guido+packaging@berhoerster.name> |
---|---|
date | Mon, 28 Apr 2014 17:33:20 +0200 |
parents | 96f724280bbf |
children | 299cdbca3f7a |
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} |
2
1994a0a86f86
Update to version 0.9.3
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
0
diff
changeset
|
9 Version: 0.9.3 |
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) |
2
1994a0a86f86
Update to version 0.9.3
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
0
diff
changeset
|
26 Requires: rubygem(magic) |
0
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
27 Provides: rubygem(%{gemname}) = %{version} |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
28 |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
29 %description |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
30 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
|
31 for Feed2Imap, but it is now a standalone library. |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
32 |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
33 ruby-feedparser is: |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
34 |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
35 * based on REXML |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
36 * 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
|
37 * fully unit-tested |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
38 * easy to use (it can output text or HTML easily) |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
39 |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
40 %package doc |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
41 Summary: Documentation for %{name} |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
42 Group: Documentation |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
43 Requires: %{name} = %{version}-%{release} |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
44 BuildArch: noarch |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
45 |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
46 %description doc |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
47 Documentation for %{name}. |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
48 |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
49 %prep |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
50 %setup -q -c -T |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
51 |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
52 %build |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
53 |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
54 %install |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
55 rm -rf %{buildroot} |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
56 mkdir -p %{buildroot}%{gemdir} |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
57 gem install --local --install-dir %{buildroot}%{gemdir} \ |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
58 --force %{SOURCE0} |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
59 find %{buildroot}%{geminstdir} %{buildroot}%{gemdocdir} \ |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
60 -type f -exec chmod 644 {} \+ |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
61 find %{buildroot}%{geminstdir}/test %{buildroot}%{geminstdir}/tools \ |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
62 %{buildroot}%{geminstdir}/setup.rb -type f -exec chmod 755 {} \+ |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
63 |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
64 %clean |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
65 rm -rf %{buildroot} |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
66 |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
67 %files |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
68 %defattr(-, root, root, -) |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
69 %dir %{geminstdir} |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
70 %doc %{geminstdir}/LICENSE |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
71 %doc %{geminstdir}/COPYING |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
72 %{geminstdir}/Rakefile |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
73 %{geminstdir}/setup.rb |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
74 %{geminstdir}/lib |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
75 %{geminstdir}/test |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
76 %{geminstdir}/tools |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
77 %{gemdir}/cache/%{gemname}-%{version}.gem |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
78 %{gemdir}/specifications/%{gemname}-%{version}.gemspec |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
79 |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
80 %files doc |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
81 %defattr(-,root,root,-) |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
82 %doc %{gemdocdir} |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
83 %doc %{geminstdir}/ChangeLog |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
84 %doc %{geminstdir}/README |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
85 |
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
86 %changelog |
2
1994a0a86f86
Update to version 0.9.3
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
0
diff
changeset
|
87 * Mon Apr 28 2014 Guido Berhoerster <guido+packaging@berhoerster.name> - 0.9.3-1 |
1994a0a86f86
Update to version 0.9.3
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
0
diff
changeset
|
88 - Update to version 0.9.3 |
1994a0a86f86
Update to version 0.9.3
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
0
diff
changeset
|
89 |
0
96f724280bbf
Initial revision
Guido Berhoerster <guido+packaging@berhoerster.name>
parents:
diff
changeset
|
90 * 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
|
91 - Initial packaging |