2015-09-17 11:35:50 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-sievelib
|
|
|
|
#
|
2018-05-28 15:44:09 +00:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2016-02-16 08:51:38 +00:00
|
|
|
# Copyright (c) 2016 Aeneas Jaissle <aj@ajaissle.de>
|
2015-09-17 11:35:50 +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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%define modname sievelib
|
2018-05-28 15:44:09 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2015-09-17 11:35:50 +00:00
|
|
|
Name: python-%{modname}
|
2018-05-28 15:44:09 +00:00
|
|
|
Version: 1.1.1
|
2015-09-17 11:35:50 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Client-side Sieve and Managesieve library written in Python
|
2016-02-16 09:14:15 +00:00
|
|
|
License: MIT
|
2015-09-17 11:35:50 +00:00
|
|
|
Group: Development/Languages/Python
|
2018-05-28 15:44:09 +00:00
|
|
|
URL: https://pypi.python.org/pypi/sievelib
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/s/sievelib/%{modname}-%{version}.tar.gz
|
|
|
|
Patch0: fix_pip_version.patch
|
|
|
|
BuildRequires: %{python_module future}
|
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
BuildRequires: %{python_module setuptools_scm}
|
|
|
|
BuildRequires: %{python_module six}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2015-09-17 11:35:50 +00:00
|
|
|
BuildArch: noarch
|
2018-05-28 15:44:09 +00:00
|
|
|
%python_subpackages
|
2015-09-17 11:35:50 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Client-side Sieve and Managesieve library written in Python.
|
|
|
|
* Sieve: An Email Filtering Language (RFC 5228)
|
|
|
|
* ManageSieve: A Protocol for Remotely Managing Sieve Scripts (RFC 5804)
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{modname}-%{version}
|
2018-05-28 15:44:09 +00:00
|
|
|
%patch0 -p1
|
|
|
|
sed -i -e '/^#!\/usr\/bin.*python/d' sievelib/parser.py
|
|
|
|
chmod -x sievelib/parser.py
|
2015-09-17 11:35:50 +00:00
|
|
|
|
|
|
|
%build
|
2018-05-28 15:44:09 +00:00
|
|
|
%python_build
|
2015-09-17 11:35:50 +00:00
|
|
|
|
|
|
|
%install
|
2018-05-28 15:44:09 +00:00
|
|
|
%python_install
|
|
|
|
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2015-09-17 11:35:50 +00:00
|
|
|
|
2018-05-28 15:44:09 +00:00
|
|
|
%files %{python_files}
|
|
|
|
%license COPYING
|
|
|
|
%doc README.rst
|
2015-09-17 11:35:50 +00:00
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|