diff --git a/cabal-rpm.spec b/cabal-rpm.spec index e3fd7fa..d88201e 100644 --- a/cabal-rpm.spec +++ b/cabal-rpm.spec @@ -25,7 +25,11 @@ Provides: cblrpm = %{version}-%{release} Requires: cabal-install Requires: rpm-build # for repoquery +%if 0%{?fedora} >= 22 Requires: dnf-plugins-core +%else +Requires: yum-utils +%endif # for rpmdev-bumpspec Requires: rpmdevtools @@ -72,7 +76,7 @@ ln -s cblrpm %{buildroot}%{_bindir}/%{name} %changelog * Tue Feb 24 2015 Jens Petersen - 0.9.4-2 -- require dnf-plugins-core instead of yum-utils +- require dnf-plugins-core instead of yum-utils for F22+ * Tue Feb 17 2015 Jens Petersen - 0.9.4-1 - use dnf if installed instead of yum for install and repoquery (#1156553)