]> git.pld-linux.org Git - packages/rss2email.git/blob - rss2email.spec
83482802ae078dc8e0734bd9002e9ed5dddc7a44
[packages/rss2email.git] / rss2email.spec
1 Summary:        A python script that converts RSS/Atom newsfeeds to email
2 Name:           rss2email
3 Version:        3.13.1
4 Release:        1
5 License:        GPL v2+
6 Group:          Applications/Networking
7 Source0:        https://pypi.python.org/packages/source/r/rss2email/%{name}-%{version}.tar.gz
8 # Source0-md5:  8cc72190a7c62ad84c7d287c88f9321b
9 URL:            https://pypi.python.org/pypi/rss2email/
10 BuildRequires:  python3 >= 1:3.6
11 BuildRequires:  python3-modules >= 1:3.6
12 BuildRequires:  python3-setuptools
13 BuildRequires:  rpm-pythonprov
14 BuildRequires:  rpmbuild(macros) >= 1.219
15 BuildRequires:  sed >= 4.0
16 Requires:       python3 >= 1:3.6
17 Requires:       python3-feedparser >= 6
18 Requires:       python3-html2text
19 Requires:       python3-modules >= 1:3.6
20 BuildArch:      noarch
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 A python script that converts RSS/Atom newsfeeds to email.
25
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
34 %prep
35 %setup -q
36
37 %{__sed} -i -e '1s,^#!.*python,#!%{__python3},' r2e
38
39 %build
40 %{py3_build}
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44
45 %{py3_install}
46
47 install -d $RPM_BUILD_ROOT{%{_mandir}/man1,%{zsh_compdir}}
48 cp -p r2e.1 $RPM_BUILD_ROOT%{_mandir}/man1
49 cp -p completion/r2e.zsh $RPM_BUILD_ROOT%{zsh_compdir}/_r2e
50
51 %clean
52 rm -rf $RPM_BUILD_ROOT
53
54 %files
55 %defattr(644,root,root,755)
56 %doc AUTHORS CHANGELOG README.rst
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*
64
65 %files -n zsh-completion-rss2email
66 %defattr(644,root,root,755)
67 %{zsh_compdir}/_r2e
This page took 0.114273 seconds and 2 git commands to generate.