From b1d7d17841ab7d0100ebf8f65afa30a4706f03d186f8a0f5b88a061a93e69006 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 2 Jun 2025 14:50:48 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-oktaloginwrapper?expand=0&rev=4 --- python-oktaloginwrapper.changes | 5 +++++ python-oktaloginwrapper.spec | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/python-oktaloginwrapper.changes b/python-oktaloginwrapper.changes index 29105cd..530a271 100644 --- a/python-oktaloginwrapper.changes +++ b/python-oktaloginwrapper.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 2 14:50:36 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Sun Aug 22 11:21:53 UTC 2021 - Jan Engelhardt diff --git a/python-oktaloginwrapper.spec b/python-oktaloginwrapper.spec index 44de36e..3b3bcbe 100644 --- a/python-oktaloginwrapper.spec +++ b/python-oktaloginwrapper.spec @@ -1,7 +1,7 @@ # # spec file for package python-oktaloginwrapper # -# Copyright (c) 2021 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,7 +16,6 @@ # -%define skip_python2 1 Name: python-oktaloginwrapper Version: 0.2.2 Release: 0 @@ -25,7 +24,9 @@ License: MIT Group: Development/Languages/Python URL: https://github.com/eliroca/OktaLoginWrapper Source: https://github.com/eliroca/OktaLoginWrapper/archive/%{version}.tar.gz#/OktaLoginWrapper-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-lxml @@ -41,13 +42,14 @@ an Okta SSO solution, without the need for an API token. %autosetup -n OktaLoginWrapper-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %files %{python_files} -%{python_sitelib}/* +%{python_sitelib}/oktaloginwrapper +%{python_sitelib}/oktaloginwrapper-%{version}*-info %changelog