15
0
forked from pool/python-imbox

- Convert to pip-based build

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-imbox?expand=0&rev=19
This commit is contained in:
2025-05-28 12:14:04 +00:00
committed by Git OBS Bridge
parent 7798a83562
commit ca731496ab
2 changed files with 12 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-imbox
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,8 +16,6 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-imbox
Version: 0.9.8
Release: 0
@@ -28,7 +26,9 @@ URL: https://github.com/martinrusev/imbox
Source: https://files.pythonhosted.org/packages/source/i/imbox/imbox-%{version}.tar.gz
BuildRequires: %{python_module chardet}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-chardet
@@ -41,15 +41,16 @@ Python library for reading IMAP mailboxes and converting email content to machin
%setup -q -n imbox-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files}
%doc README.rst
%license LICENSE
%{python_sitelib}/*
%{python_sitelib}/imbox
%{python_sitelib}/imbox-%{version}*-info
%changelog