From b29ee53e138fa09ae47e41e91af4b6ee1e78c97d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Pierret?= Date: Wed, 4 Apr 2018 16:33:40 -0400 Subject: [PATCH] spec.in: fix %if expressions and remove useless conditions (cherry picked from commit 6036f1f65b86f171f90a6a259ec0b9f2fb23b9ca) --- rpm_spec/core-vm.spec | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/rpm_spec/core-vm.spec b/rpm_spec/core-vm.spec index f704643..5df399d 100644 --- a/rpm_spec/core-vm.spec +++ b/rpm_spec/core-vm.spec @@ -112,14 +112,8 @@ Group: Qubes Vendor: Invisible Things Lab License: GPL URL: http://www.qubes-os.org -%if %{fedora} < 22 -Requires: yum-plugin-post-transaction-actions -%endif -Requires: NetworkManager >= 0.8.1-1 -%if %{fedora} >= 18 -# Fedora >= 18 defaults to firewalld, which isn't supported nor needed by Qubes + Conflicts: firewalld -%endif Requires: xdg-utils Requires: ethtool Requires: iptables @@ -150,7 +144,7 @@ Requires: pygtk2 Requires: zenity Requires: qubes-libvchan Requires: qubes-db-vm -%if 0%{fedora} >= 23 +%if 0%{?fedora} >= 23 Requires: python3-dnf-plugins-qubes-hooks %else Requires: python2-dnf-plugins-qubes-hooks @@ -593,7 +587,7 @@ rm -f %{name}-%{version} %files -n python2-dnf-plugins-qubes-hooks %{python2_sitelib}/dnf-plugins/* -%if 0%{fedora} >= 23 +%if 0%{?fedora} >= 23 %files -n python3-dnf-plugins-qubes-hooks %{python3_sitelib}/dnf-plugins/* %endif