2018-07-13 15:17:16 +00:00
|
|
|
#
|
2018-07-19 16:20:30 +00:00
|
|
|
# spec file for package mailprocessing
|
2018-07-13 15:17:16 +00:00
|
|
|
#
|
2020-02-12 12:09:51 +00:00
|
|
|
# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
|
2018-07-13 15:17:16 +00:00
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
2019-06-27 15:02:20 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-07-19 16:20:30 +00:00
|
|
|
#
|
2018-07-13 15:17:16 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: mailprocessing
|
2020-02-12 12:09:51 +00:00
|
|
|
Version: 1.2.7
|
2018-07-13 15:17:16 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Maildir and IMAP processor/filter using Python 3x as its configuration language
|
2018-07-19 16:20:30 +00:00
|
|
|
License: GPL-2.0-only
|
2018-07-13 15:17:16 +00:00
|
|
|
Group: Productivity/Networking/Email/Utilities
|
2018-07-19 16:20:30 +00:00
|
|
|
URL: http://mailprocessing.github.io/mailprocessing
|
2018-07-13 15:17:16 +00:00
|
|
|
Source0: https://github.com/mailprocessing/mailprocessing/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2018-07-19 16:20:30 +00:00
|
|
|
BuildRequires: fdupes
|
2018-07-13 15:17:16 +00:00
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-setuptools
|
2018-07-19 16:20:30 +00:00
|
|
|
Requires: python3
|
2018-07-13 15:17:16 +00:00
|
|
|
Obsoletes: maildirproc < %{version}
|
|
|
|
|
Provides: maildirproc = %{version}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
The maildirproc and imapproc utilities provided by this package filter emails
|
|
|
|
|
in maildirs and IMAP folders with a user provided filter script written in
|
|
|
|
|
Python.
|
|
|
|
|
|
|
|
|
|
%prep
|
2018-07-19 16:20:30 +00:00
|
|
|
%setup -q
|
2018-07-13 15:17:16 +00:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
python3 setup.py build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
|
|
|
install -D -m 644 docs/imapproc.1 %{buildroot}/%{_mandir}/man1/imapproc.1
|
|
|
|
|
install -D -m 644 docs/maildirproc.1 %{buildroot}/%{_mandir}/man1/maildirproc.1
|
|
|
|
|
install -D -m 644 docs/mailprocessing.5 %{buildroot}/%{_mandir}/man5/mailprocessing.5
|
|
|
|
|
install -d -m 755 %{buildroot}/%{_docdir}/%{name}
|
|
|
|
|
cp -a docs/examples %{buildroot}/%{_docdir}/%{name}
|
|
|
|
|
%fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
|
|
%files
|
2018-07-19 16:20:30 +00:00
|
|
|
%license LICENSE
|
|
|
|
|
%doc NEWS README
|
2018-07-13 15:17:16 +00:00
|
|
|
%doc %{_docdir}/%{name}/examples
|
2018-07-19 16:20:30 +00:00
|
|
|
%{_mandir}/man1/imapproc.1%{?ext_man}
|
|
|
|
|
%{_mandir}/man1/maildirproc.1%{?ext_man}
|
|
|
|
|
%{_mandir}/man5/mailprocessing.5%{?ext_man}
|
2018-07-13 15:17:16 +00:00
|
|
|
%{python3_sitelib}
|
|
|
|
|
%{_bindir}/maildirproc
|
|
|
|
|
%{_bindir}/imapproc
|
|
|
|
|
|
|
|
|
|
%changelog
|