15
0
forked from pool/python-pname

Accepting request 1282289 from devel:languages:python

- Convert to pip-based build

OBS-URL: https://build.opensuse.org/request/show/1282289
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pname?expand=0&rev=2
This commit is contained in:
2025-06-03 15:56:04 +00:00
committed by Git OBS Bridge
2 changed files with 12 additions and 5 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jun 3 11:45:51 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
-------------------------------------------------------------------
Tue Mar 10 15:06:11 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pname
#
# 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-pname
Version: 1.0.2
Release: 0
@@ -25,7 +24,9 @@ License: MIT
URL: https://gitlab.com/yo/pname
Source: https://files.pythonhosted.org/packages/source/p/pname/pname-%{version}.tar.gz
Source99: https://gitlab.com/yo/pname/-/raw/master/LICENSE
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
@@ -39,10 +40,10 @@ Check whether a package name is available on PyPI
cp %{SOURCE99} .
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@@ -51,6 +52,7 @@ cp %{SOURCE99} .
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/*
%{python_sitelib}/pname
%{python_sitelib}/pname-%{version}*-info
%changelog