From 81c90e1ce6d426c26cd0c30571e15d28da073f06d470fbc084a8502623e04526 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 25 Sep 2023 16:24:50 +0000 Subject: [PATCH] - Clean up the SPEC file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-proton-client?expand=0&rev=8 --- python-proton-client.changes | 5 +++++ python-proton-client.spec | 12 ++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/python-proton-client.changes b/python-proton-client.changes index 33dfa9a..c2f38ce 100644 --- a/python-proton-client.changes +++ b/python-proton-client.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Sep 25 16:24:28 UTC 2023 - Matej Cepl + +- Clean up the SPEC file + ------------------------------------------------------------------- Mon Sep 25 14:52:52 UTC 2023 - Alexandre Vicenzi diff --git a/python-proton-client.spec b/python-proton-client.spec index c58bc43..131b063 100644 --- a/python-proton-client.spec +++ b/python-proton-client.spec @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-proton-client Version: 0.7.1 @@ -29,9 +28,10 @@ Source: https://github.com/ProtonMail/proton-python-client/archive/refs/ Patch1: urllib3-v2-migration.patch BuildRequires: %{python_module bcrypt} BuildRequires: %{python_module gnupg} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module requests} -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: pkgconfig BuildRequires: python-rpm-macros @@ -51,11 +51,11 @@ wrapper to Proton Technologies API, abstracting from the SRP authentication. %autosetup -n proton-python-client-%{version} -p1 %build -%python_build +%pyproject_wheel %install -%python_install -%python_expand %fdupes %{buildroot}%{python_sitelib}/proton +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} %check # skip test_tlspinning.py as OBS has no network access @@ -65,6 +65,6 @@ wrapper to Proton Technologies API, abstracting from the SRP authentication. %license LICENSE %doc README.md %{python_sitelib}/proton -%{python_sitelib}/proton_client-*-py*.*-info +%{python_sitelib}/proton_client-%{version}*-info %changelog