File pyzor.spec of Package pyzor

#
# spec file for package pyzor
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name:           pyzor
Version:        1.0.0
Release:        0
Summary:        Networked spam-signature detection
License:        GPL-2.0-only
Group:          Productivity/Networking/Email/Utilities
URL:            http://www.pyzor.org/
Source:         https://files.pythonhosted.org/packages/source/p/pyzor/pyzor-%{version}.tar.gz
BuildRequires:  %{python_module setuptools}
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
BuildRequires:  python3-tools
Requires:       python-redis
Provides:       pyzor = %{version}
Obsoletes:      pyzor < %{version}
BuildArch:      noarch
%python_subpackages

%description
Pyzor is spam-blocking networked system that uses signatures to
identify spam.

Using Pyzor client, a short digest is generated that is likely to
uniquely identify the email message. This digest is then sent to
a Pyzor server to:

- check the number of times it has been reported as spam
  or whitelisted as not-spam
- report the message as spam
- whitelist the message as not-spam

%prep
%setup -q -n pyzor-%{version}

%build
%python_build

%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}

%files %{python_files}
%license COPYING
%doc README.rst THANKS
%{python_sitelib}/*
%python3_only %{_bindir}/pyzor
%python3_only %{_bindir}/pyzord
%python3_only %{_bindir}/pyzor-migrate

%changelog
openSUSE Build Service is sponsored by