]> git.pld-linux.org Git - packages/rss2email.git/blob - rss2email.spec
830fb6b741e04c11a82ba31ad64b66f63ff4571a
[packages/rss2email.git] / rss2email.spec
1 Summary:        A python script that converts RSS/Atom newsfeeds to email
2 Name:           rss2email
3 Version:        3.12.2
4 Release:        2
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:  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
17 BuildArch:      noarch
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 A python script that converts RSS/Atom newsfeeds to email.
22
23 %package -n zsh-completion-rss2email
24 Summary:        ZSH completion for rss2email
25 Group:          Applications/Shells
26 Requires:       %{name} = %{version}-%{release}
27
28 %description -n zsh-completion-rss2email
29 ZSH completion for rss2email.
30
31 %prep
32 %setup -q
33
34 %{__sed} -i -e '1s,^#!.*python,#!%{__python3},' r2e
35
36 %build
37 %{py3_build}
38
39 %install
40 rm -rf $RPM_BUILD_ROOT
41
42 %{py3_install}
43
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
47
48 %clean
49 rm -rf $RPM_BUILD_ROOT
50
51 %files
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*
61
62 %files -n zsh-completion-rss2email
63 %defattr(644,root,root,755)
64 %{zsh_compdir}/_r2e
This page took 0.04381 seconds and 2 git commands to generate.