From 1725f7ecb85f8a96b428a610eeb5450e8e234d5bb35826edfee817156a0b3efa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Fri, 13 Jun 2025 12:36:50 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-versiontools?expand=0&rev=22 --- python-versiontools.changes | 5 +++++ python-versiontools.spec | 16 ++++++++-------- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/python-versiontools.changes b/python-versiontools.changes index 7be8625..f359acc 100644 --- a/python-versiontools.changes +++ b/python-versiontools.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jun 13 12:36:11 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Tue Dec 4 12:55:49 UTC 2018 - Matej Cepl diff --git a/python-versiontools.spec b/python-versiontools.spec index 64ee664..2eaab1c 100644 --- a/python-versiontools.spec +++ b/python-versiontools.spec @@ -1,7 +1,7 @@ # # spec file for package python-versiontools # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# 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,19 +16,19 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-versiontools Version: 1.9.1 Release: 0 Summary: Smart replacement for plain tuple used in __version__ License: LGPL-3.0-or-later Group: Development/Languages/Python -Url: https://launchpad.net/versiontools +URL: https://launchpad.net/versiontools Source: https://files.pythonhosted.org/packages/source/v/versiontools/versiontools-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: python-rpm-macros Requires: python-setuptools -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %python_subpackages @@ -48,14 +48,14 @@ Smart replacement for plain tuple used in __version__. sed -i "1d" versiontools/{git_support,hg_support,bzr_support}.py # Fix non-executable scripts %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %files %{python_files} -%defattr(-,root,root,-) %doc doc/* -%{python_sitelib}/* +%{python_sitelib}/versiontools +%{python_sitelib}/versiontools-%{version}*-info %changelog