]>
Commit | Line | Data |
---|---|---|
9351c373 JP |
1 | Summary: A python script that converts RSS/Atom newsfeeds to email |
2 | Name: rss2email | |
10e5e76f | 3 | Version: 3.13.1 |
200a9362 | 4 | Release: 2 |
9351c373 JP |
5 | License: GPL v2+ |
6 | Group: Applications/Networking | |
7 | Source0: https://pypi.python.org/packages/source/r/rss2email/%{name}-%{version}.tar.gz | |
10e5e76f | 8 | # Source0-md5: 8cc72190a7c62ad84c7d287c88f9321b |
9351c373 | 9 | URL: https://pypi.python.org/pypi/rss2email/ |
95a20bf1 JP |
10 | BuildRequires: python3 >= 1:3.6 |
11 | BuildRequires: python3-modules >= 1:3.6 | |
12 | BuildRequires: python3-setuptools | |
9351c373 JP |
13 | BuildRequires: rpm-pythonprov |
14 | BuildRequires: rpmbuild(macros) >= 1.219 | |
15 | BuildRequires: sed >= 4.0 | |
95a20bf1 JP |
16 | Requires: python3 >= 1:3.6 |
17 | Requires: python3-feedparser >= 6 | |
9351c373 | 18 | Requires: python3-html2text |
95a20bf1 | 19 | Requires: python3-modules >= 1:3.6 |
80bf5004 | 20 | BuildArch: noarch |
9351c373 JP |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
23 | %description | |
24 | A python script that converts RSS/Atom newsfeeds to email. | |
25 | ||
f3bd4a25 JP |
26 | %package -n zsh-completion-rss2email |
27 | Summary: ZSH completion for rss2email | |
28 | Group: Applications/Shells | |
29 | Requires: %{name} = %{version}-%{release} | |
30 | ||
31 | %description -n zsh-completion-rss2email | |
32 | ZSH completion for rss2email. | |
33 | ||
9351c373 JP |
34 | %prep |
35 | %setup -q | |
9351c373 JP |
36 | |
37 | %{__sed} -i -e '1s,^#!.*python,#!%{__python3},' r2e | |
38 | ||
39 | %build | |
81ade99d | 40 | %{py3_build} |
9351c373 JP |
41 | |
42 | %install | |
43 | rm -rf $RPM_BUILD_ROOT | |
81ade99d AM |
44 | |
45 | %{py3_install} | |
9351c373 | 46 | |
f3bd4a25 | 47 | install -d $RPM_BUILD_ROOT{%{_mandir}/man1,%{zsh_compdir}} |
9351c373 | 48 | cp -p r2e.1 $RPM_BUILD_ROOT%{_mandir}/man1 |
f3bd4a25 | 49 | cp -p completion/r2e.zsh $RPM_BUILD_ROOT%{zsh_compdir}/_r2e |
9351c373 JP |
50 | |
51 | %clean | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %files | |
55 | %defattr(644,root,root,755) | |
f3bd4a25 | 56 | %doc AUTHORS CHANGELOG README.rst |
9351c373 JP |
57 | %attr(755,root,root) %{_bindir}/r2e |
58 | %dir %{py3_sitescriptdir}/rss2email | |
59 | %{py3_sitescriptdir}/rss2email/*.py | |
60 | %{py3_sitescriptdir}/rss2email/__pycache__ | |
61 | %{py3_sitescriptdir}/rss2email/post_process | |
62 | %{py3_sitescriptdir}/rss2email-*.egg-info | |
63 | %{_mandir}/man1/r2e.1* | |
f3bd4a25 JP |
64 | |
65 | %files -n zsh-completion-rss2email | |
66 | %defattr(644,root,root,755) | |
67 | %{zsh_compdir}/_r2e |