%{!?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 %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 %changelog %autochangelog