From 6d5b9252a260757a38227ff25e0b334a79a694c3 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Wed, 24 Jan 2018 14:12:29 +0100 Subject: [PATCH] refresh to cabal-rpm-0.12.1 --- hscolour.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/hscolour.spec b/hscolour.spec index fe63162..51967e5 100644 --- a/hscolour.spec +++ b/hscolour.spec @@ -1,4 +1,4 @@ -# generated by cabal-rpm-0.11.1 +# generated by cabal-rpm-0.12.1 # https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name hscolour @@ -45,9 +45,12 @@ This package provides the Haskell %{name} shared library. %package -n ghc-%{name}-devel Summary: Haskell %{name} library development files Provides: ghc-%{name}-static = %{version}-%{release} +Provides: ghc-%{name}-doc = %{version}-%{release} +%if %{defined ghc_version} Requires: ghc-compiler = %{ghc_version} Requires(post): ghc-compiler = %{ghc_version} Requires(postun): ghc-compiler = %{ghc_version} +%endif Requires: ghc-%{name}%{?_isa} = %{version}-%{release} %description -n ghc-%{name}-devel @@ -66,6 +69,12 @@ This package provides the Haskell %{name} library development files. %ghc_lib_install +%post -n ghc-%{name} -p /sbin/ldconfig + + +%postun -n ghc-%{name} -p /sbin/ldconfig + + %post -n ghc-%{name}-devel %ghc_pkg_recache