Compare commits
2 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 3913a88858 | |||
| 5221fce00e |
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jul 11 05:12:04 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Use pyproject macros to build and install.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu May 4 23:42:40 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
Thu May 4 23:42:40 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
|||||||
11
libpfm.spec
11
libpfm.spec
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package libpfm
|
# spec file for package libpfm
|
||||||
#
|
#
|
||||||
# Copyright (c) 2023 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
|
|
||||||
%global python_config CONFIG_PFMLIB_NOPYTHON=y
|
%global python_config CONFIG_PFMLIB_NOPYTHON=y
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
||||||
%define vname libpfm4
|
%define vname libpfm4
|
||||||
%bcond_without python2
|
%bcond_without python2
|
||||||
Name: libpfm
|
Name: libpfm
|
||||||
@@ -31,7 +30,9 @@ Source: https://downloads.sourceforge.net/project/perfmon2/libpfm4/%{nam
|
|||||||
Source1: baselibs.conf
|
Source1: baselibs.conf
|
||||||
|
|
||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module devel}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: swig >= 2.0.5
|
BuildRequires: swig >= 2.0.5
|
||||||
|
|
||||||
@@ -123,7 +124,7 @@ export CFLAGS="%{optflags}"
|
|||||||
make %{?_smp_mflags} %{python_config}
|
make %{?_smp_mflags} %{python_config}
|
||||||
|
|
||||||
pushd python
|
pushd python
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
popd
|
popd
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@@ -142,7 +143,7 @@ install -D -p -m 0755 perf_examples/evt2raw \
|
|||||||
%{buildroot}/%{_bindir}/evt2raw
|
%{buildroot}/%{_bindir}/evt2raw
|
||||||
|
|
||||||
pushd python
|
pushd python
|
||||||
%python_install
|
%pyproject_install
|
||||||
popd
|
popd
|
||||||
|
|
||||||
%post -n %{vname} -p /sbin/ldconfig
|
%post -n %{vname} -p /sbin/ldconfig
|
||||||
@@ -166,7 +167,7 @@ popd
|
|||||||
|
|
||||||
%files %{python_files %{name}}
|
%files %{python_files %{name}}
|
||||||
%{python_sitearch}/perfmon
|
%{python_sitearch}/perfmon
|
||||||
%{python_sitearch}/perfmon-*-info
|
%{python_sitearch}/perfmon-*.dist-info
|
||||||
|
|
||||||
%if %{with python2} && ! 0%{?python_subpackage_only}
|
%if %{with python2} && ! 0%{?python_subpackage_only}
|
||||||
%files -n python2-%{name}
|
%files -n python2-%{name}
|
||||||
|
|||||||
Reference in New Issue
Block a user