## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global prj_name geopmdpy %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: geopmd Version: 3.2.2 Release: %autorelease Summary: GEOPM daemon 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: grpc-plugins BuildRequires: libgeopmd-devel >= 3.2.2 BuildRequires: python3-devel BuildRequires: python3-defusedxml BuildRequires: systemd-units Requires: python3-%{prj_name} = %{version}-%{release} Requires: geopmd-cli Requires: geopm-cli %description %{desc} %package -n python3-%{prj_name} Summary: Python bindings for libgeopmd %description -n python3-%{prj_name} %{desc} %prep %autosetup -p1 -n geopm-%{version} echo %{version} > %{prj_name}/%{prj_name}/VERSION %generate_buildrequires cd %{prj_name} %pyproject_buildrequires %build cd %{prj_name} %pyproject_wheel %install cd %{prj_name} %pyproject_install %pyproject_save_files %{prj_name} mkdir -p %{buildroot}%{_sysconfdir}/geopm chmod 0700 %{buildroot}%{_sysconfdir}/geopm install -D -p -m 644 io.github.geopm.xml %{buildroot}%{_datadir}/dbus-1/interfaces/io.github.geopm.xml install -D -p -m 644 io.github.geopm.conf %{buildroot}%{_datadir}/dbus-1/system.d/io.github.geopm.conf install -D -p -m 644 geopm.service %{buildroot}%{_unitdir}/geopm.service protoc \ --python_out=geopmdpy \ --grpc_out geopmdpy \ --plugin=protoc-gen-grpc=/usr/bin/grpc_python_plugin \ geopm_service.proto cp geopm_service.proto %{buildroot}%{python3_sitearch}/%{prj_name} %check cd %{prj_name} PYTHONPATH=%{buildroot}%{python3_sitearch} %{python3} -m unittest discover -p 'Test*.py' -v %post %systemd_post geopm.service %preun %systemd_preun geopm.service %postun %systemd_postun_with_restart geopm.service %files %license LICENSE-BSD-3-Clause %doc README.md %{_bindir}/geopmd %dir %{_sysconfdir}/geopm %{_datadir}/dbus-1/interfaces/io.github.geopm.xml %{_datadir}/dbus-1/system.d/io.github.geopm.conf %{_unitdir}/geopm.service %files -n python3-%{prj_name} -f %{pyproject_files} %{_bindir}/geopmaccess %{_bindir}/geopmexporter %{_bindir}/geopmread %{_bindir}/geopmwrite %{_bindir}/geopmsession %{python3_sitearch}/_libgeopmd_py_cffi.abi3*.so %{python3_sitearch}/%{prj_name}/geopm_service.proto %changelog ## START: Generated by rpmautospec * Mon Aug 24 2026 Miro HronĨok - 3.2.2-2 - Fix build with different extension module filename * Wed Jul 29 2026 Ali Erdinc Koroglu - 3.2.2-1 - Update to 3.2.2 (rhbz#2377267) * Wed Jul 22 2026 Python Maint - 3.2.1-5 - Rebuilt for Python 3.15.0b4 ABI change * Wed Jul 15 2026 Fedora Release Engineering - 3.2.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild * Thu Jun 04 2026 Python Maint - 3.2.1-3 - Rebuilt for Python 3.15 * Fri Jan 16 2026 Fedora Release Engineering - 3.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Sat Oct 11 2025 Ali Erdinc Koroglu - 3.2.1-1 - Update to 3.2.1 * Fri Sep 19 2025 Python Maint - 3.2.0-4 - Rebuilt for Python 3.14.0rc3 bytecode * Fri Aug 15 2025 Python Maint - 3.2.0-3 - Rebuilt for Python 3.14.0rc2 bytecode * Wed Jul 23 2025 Fedora Release Engineering - 3.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Wed Jun 11 2025 Ali Erdinc Koroglu - 3.2.0-1 - Update to 3.2.0 * Fri Jun 06 2025 Python Maint - 3.1.0-4 - Rebuilt for Python 3.14 * Thu Feb 13 2025 Ali Erdinc Koroglu - 3.1.0-3 - FTBFS fix (rhbz#2340207) * Thu Jan 16 2025 Fedora Release Engineering - 3.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Fri Dec 13 2024 Ali Erdinc Koroglu - 3.1.0-1 - 1st release ## END: Generated by rpmautospec