File python-notmuch2.spec of Package python-notmuch2

#
# spec file for package python-notmuch2
#
# Copyright (c) 2022 SUSE LLC
#
# 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_enable_dependency_generator}

Name:           python-notmuch2
Version:        0.30~rc2
Release:        0
Summary:        Notmuch2 Python Bindings
License:        GPL-3.0-or-later
Group:          Development/Languages/Python
Url:            https://github.com/weilbith/notmuch2-python-bindings
Source:         notmuch2-%{version}.tar.bz2
BuildRequires:  %{python_module cffi >= 1.0.0}
BuildRequires:  %{python_module devel}
BuildRequires:  %{python_module setuptools}
BuildRequires:  fdupes
BuildRequires:  notmuch-devel
BuildRequires:  python-rpm-macros

%python_subpackages

%description
Pythonic bindings for the notmuch mail database using CFFI

%prep
%autosetup -p1 -n notmuch2-%{version}

%build
export LC_ALL=en_US.utf8
%python_build

%install
export LC_ALL=en_US.utf8
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}/

%files %{python_files}
%license LICENSE
%doc README.md
%{python_sitearch}/*

%changelog
openSUSE Build Service is sponsored by