Mercurial > packages > rhel6 > feed2imap
comparison feed2imap.spec @ 0:35b72dc38da1
Initial revision
author | Guido Berhoerster <guido+packaging@berhoerster.name> |
---|---|
date | Wed, 09 Jan 2013 17:34:41 +0100 |
parents | |
children | f17c85a9fb8b |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:35b72dc38da1 |
---|---|
1 %global ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']") | |
2 %global snapshot 20130109 | |
3 | |
4 Name: feed2imap | |
5 Version: 1.0 | |
6 Release: 1.%{snapshot}git%{?dist} | |
7 Summary: RSS/Atom Feed Aggregator Using an IMAP Server or Maildir for Storage | |
8 | |
9 Group: Applications/Internet | |
10 License: GPLv2+ | |
11 URL: http://home.gna.org/feed2imap/ | |
12 # git clone git://github.com/ln/feed2imap.git; tar -cjf feed2imap-$(date +%%Y%%m%%d).tar.bz2 --exclude-vcs feed2imap | |
13 Source0: %{name}-%{snapshot}.tar.bz2 | |
14 # make feed2imap compatible with rubygem versions of ruby-feedparser and rmail | |
15 Patch0: feed2imap-rubygem-compatibility.patch | |
16 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) | |
17 BuildArch: noarch | |
18 | |
19 BuildRequires: ruby(abi) = 1.8 | |
20 BuildRequires: ruby | |
21 Requires: ruby(abi) = 1.8 | |
22 Requires: ruby | |
23 Requires: rubygem(ruby-feedparser) >= 0.7 | |
24 Requires: rubygem(rmail) >= 1.0.0 | |
25 | |
26 %description | |
27 feed2imap is an RSS/Atom feed aggregator. After Downloading feeds (over HTTP or | |
28 HTTPS), it uploads them to a specified folder of an IMAP mail server, or copies | |
29 them to a local maildir. The user can then access the feeds using a mail user | |
30 agent. | |
31 | |
32 %prep | |
33 %setup -q -n %{name} | |
34 %patch0 -p1 | |
35 | |
36 %build | |
37 ruby setup.rb config | |
38 | |
39 %install | |
40 rm -rf %{buildroot} | |
41 ruby setup.rb install --prefix=%{buildroot} | |
42 rm -rf %{buildroot}%{_datadir}/doc | |
43 | |
44 %clean | |
45 rm -rf %{buildroot} | |
46 | |
47 %files | |
48 %defattr(-,root,root,-) | |
49 %doc ChangeLog README COPYING data/doc/feed2imap/examples/feed2imaprc | |
50 %{_bindir}/feed2imap-opmlimport | |
51 %{_bindir}/feed2imap | |
52 %{_bindir}/feed2imap-dumpconfig | |
53 %{_bindir}/feed2imap-cleaner | |
54 %{ruby_sitelib}/feed2imap.rb | |
55 %dir %{ruby_sitelib}/feed2imap | |
56 %{ruby_sitelib}/feed2imap | |
57 %{_mandir}/man5/feed2imaprc.5* | |
58 %{_mandir}/man1/feed2imap-cleaner.1* | |
59 %{_mandir}/man1/feed2imap.1* | |
60 %{_mandir}/man1/feed2imap-dumpconfig.1* | |
61 %{_mandir}/man1/feed2imap-opmlimport.1* | |
62 | |
63 %changelog | |
64 * Wed Jan 09 2013 Guido Berhoerster <guido+packaging@berhoerster.name> - 1.0-1.20130109 | |
65 - Initial packaging |