1st release

This commit is contained in:
Ali Erdinc Koroglu 2025-03-18 18:51:28 +02:00
commit 272ff08e97
3 changed files with 75 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/geopm-*.tar.gz

73
python-geopmpy.spec Normal file
View file

@ -0,0 +1,73 @@
%global debug_package %{nil}
%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.1.0
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: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-geopmdpy
BuildRequires: python3-pandas
BuildRequires: python3-natsort
BuildRequires: python3-pyyaml
BuildRequires: python3-tables
BuildRequires: libgeopm-devel
BuildRequires: libgeopmd-devel
Requires: geopmd
%description
%{desc}
%package -n python3-%{prj_name}
Summary: %{summary}
%description -n python3-%{prj_name}
%{desc}
%prep
%autosetup -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 -p 'Test*.py' -v
popd
%files -n python3-%{prj_name}
%license LICENSE-BSD-3-Clause
%doc README.md
%{python3_sitelib}/%{prj_name}
%{python3_sitelib}/%{prj_name}-*.egg-info
%{_bindir}/geopmlaunch
%changelog
%autochangelog

1
sources Normal file
View file

@ -0,0 +1 @@
SHA512 (geopm-3.1.0.tar.gz) = e0446d7e330a8a7ecbdfb89dc98e707364b07168e708805d68dcfa14117fc701658cce7d01c58df0380876acdfb7b3518699900e60d7c7a6cb022001b592717b