95cfa3c
Name:           rss2email
b7b4c4f
Version:        3.14
2d94677
Release:        6%{?dist}
95cfa3c
Summary:        Deliver news from RSS feeds to your SMTP server as text or HTML mail
95cfa3c
50c959b
License:        GPLv2+ or GPLv3+
50c959b
URL:            https://github.com/%{name}/%{name}
e7e36fa
Source0:        %{url}/archive/v%{version}.tar.gz
50c959b
# Migration tool (rss2email 2.x to rss2email 3.x) from https://github.com/emillon/rss2email-debian
50c959b
Source1:        r2e-migrate
50c959b
Source2:        r2e-migrate.1
50c959b
Source3:        README.migrate
95cfa3c
95cfa3c
BuildArch:      noarch
50c959b
BuildRequires:  python3-devel
50c959b
BuildRequires:  python3-setuptools
b7b4c4f
BuildRequires:  python3-feedparser >= 6.0.5
50c959b
BuildRequires:  python3-html2text >= 2018.1.9
50c959b
Recommends:     python3-beautifulsoup4
50c959b
Recommends:     esmtp
50c959b
# r2e-migrate
50c959b
Requires:       python3-pyxdg
95cfa3c
95cfa3c
%description
50c959b
%{name} lets you subscribe to a list of XML news feeds (RSS or Atom). It can
95cfa3c
parse them regularly with the help of cron and send new items to you by email.
95cfa3c
95cfa3c
An HTML mail will be send in the default configuration to the local SMTP server.
50c959b
See the manual page r2e for details on how to set up %{name}.
95cfa3c
4cb4a2d
%package zsh-completion
4cb4a2d
Summary:        zsh-completion files for rss2email
4cb4a2d
BuildArch:      noarch
4cb4a2d
Supplements:    (rss2email and zsh)
4cb4a2d
Requires:       zsh
4cb4a2d
Requires:       rss2email
4cb4a2d
4cb4a2d
%description zsh-completion
4cb4a2d
This package provides %{summary}.
95cfa3c
95cfa3c
%prep
e7e36fa
%autosetup -p1
95cfa3c
50c959b
cp -p %{SOURCE3} .
95cfa3c
95cfa3c
95cfa3c
%build
50c959b
%py3_build
95cfa3c
95cfa3c
95cfa3c
%install
50c959b
%py3_install
95cfa3c
1a33ff4
install -D -m 644 -p completion/r2e.zsh %{buildroot}%{_datadir}/zsh/functions/Completion/Unix/_r2e
1a33ff4
50c959b
install -D -m 644 -p r2e.1 %{buildroot}%{_mandir}/man1/r2e.1
50c959b
50c959b
install -D -m 755 -p %{SOURCE1} %{buildroot}%{_bindir}/r2e-migrate
50c959b
install -D -m 644 -p %{SOURCE2} %{buildroot}%{_mandir}/man1/r2e-migrate.1
50c959b
50c959b
50c959b
%check
50c959b
PATH="${PATH}:%{buildroot}%{_bindir}" PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} ./test/test.py
95cfa3c
95cfa3c
95cfa3c
%files
50c959b
%license COPYING
50c959b
%doc AUTHORS CHANGELOG README.rst README.migrate
4cb4a2d
%{_bindir}/r2e
4cb4a2d
%{_bindir}/r2e-migrate
c13c475
%{_mandir}/man1/r2e.1*
c13c475
%{_mandir}/man1/r2e-migrate.1*
4cb4a2d
%{python3_sitelib}/%{name}/
4cb4a2d
%{python3_sitelib}/%{name}-%{version}-py%{python3_version}.egg-info/
4cb4a2d
4cb4a2d
%files zsh-completion
1a33ff4
%{_datadir}/zsh/functions/Completion/Unix/_r2e
95cfa3c
95cfa3c
%changelog
2d94677
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.14-6
2d94677
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
2d94677
e9d3594
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.14-5
e9d3594
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
e9d3594
2605fc9
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.14-4
2605fc9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
2605fc9
6f7dbc0
* Wed Jun 14 2023 Python Maint <python-maint@redhat.com> - 3.14-3
6f7dbc0
- Rebuilt for Python 3.12
6f7dbc0
f240bcc
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.14-2
f240bcc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
f240bcc
b7b4c4f
* Sat Aug 27 2022 David Kaufmann <astra@ionic.at> - 3.14-1
b7b4c4f
- Update to 3.14
b7b4c4f
0ed5f30
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.13.1-2
0ed5f30
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
0ed5f30
ac08d7b
* Tue Jun 28 2022 David Kaufmann <astra@ionic.at> - 3.13.1-1
ac08d7b
- Update to 3.13.1
ac08d7b
2bbad55
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 3.12.3-5
2bbad55
- Rebuilt for Python 3.11
2bbad55
3b5bb23
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.12.3-4
3b5bb23
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
3b5bb23
e312bcb
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.12.3-3
e312bcb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
e312bcb
fd3bcbe
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 3.12.3-2
fd3bcbe
- Rebuilt for Python 3.10
fd3bcbe
Fedora Release Monitoring db61331
* Fri Mar 19 2021 Fedora Release Monitoring <release-monitoring@fedoraproject.org> - 3.12.3-1
Fedora Release Monitoring db61331
- Update to 3.12.3 (#1941090)
Fedora Release Monitoring db61331
0e211a1
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.12.2-3
0e211a1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
0e211a1
74ddac7
* Thu Dec 31 2020 David Kaufmann <astra@ionic.at> - 3.12.2-2
74ddac7
- Update to feedparser 6
74ddac7
e7e36fa
* Tue Sep 01 2020 David Kaufmann <astra@ionic.at> - 3.12.2-1
e7e36fa
- Update to 3.12.2
e7e36fa
- Reference files by tag instead of commit
e7e36fa
7cd04d8
* Fri Aug 07 2020 David Kaufmann <astra@ionic.at> - 3.12.1-1
7cd04d8
- Update to 3.12.1
7cd04d8
519f5d4
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.11-5
519f5d4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
519f5d4
02df0b8
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 3.11-4
02df0b8
- Rebuilt for Python 3.9
02df0b8
0d738da
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.11-3
0d738da
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
0d738da
4cb4a2d
* Mon Oct 28 2019 David Kaufmann <astra@ionic.at> - 3.11-2
c13c475
- Clean up spec file a bit
c13c475
- Get rid of over-globbing
c13c475
- Add zsh-completion subpackage
4cb4a2d
1a33ff4
* Mon Oct 28 2019 David Kaufmann <astra@ionic.at> - 3.11-1.20191028gitb4eae44
1a33ff4
- Add new `user-agent` attribute for configuring email User-Agent
1a33ff4
50c959b
* Mon Sep 23 2019 David Kaufmann <astra@ionic.at> - 3.10-2.20190909git9c2d407
50c959b
- Enable tests
50c959b
- Use automatically generated dependencies for python packages for f30+
95cfa3c
50c959b
* Mon Sep 09 2019 David Kaufmann <astra@ionic.at> - 3.10-1.20190909git9c2d407
50c959b
- Update to latest git version
95cfa3c
50c959b
* Mon Aug 12 2019 David Kaufmann <astra@ionic.at> - 3.9-3.20190812git4708c4b
50c959b
- Include package review recommendations
95cfa3c
50c959b
* Mon Aug 12 2019 David Kaufmann <astra@ionic.at> - 3.9-2.20190812git4708c4b
50c959b
- Update to latest git version
50c959b
- Fix python version name for EPEL7
95cfa3c
50c959b
* Thu Dec 28 2017 Filip SzymaƄski <fszymanski@fedoraproject.org> - 3.9-1.20171228gite21e803
50c959b
- Update to 3.9
50c959b
- Major spec file cleanup
95cfa3c
95cfa3c
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.71-11
95cfa3c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
95cfa3c
95cfa3c
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.71-10
95cfa3c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
95cfa3c
95cfa3c
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.71-9
95cfa3c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
95cfa3c
95cfa3c
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.71-8
95cfa3c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
95cfa3c
95cfa3c
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.71-7
95cfa3c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
95cfa3c
95cfa3c
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.71-6
95cfa3c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
95cfa3c
95cfa3c
* Mon Mar  4 2013 Michael Schwendt <mschwendt@fedoraproject.org> - 2.71-5
95cfa3c
- Add a few patches from Debian package:
95cfa3c
  0003-Setup-the-correct-version-number-in-rss2email.py.patch
95cfa3c
  0006-Prefer-utf8-in-CHARSET_LIST.patch
95cfa3c
  0008-Fix-encoding-of-From-and-To-headers.patch.diff
95cfa3c
- Merge a few updates for the manual page.
95cfa3c
- Minor spec clean-up to remove superfluous items.
95cfa3c
95cfa3c
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.71-4
95cfa3c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
95cfa3c
95cfa3c
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.71-3
95cfa3c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
95cfa3c
95cfa3c
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.71-2
95cfa3c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
95cfa3c
95cfa3c
* Mon Apr 11 2011 Michael Schwendt <mschwendt@fedoraproject.org> - 2.71-1
95cfa3c
- Upgrade to 2.71.
95cfa3c
- Fix bad tarball permissions.
95cfa3c
- Increase minimum version in python-feedparser and python-html2text
95cfa3c
  dependencies to match what upstream wants for this release.
95cfa3c
95cfa3c
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.70-2
95cfa3c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
95cfa3c
95cfa3c
* Wed Jan 12 2011 Michael Schwendt <mschwendt@fedoraproject.org> - 2.70-1
95cfa3c
- Upgrade to 2.70.
95cfa3c
- Update r2e wrapper script.
95cfa3c
- Patch config.py loader (now first look in current dir like upstream,
95cfa3c
  but if not found look for $HOME/.rss2email/config.py).
95cfa3c
- Include config.py.example also in the documentation directory.
95cfa3c
- Various minor spec file adjustments.
95cfa3c
95cfa3c
* Sun Jul 04 2010 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 2.66-1
50c959b
- update to 2.66, which now is shipped in a tarball
95cfa3c
95cfa3c
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.65-3.1
95cfa3c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
95cfa3c
95cfa3c
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.65-2.1
95cfa3c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
95cfa3c
95cfa3c
* Tue Jan 06 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 2.65-1
95cfa3c
- update to 2.65
95cfa3c
- recreate rss2email-use-configpy-from-homedir.patch
95cfa3c
95cfa3c
* Sun Oct 26 2008 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 2.64-1
95cfa3c
- update to 2.64
95cfa3c
- drop rss2email-warn-if-problems-with-local-mta.patch, something similar now
95cfa3c
  upstream
95cfa3c
95cfa3c
* Fri Jul 04 2008 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 2.63-1
95cfa3c
- update to 2.63 (GPLv3 now)
95cfa3c
95cfa3c
* Sat Jan 19 2008 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 2.62-1
95cfa3c
- Update to 2.62
95cfa3c
95cfa3c
* Fri Dec 14 2007 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 2.61-1
95cfa3c
- Update to 2.61
95cfa3c
95cfa3c
* Fri Aug 03 2007 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info>
95cfa3c
- Update License field due to the "Licensing guidelines changes"
95cfa3c
95cfa3c
* Sun Mar 25 2007 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 2.60-3
95cfa3c
- Use sed instead of dos2unix
95cfa3c
- Some small fixes from review bug #233715
95cfa3c
- Apply one patch from Debian that should warn if there are problems with
95cfa3c
  local delivery via sendmail
95cfa3c
95cfa3c
* Sat Mar 24 2007 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 2.60-2
95cfa3c
- Seperate package for html2text, as it might be useful for other stuff
95cfa3c
  as well
95cfa3c
- update r2e and make it possible to manage different feed files (optional,
95cfa3c
  use r2e option "--feedext foo" to use it)
95cfa3c
- add some common used, but-no-so-well documented configuration parameters
95cfa3c
  to config.py template and give a hint where to find docs what they do
95cfa3c
95cfa3c
* Fri Mar 23 2007 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 2.60-1
95cfa3c
- Initial package