1 Summary: A python script that converts RSS/Atom newsfeeds to email
6 Group: Applications/Networking
7 Source0: https://pypi.python.org/packages/source/r/rss2email/%{name}-%{version}.tar.gz
8 # Source0-md5: 49599fe910e3211f8858fd8f8abae169
9 URL: https://pypi.python.org/pypi/rss2email/
10 BuildRequires: python3 >= 1:3.5
11 BuildRequires: rpm-pythonprov
12 BuildRequires: rpmbuild(macros) >= 1.219
13 BuildRequires: sed >= 4.0
14 Requires: python3 >= 3.2
15 Requires: python3-feedparser
16 Requires: python3-html2text
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 A python script that converts RSS/Atom newsfeeds to email.
23 %package -n zsh-completion-rss2email
24 Summary: ZSH completion for rss2email
25 Group: Applications/Shells
26 Requires: %{name} = %{version}-%{release}
28 %description -n zsh-completion-rss2email
29 ZSH completion for rss2email.
34 %{__sed} -i -e '1s,^#!.*python,#!%{__python3},' r2e
40 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT{%{_mandir}/man1,%{zsh_compdir}}
45 cp -p r2e.1 $RPM_BUILD_ROOT%{_mandir}/man1
46 cp -p completion/r2e.zsh $RPM_BUILD_ROOT%{zsh_compdir}/_r2e
49 rm -rf $RPM_BUILD_ROOT
52 %defattr(644,root,root,755)
53 %doc AUTHORS CHANGELOG README.rst
54 %attr(755,root,root) %{_bindir}/r2e
55 %dir %{py3_sitescriptdir}/rss2email
56 %{py3_sitescriptdir}/rss2email/*.py
57 %{py3_sitescriptdir}/rss2email/__pycache__
58 %{py3_sitescriptdir}/rss2email/post_process
59 %{py3_sitescriptdir}/rss2email-*.egg-info
60 %{_mandir}/man1/r2e.1*
62 %files -n zsh-completion-rss2email
63 %defattr(644,root,root,755)