From 6dfa22b3fc6952aa219522797698a381960bc5d8 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Wed, 21 Feb 2018 17:20:28 +0900 Subject: [PATCH] add http bcond to allow building for f26 --- cabal-rpm.spec | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/cabal-rpm.spec b/cabal-rpm.spec index fb3c863..9696c08 100644 --- a/cabal-rpm.spec +++ b/cabal-rpm.spec @@ -1,9 +1,15 @@ # generated by cabal-rpm-0.12.1 # https://fedoraproject.org/wiki/Packaging:Haskell +%if 0%{?fedora} >= 27 +%bcond_without https +%else +%bcond_with https +%endif + Name: cabal-rpm Version: 0.12.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: RPM packaging tool for Haskell Cabal-based packages License: GPLv3+ @@ -14,12 +20,18 @@ Source1: cblrpm.1 BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros # Begin cabal-rpm deps: +%if %{with https} BuildRequires: ghc-bytestring-devel +%endif BuildRequires: ghc-directory-devel BuildRequires: ghc-filepath-devel +%if %{with https} BuildRequires: ghc-http-client-devel BuildRequires: ghc-http-client-tls-devel BuildRequires: ghc-http-conduit-devel +%else +BuildRequires: ghc-old-locale-devel +%endif BuildRequires: ghc-process-devel BuildRequires: ghc-time-devel BuildRequires: ghc-unix-devel @@ -78,6 +90,9 @@ ln -s %{name} %{buildroot}%{_bindir}/cblrpm %changelog +* Wed Feb 21 2018 Jens Petersen - 0.12.1-3 +- add bcond for https + * Wed Feb 21 2018 Jens Petersen - 0.12.1-2 - escape macro in previous changelog