diff --git a/kf5-networkmanager-qt.spec b/kf5-networkmanager-qt.spec index accb37c..ac03893 100644 --- a/kf5-networkmanager-qt.spec +++ b/kf5-networkmanager-qt.spec @@ -23,7 +23,7 @@ BuildRequires: extra-cmake-modules BuildRequires: qt5-qtbase-devel BuildRequires: pkgconfig(NetworkManager) >= 0.9.8 -%if 0%{?fedora} > 21 +%if 0%{?fedora} >= 22 || 0%{?rhel} >= 7 BuildRequires: pkgconfig(libnm) %else BuildRequires: pkgconfig(libnm-glib) pkgconfig(libnm-util) @@ -40,7 +40,7 @@ Summary: Development files for %{name} Group: Development/Libraries Requires: %{name}%{?_isa} = %{version}-%{release} Requires: qt5-qtbase-devel -%if 0%{?fedora} > 21 +%if 0%{?fedora} >= 22 || 0%{?rhel} >= 7 Requires: pkgconfig(libnm) %else Requires: pkgconfig(libnm-glib) pkgconfig(libnm-util)