## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 4; 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 %{!?dnf_lowest_compatible: %global dnf_lowest_compatible 4.2.23} %global srcname perfmetrics %global _description %{expand: This plug-in will record performance metrics for DNF and store them in JSON files under /var/log/dnf/perfmetrics.} Name: dnf-plugin-%{srcname} Version: 1.0 Release: %autorelease Summary: DNF plugin for Performance Metrics License: GPLv2 BuildArch: noarch URL: https://github.com/filbranden/dnf-plugins-perfmetrics Source0: %{url}/archive/v%{version}/dnf-plugins-%{srcname}-%{version}.tar.gz BuildRequires: cmake BuildRequires: python3-devel BuildRequires: python3-dnf >= %{dnf_lowest_compatible} %description %{_description} %package -n python3-%{name} Summary: %{summary} Requires: python3-dnf >= %{dnf_lowest_compatible} %description -n python3-%{name} %{_description} %prep %setup -q -n dnf-plugins-%{srcname}-%{version} %build %cmake %cmake_build %install %cmake_install install -Ddpm0755 %{buildroot}%{_localstatedir}/log/dnf/perfmetrics %files -n python3-%{name} %license COPYING %doc README.md %{python3_sitelib}/dnf-plugins/%{srcname}.py %{python3_sitelib}/dnf-plugins/__pycache__/* %config(noreplace) %{_sysconfdir}/dnf/plugins/%{srcname}.conf %dir %{_localstatedir}/log/dnf/perfmetrics %changelog * Thu Jan 19 2023 Fedora Release Engineering 1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Jul 21 2022 Fedora Release Engineering 1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jun 15 2022 Python Maint 1.0-2 - Rebuilt for Python 3.11 * Mon Jan 31 2022 Davide Cavalca 1.0-1 - Initial import; Fixes: RHBZ#2047976