add http bcond to allow building for f26

This commit is contained in:
Jens Petersen 2018-02-21 17:20:28 +09:00
parent 1e57e0afef
commit 6dfa22b3fc
1 changed files with 16 additions and 1 deletions

View File

@ -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 <petersen@redhat.com> - 0.12.1-3
- add bcond for https
* Wed Feb 21 2018 Jens Petersen <petersen@redhat.com> - 0.12.1-2
- escape macro in previous changelog