80834da
Name:           rss2email
8657ef4
Version:        2.70
db8d28b
Release:        1
8657ef4
Summary:        Deliver news from RSS feeds to your SMTP server as text or HTML mail
80834da
80834da
Group:          Applications/Internet
8657ef4
License:        GPLv2 or GPLv3
ca622db
URL:            http://www.allthingsrss.com/rss2email/
8657ef4
Source0:        http://www.allthingsrss.com/rss2email/rss2email-%{version}.tar.gz 
8657ef4
# Fedora variant of the "r2e" shell-wrapper script to run rss2email.py
8657ef4
# in its home directory.
80834da
Source3:        rss2email-r2e
80834da
# man page taken from 
80834da
# http://ftp.debian.org/debian/pool/main/r/rss2email/rss2email_2.60-3.diff.gz
80834da
Source4:        rss2email-r2e.1
80834da
8657ef4
# Let rss2email also look for ${HOME}/.rss2email/config.py
8657ef4
# Remove the sys.path.insert(0,'.') module search path list alteration.
8657ef4
# Problem and intended purpose of the patch reported upstream.
8657ef4
Patch0:         rss2email-2.70-config-location.patch
8657ef4
8657ef4
BuildArch:      noarch
80834da
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
80834da
8657ef4
# These Python modules are imported by rss2email.
8657ef4
# The rss2email tarball contains copies of them, because some dists ship
8657ef4
# old modules which result in rss2email bug reports. We want to use the
8657ef4
# external packages due to Fedora packaging policies.
a5b841f
#
a5b841f
# 2011-01-12
a5b841f
#  - feedparser in Fedora 14 : 4.1
a5b841f
#  - feedparser in rss2email 2.66 to 2.70 : 4.2-pre
80834da
Requires:       python-feedparser
80834da
Requires:       python-html2text
80834da
80834da
%description
80834da
rss2email lets you subscribe to a list of XML newsfeeds (RSS or Atom). It can
80834da
parse them regularly with the help of cron and send new items to you by email.
80834da
8657ef4
An HTML mail will be send in the default configuration to the local SMTP server.
8657ef4
See the manual page r2e for details on how to set up rss2email.
80834da
80834da
80834da
%prep
ca622db
%setup -q
8657ef4
chmod -x CHANGELOG readme* config*
8657ef4
# prepare the custom "r2e" wrapper script
8657ef4
cat %{SOURCE3} | sed -e 's!@datadir@!%{_datadir}!' > rss2email-r2e
8657ef4
8657ef4
%patch0 -p1 -b .config-location
8657ef4
sed -i -e 's/\r//' CHANGELOG rss2email.py config.py.example
80834da
80834da
80834da
%build
80834da
echo nothing to build
80834da
80834da
80834da
%install
80834da
rm -rf $RPM_BUILD_ROOT
80834da
mkdir -p  \
80834da
   $RPM_BUILD_ROOT%{_bindir}/ \
80834da
   $RPM_BUILD_ROOT%{_datadir}/%{name}/  \
80834da
   $RPM_BUILD_ROOT%{_mandir}/man1/
80834da
80834da
install -p -m 0755 rss2email.py $RPM_BUILD_ROOT%{_datadir}/%{name}/
8657ef4
install -p -m 0755 rss2email-r2e $RPM_BUILD_ROOT%{_bindir}/r2e
80834da
install -p -m 0644 %{SOURCE4} $RPM_BUILD_ROOT%{_mandir}/man1/r2e.1
8657ef4
# the copy in docdir may not be present for an --excludedocs install
8657ef4
install -p -m 0644 config.py.example $RPM_BUILD_ROOT%{_datadir}/%{name}/
80834da
80834da
80834da
%clean
80834da
rm -rf $RPM_BUILD_ROOT
80834da
80834da
80834da
%files
80834da
%defattr(-,root,root,-)
8657ef4
%doc CHANGELOG readme.html config.py.example
80834da
%{_bindir}/*
80834da
%{_datadir}/%{name}/
80834da
%{_mandir}/man1/*
80834da
80834da
%changelog
8657ef4
* Wed Jan 12 2011 Michael Schwendt <mschwendt@fedoraproject.org> - 2.70-1
8657ef4
- Upgrade to 2.70.
8657ef4
- Update r2e wrapper script.
8657ef4
- Patch config.py loader (now first look in current dir like upstream,
8657ef4
  but if not found look for $HOME/.rss2email/config.py).
8657ef4
- Include config.py.example also in the documentation directory.
8657ef4
- Various minor spec file adjustments.
8657ef4
ca622db
* Sun Jul 04 2010 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 2.66-1
ca622db
- update to 2.66, which now is shipped in a tarball 
ca622db
185ffd5
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.65-3.1
185ffd5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
185ffd5
60eeac4
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.65-2.1
60eeac4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
60eeac4
8bd7811
* Tue Jan 06 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 2.65-1
8bd7811
- update to 2.65
8bd7811
- recreate rss2email-use-configpy-from-homedir.patch
8bd7811
00895f8
* Sun Oct 26 2008 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 2.64-1
00895f8
- update to 2.64
00895f8
- drop rss2email-warn-if-problems-with-local-mta.patch, something similar now
00895f8
  upstream
00895f8
944003e
* Fri Jul 04 2008 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 2.63-1
944003e
- update to 2.63 (GPLv3 now)
944003e
c7eee13
* Sat Jan 19 2008 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 2.62-1
c7eee13
- Update to 2.62
c7eee13
a201ec2
* Fri Dec 14 2007 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 2.61-1
a201ec2
- Update to 2.61
a201ec2
401955b
* Fri Aug 03 2007 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info>
401955b
- Update License field due to the "Licensing guidelines changes"
401955b
80834da
* Sun Mar 24 2007 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 2.60-3
80834da
- Use sed instead of dos2unix
80834da
- Some small fixes from review bug #233715
80834da
- Apply one patch from Debian that should warn if there are problems with
80834da
  local delivery via sendmail
80834da
80834da
* Sat Mar 24 2007 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 2.60-2
80834da
- Seperate package for html2text, as it might be useful for other stuff
80834da
  as well
80834da
- update r2e and make it possible to manage different feed files (optional,
80834da
  use r2e option "--feedext foo" to use it)
80834da
- add some common used, but-no-so-well documented configuration parameters
80834da
  to config.py template and give a hint where to find docs what they do
80834da
80834da
* Fri Mar 23 2007 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 2.60-1
80834da
- Initial package