diff --git a/cabal-rpm.spec b/cabal-rpm.spec index dbafaa2..fbebdd4 100644 --- a/cabal-rpm.spec +++ b/cabal-rpm.spec @@ -1,12 +1,6 @@ # generated by cabal-rpm-1.0.1 # https://fedoraproject.org/wiki/Packaging:Haskell -%if 0%{?fedora} >= 27 -%bcond_without https -%else -%bcond_with https -%endif - %bcond_without manpage Name: cabal-rpm @@ -25,18 +19,12 @@ Source1: cblrpm.1 BuildRequires: ghc-rpm-macros BuildRequires: ghc-Cabal-static BuildRequires: ghc-base-static -%if %{with https} BuildRequires: ghc-bytestring-static -%endif BuildRequires: ghc-directory-static BuildRequires: ghc-filepath-static -%if %{with https} BuildRequires: ghc-http-client-static BuildRequires: ghc-http-client-tls-static BuildRequires: ghc-http-conduit-static -%else -BuildRequires: ghc-old-locale-static -%endif BuildRequires: ghc-optparse-applicative-static BuildRequires: ghc-process-static BuildRequires: ghc-simple-cabal-static @@ -53,7 +41,7 @@ Provides: cblrpm = %{version}-%{release} Requires: cabal-install Requires: rpm-build # for repoquery -%if 0%{?fedora} >= 22 +%if 0%{?fedora} || 0%{?rhel} > 7 Requires: dnf-plugins-core %else Requires: yum-utils