15
0
forked from pool/python-petact

- Convert to pip-based build

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-petact?expand=0&rev=7
This commit is contained in:
2025-06-03 11:10:52 +00:00
committed by Git OBS Bridge
parent 09f3ca0d0b
commit 5de073e183
2 changed files with 14 additions and 7 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jun 3 11:10:34 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
-------------------------------------------------------------------
Wed May 20 07:26:12 UTC 2020 - Petr Gajdos <pgajdos@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-petact
#
# Copyright (c) 2020 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 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-petact
Version: 0.1.2
Release: 0
@@ -26,12 +25,14 @@ Group: Development/Languages/Python
URL: https://github.com/matthewscholefield/petact
Source: https://files.pythonhosted.org/packages/source/p/petact/petact-%{version}.tar.gz
Source99: https://raw.githubusercontent.com/MatthewScholefield/petact/master/LICENSE
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-setuptools
Requires(post): update-alternatives
Requires(postun): update-alternatives
Requires(post): alts
Requires(postun): alts
BuildArch: noarch
%python_subpackages
@@ -47,10 +48,10 @@ the same place.
cp %{SOURCE99} .
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/petact
%python_expand %fdupes %{buildroot}%{$python_sitelib}
@@ -67,6 +68,7 @@ cp %{SOURCE99} .
%doc README.md
%license LICENSE
%python_alternative %{_bindir}/petact
%{python_sitelib}/*
%{python_sitelib}/petact
%{python_sitelib}/petact-%{version}*-info
%changelog