From f5201b70db2bf98b6b9d73e0ad745289e533ee84 Mon Sep 17 00:00:00 2001
From: Jens Petersen <petersen@redhat.com>
Date: Fri, 27 Sep 2019 18:06:47 +0800
Subject: [PATCH] add %ghc_devel_prof config to handle devel/prof lib BRs

---
 ghc-rpm-macros.spec | 5 ++++-
 macros.ghc-os       | 3 ++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/ghc-rpm-macros.spec b/ghc-rpm-macros.spec
index c42d828..f32cd8f 100644
--- a/ghc-rpm-macros.spec
+++ b/ghc-rpm-macros.spec
@@ -11,7 +11,7 @@
 
 Name:           ghc-rpm-macros
 Version:        2.0.5
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        RPM macros for building Haskell packages for GHC
 
 License:        GPLv3+
@@ -206,6 +206,9 @@ EOF
 
 
 %changelog
+* Fri Sep 27 2019 Jens Petersen <petersen@redhat.com> - 2.0.5-2
+- define ghc_devel_prof
+
 * Tue Aug 27 2019 Jens Petersen <petersen@redhat.com> - 2.0.5-1
 - ghc-deps.sh: fix generation of prof deps
 
diff --git a/macros.ghc-os b/macros.ghc-os
index c0b3d74..d44335c 100644
--- a/macros.ghc-os
+++ b/macros.ghc-os
@@ -12,4 +12,5 @@
 # enable library documentation in doc subpkgs
 %with_haddock 1
 
-#%%cabal_install_options -v
+# devel suffix
+%ghc_devel_prof %{?with_ghc_prof:prof}%{!?with_ghc_prof:devel}