From 506848a77caa85374229bb8490a490fd7f7a298a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Pierret?= Date: Sat, 21 Apr 2018 12:00:34 +0200 Subject: [PATCH] Use %{python3_pkgversion} instead of duplicating python3 targets --- rpm_spec/core-agent.spec.in | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/rpm_spec/core-agent.spec.in b/rpm_spec/core-agent.spec.in index c73f373..77bd151 100644 --- a/rpm_spec/core-agent.spec.in +++ b/rpm_spec/core-agent.spec.in @@ -170,29 +170,15 @@ DNF plugin for Qubes specific post-installation actions: * notify dom0 that updates were installed * refresh applications shortcut list -%if 0%{?fedora} >= 23 -%package -n python3-dnf-plugins-qubes-hooks +%package -n python%{python3_pkgversion}-dnf-plugins-qubes-hooks Summary: DNF plugin for Qubes specific post-installation actions -BuildRequires: python3-devel -%{?python_provide:%python_provide python3-dnf-plugins-qubes-hooks} +BuildRequires: python%{python3_pkgversion}-devel +%{?python_provide:%python_provide python%{python3_pkgversion}-dnf-plugins-qubes-hooks} -%description -n python3-dnf-plugins-qubes-hooks +%description -n python%{python3_pkgversion}-dnf-plugins-qubes-hooks DNF plugin for Qubes specific post-installation actions: * notify dom0 that updates were installed * refresh applications shortcut list -%endif - -%if 0%{?rhel} >= 7 -%package -n python34-dnf-plugins-qubes-hooks -Summary: DNF plugin for Qubes specific post-installation actions -BuildRequires: python34-devel -%{?python_provide:%python_provide python34-dnf-plugins-qubes-hooks} - -%description -n python34-dnf-plugins-qubes-hooks -DNF plugin for Qubes specific post-installation actions: - * notify dom0 that updates were installed - * refresh applications shortcut list -%endif %package qrexec Summary: Qubes qrexec agent