From 0db546e647417349a4ce79e75fe1a2515f38a4aa Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sun, 22 Jan 2023 15:54:47 +0800 Subject: [PATCH] refresh to cabal-rpm-2.1.0 including SPDX migration --- ghc-hslua.spec | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/ghc-hslua.spec b/ghc-hslua.spec index f1f02fa..73aba50 100644 --- a/ghc-hslua.spec +++ b/ghc-hslua.spec @@ -1,4 +1,4 @@ -# generated by cabal-rpm-2.0.9 +# generated by cabal-rpm-2.1.0 # https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/ %bcond_with system_lua @@ -23,15 +23,24 @@ Patch0: hslua-1.2.0-fail.patch # Begin cabal-rpm deps: BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros +BuildRequires: ghc-base-devel +BuildRequires: ghc-bytestring-devel +BuildRequires: ghc-containers-devel +BuildRequires: ghc-exceptions-devel +BuildRequires: ghc-mtl-devel +BuildRequires: ghc-text-devel +%if %{with ghc_prof} BuildRequires: ghc-base-prof BuildRequires: ghc-bytestring-prof BuildRequires: ghc-containers-prof BuildRequires: ghc-exceptions-prof BuildRequires: ghc-mtl-prof BuildRequires: ghc-text-prof -BuildRequires: lua-devel +%endif # End cabal-rpm deps -%if %{without system_lua} +%if %{with system_lua} +BuildRequires: lua-devel +%else Provides: bundled(lua) = 5.3.5 %endif @@ -50,7 +59,9 @@ Requires: ghc-compiler = %{ghc_version} %endif Requires: %{name}%{?_isa} = %{version}-%{release} # Begin cabal-rpm deps: +%if %{with system_lua} Requires: lua-devel%{?_isa} +%endif # End cabal-rpm deps %description devel