Accepting request 1282318 from devel:languages:python
- Convert to pip-based build OBS-URL: https://build.opensuse.org/request/show/1282318 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-py-cpuinfo?expand=0&rev=10
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 3 12:39:03 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Convert to pip-based build
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 21 12:30:13 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-py-cpuinfo
|
||||
#
|
||||
# Copyright (c) 2023 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
|
||||
@@ -26,11 +26,13 @@ License: MIT
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/workhorsy/py-cpuinfo
|
||||
Source: https://files.pythonhosted.org/packages/source/p/py-cpuinfo/py-cpuinfo-%{version}.tar.gz
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
Requires(post): alts
|
||||
Requires(postun): alts
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@@ -57,13 +59,13 @@ These approaches are used for getting info:
|
||||
sed -i '1{ /^#!/d; }' cpuinfo/*.py
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
# Prepare for update-alternatives usage
|
||||
# Prepare for alts usage
|
||||
%python_clone -a %{buildroot}%{_bindir}/cpuinfo
|
||||
|
||||
%if %{with tests}
|
||||
|
Reference in New Issue
Block a user