From dfb521f970e26afe9ee604199f3cb3a8d6484222c2da135b4a9816cdff477797 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 4 Jun 2025 06:21:42 +0000 Subject: [PATCH] - Switch to pyproject macros. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-transip?expand=0&rev=20 --- python-transip.changes | 6 ++++++ python-transip.spec | 16 ++++++++-------- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/python-transip.changes b/python-transip.changes index a505b13..3a94e06 100644 --- a/python-transip.changes +++ b/python-transip.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jun 4 06:13:59 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. + ------------------------------------------------------------------- Sat Jun 4 23:51:37 UTC 2022 - Dirk Müller diff --git a/python-transip.spec b/python-transip.spec index 98e49c3..e6656ec 100644 --- a/python-transip.spec +++ b/python-transip.spec @@ -1,7 +1,7 @@ # # spec file for package python-transip # -# Copyright (c) 2022 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,28 +16,27 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-transip Version: 2.1.2 Release: 0 Summary: TransIP API Connector License: MIT -Group: Development/Languages/Python URL: https://github.com/benkonrath/transip-api Source: https://github.com/benkonrath/transip-api/archive/%{version}.tar.gz BuildRequires: %{python_module cryptography} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module requests} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module suds} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-cryptography Requires: python-requests -Requires: python-setuptools Requires: python-suds Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(postun): update-alternatives BuildArch: noarch %python_subpackages @@ -48,10 +47,10 @@ This library implements part of the TransIP API in Python. %setup -q -n transip-api-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/transip-api %python_expand %fdupes %{buildroot}%{$python_sitelib} @@ -67,7 +66,8 @@ This library implements part of the TransIP API in Python. %files %{python_files} %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/transip +%{python_sitelib}/transip-%{version}.dist-info %python_alternative %{_bindir}/transip-api %changelog