From 89baf04ca6be40caa806c098ad794d44132914efef6f715da7102d4af228f23c Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 15 Feb 2024 08:53:15 +0000 Subject: [PATCH] - Clean up the SPEC file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-proton-core?expand=0&rev=2 --- python-proton-core.changes | 5 +++++ python-proton-core.spec | 13 +++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/python-proton-core.changes b/python-proton-core.changes index 2ce1cd5..93b6139 100644 --- a/python-proton-core.changes +++ b/python-proton-core.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Feb 15 08:53:08 UTC 2024 - Matej Cepl + +- Clean up the SPEC file + ------------------------------------------------------------------- Thu Feb 8 15:06:05 UTC 2024 - Alexandre Vicenzi diff --git a/python-proton-core.spec b/python-proton-core.spec index 5678d93..ac5249e 100644 --- a/python-proton-core.spec +++ b/python-proton-core.spec @@ -24,17 +24,18 @@ Summary: Proton VPN core library License: GPL-3.0-or-later Group: Development/Languages/Python URL: https://github.com/ProtonVPN/python-proton-core -#Source: https://github.com/ProtonVPN/python-proton-core/archive/refs/tags/v%{version}.tar.gz Source: https://github.com/ProtonVPN/python-proton-core/archive/refs/heads/master.zip BuildRequires: %{python_module aiohttp} BuildRequires: %{python_module base >= 3.8} BuildRequires: %{python_module bcrypt} BuildRequires: %{python_module gnupg} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pyOpenSSL} BuildRequires: %{python_module pyotp} BuildRequires: %{python_module pytest-cov} BuildRequires: %{python_module pytest} BuildRequires: %{python_module requests} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: pkgconfig BuildRequires: python-rpm-macros @@ -57,11 +58,11 @@ This package contains core logic used by the other Proton components. %autosetup -p1 -n python-proton-core-master %build -%python_build +%pyproject_wheel %install -%python_install -%python_expand %fdupes %{buildroot}%{$python_sitearch} +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} %check # skip some tests as OBS has no network access @@ -70,7 +71,7 @@ This package contains core logic used by the other Proton components. %files %{python_files} %license LICENSE %doc README.md -%{python_sitelib}/proton/ -%{python_sitelib}/proton_core-%{version}-*.egg-info +%{python_sitelib}/proton +%{python_sitelib}/proton_core-%{version}*-info %changelog