python-geopmpy/python-geopmpy.spec
Ali Erdinc Koroglu 05a2c29f29 Update to 3.2.1
2025-10-11 14:46:53 +03:00

82 lines
1.8 KiB
RPMSpec

%global prj_name geopmpy
%global desc %{expand: \
The Global Extensible Open Power Manager (GEOPM) provides a framework to
explore power and energy optimizations on platforms with heterogeneous mixes
of computing hardware.
Users can monitor their system's energy and power consumption, and safely
optimize system hardware settings to achieve energy efficiency and/or
performance objectives.}
Name: python-%{prj_name}
Version: 3.2.1
Release: %autorelease
Summary: Python bindings for libgeopm
License: BSD-3-Clause
URL: https://geopm.github.io
Source0: https://github.com/geopm/geopm/archive/v%{version}/geopm-%{version}.tar.gz
ExclusiveArch: x86_64
BuildRequires: gcc
BuildRequires: python3-cffi
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-setuptools_scm
BuildRequires: python3-geopmdpy >= 3.2.1
BuildRequires: python3-cycler
BuildRequires: python3-pandas
BuildRequires: python3-natsort
BuildRequires: python3-tables
BuildRequires: python3-pyyaml
BuildRequires: libgeopm-devel >= 3.2.1
BuildRequires: libgeopmd-devel >= 3.2.1
Requires: python3-cycler
Requires: python3-natsort
Requires: python3-pandas
Requires: python3-tables
Requires: python3-pyyaml
Requires: geopmd
%description
%{desc}
%package -n python3-%{prj_name}
Summary: %{summary}
%description -n python3-%{prj_name}
%{desc}
%prep
%autosetup -p1 -n geopm-%{version}
pushd %{prj_name}
echo %{version} > %{prj_name}/VERSION
popd
%build
pushd %{prj_name}
%py3_build
popd
%install
pushd %{prj_name}
%py3_install
popd
%check
pushd %{prj_name}
%{python3} -m unittest discover -s test -p 'Test*.py' -v
popd
%files -n python3-%{prj_name}
%license LICENSE-BSD-3-Clause
%doc README.md
%{python3_sitearch}/_libgeopm_py_cffi.abi3.so
%{python3_sitearch}/%{prj_name}
%{python3_sitearch}/%{prj_name}-*.egg-info
%{_bindir}/geopmlaunch
%changelog
%autochangelog