From f866f76967da134995a1e10d3a31ec65c97d9e1e882a8941976df84e3499577c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 3 Jun 2025 11:22:34 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pifpaf?expand=0&rev=27 --- python-pifpaf.changes | 5 +++++ python-pifpaf.spec | 18 ++++++++---------- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/python-pifpaf.changes b/python-pifpaf.changes index ee506b7..1aac3e3 100644 --- a/python-pifpaf.changes +++ b/python-pifpaf.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jun 3 11:22:03 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Mon Dec 5 01:21:59 UTC 2022 - Steve Kowalik diff --git a/python-pifpaf.spec b/python-pifpaf.spec index 766c3a1..0db9819 100644 --- a/python-pifpaf.spec +++ b/python-pifpaf.spec @@ -1,7 +1,7 @@ # # spec file for package python-pifpaf # -# 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,14 +16,13 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pifpaf Version: 3.1.5 Release: 0 Summary: Suite of tools and fixtures to manage daemons for testing License: Apache-2.0 URL: https://github.com/jd/pifpaf -Source: https://pypi.io/packages/source/p/pifpaf/pifpaf-%{version}.tar.gz +Source: https://files.pythonhosted.org/packages/source/p/pifpaf/pifpaf-%{version}.tar.gz BuildRequires: %{python_module pbr} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -36,11 +35,9 @@ Requires: python-requests Requires: python-testrepository Requires: python-testtools Requires: python-xattr -BuildRoot: %{_tmppath}/%{name}-%{version}-build -Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(post): alts +Requires(postun): alts BuildArch: noarch - %python_subpackages %description @@ -54,11 +51,11 @@ its precussor `overtest`_. %build export LC_ALL=en_US.utf8 -%python_build +%pyproject_wheel %install export LC_ALL=en_US.utf8 -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/pifpaf %python_expand %fdupes %{buildroot}%{$python_sitelib} @@ -74,7 +71,8 @@ export LC_ALL=en_US.utf8 %files %{python_files} %license LICENSE %doc ChangeLog README.rst -%{python_sitelib}/* +%{python_sitelib}/pifpaf +%{python_sitelib}/pifpaf-%{version}*-info %python_alternative %{_bindir}/pifpaf %changelog