%global __python3 /usr/bin/python3 %{!?python3_sitelib: %define python3_sitelib %(%{__python3} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %global commit be376a6f0607e9fa490d6c456eebf033405186ae %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: rss2email Version: 3.8 Release: 0.3.vcs20140721git%{shortcommit}%{?dist} Summary: Deliver news from RSS feeds to your SMTP server as text or HTML mail Group: Applications/Internet License: GPLv2 or GPLv3 URL: http://pypi.python.org/pypi/rss2email/ Source0: https://github.com/wking/%{name}/archive/%{shortcommit}.tar.gz BuildArch: noarch BuildRequires: python3-devel Requires: python3-feedparser >= 5.0.1 Requires: python3-html2text >= 3.01 %description rss2email lets you subscribe to a list of XML newsfeeds (RSS or Atom). It can parse them regularly with the help of cron and send new items to you by email. An HTML mail will be send in the default configuration to the local SMTP server. See the manual page r2e for details on how to set up rss2email. %prep # Figure out real dirname the tarball will be expanded to %global dirname %(tar tvf %{shortcommit}.tar.gz |tr -s ' '|cut -d ' ' -f 6|cut -d/ -f1|sort -u) %setup -c -n %{name}-%{version} mv %{name}-%{shortcommit}*/* . %build %{__python3} setup.py build %install rm -rf $RPM_BUILD_ROOT %{__python3} setup.py install --prefix=%{_prefix} --root $RPM_BUILD_ROOT install -pDm644 r2e.1 $RPM_BUILD_ROOT/%{_mandir}/man1/r2e.1 %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc AUTHORS CHANGELOG README CONTRIBUTING.md README.rst %{_bindir}/* %{python3_sitelib}/* %{_mandir}/man*/* %changelog * Mon Jul 21 2014 Matěj Cepl - 3.8-0.3.vcs20140721gitbe376a6 - Update to the latest upstream commit. * Sun Jun 08 2014 Fedora Release Engineering - 2.71-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Aug 04 2013 Fedora Release Engineering - 2.71-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Mar 14 2013 Matěj Cepl - 3.2-0.1.MC - An attempt to package new upstream (py3k only) version. * Mon Mar 4 2013 Michael Schwendt - 2.71-5 - Add a few patches from Debian package: 0003-Setup-the-correct-version-number-in-rss2email.py.patch 0006-Prefer-utf8-in-CHARSET_LIST.patch 0008-Fix-encoding-of-From-and-To-headers.patch.diff - Merge a few updates for the manual page. - Minor spec clean-up to remove superfluous items. * Thu Feb 14 2013 Fedora Release Engineering - 2.71-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sat Jul 21 2012 Fedora Release Engineering - 2.71-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Sat Jan 14 2012 Fedora Release Engineering - 2.71-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Mon Apr 11 2011 Michael Schwendt - 2.71-1 - Upgrade to 2.71. - Fix bad tarball permissions. - Increase minimum version in python-feedparser and python-html2text dependencies to match what upstream wants for this release. * Wed Feb 09 2011 Fedora Release Engineering - 2.70-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Wed Jan 12 2011 Michael Schwendt - 2.70-1 - Upgrade to 2.70. - Update r2e wrapper script. - Patch config.py loader (now first look in current dir like upstream, but if not found look for $HOME/.rss2email/config.py). - Include config.py.example also in the documentation directory. - Various minor spec file adjustments. * Sun Jul 04 2010 Thorsten Leemhuis - 2.66-1 - update to 2.66, which now is shipped in a tarball * Sun Jul 26 2009 Fedora Release Engineering - 2.65-3.1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Wed Feb 25 2009 Fedora Release Engineering - 2.65-2.1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Tue Jan 06 2009 Thorsten Leemhuis - 2.65-1 - update to 2.65 - recreate rss2email-use-configpy-from-homedir.patch * Sun Oct 26 2008 Thorsten Leemhuis - 2.64-1 - update to 2.64 - drop rss2email-warn-if-problems-with-local-mta.patch, something similar now upstream * Fri Jul 04 2008 Thorsten Leemhuis - 2.63-1 - update to 2.63 (GPLv3 now) * Sat Jan 19 2008 Thorsten Leemhuis - 2.62-1 - Update to 2.62 * Fri Dec 14 2007 Thorsten Leemhuis - 2.61-1 - Update to 2.61 * Fri Aug 03 2007 Thorsten Leemhuis - Update License field due to the "Licensing guidelines changes" * Sun Mar 25 2007 Thorsten Leemhuis - 2.60-3 - Use sed instead of dos2unix - Some small fixes from review bug #233715 - Apply one patch from Debian that should warn if there are problems with local delivery via sendmail * Sat Mar 24 2007 Thorsten Leemhuis - 2.60-2 - Seperate package for html2text, as it might be useful for other stuff as well - update r2e and make it possible to manage different feed files (optional, use r2e option "--feedext foo" to use it) - add some common used, but-no-so-well documented configuration parameters to config.py template and give a hint where to find docs what they do * Fri Mar 23 2007 Thorsten Leemhuis - 2.60-1 - Initial package