From 91ba8cf5f8d417b75136ca4a8469f8a7192e65aa Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Wed, 24 Jan 2018 14:10:18 +0100 Subject: [PATCH] refresh to cabal-rpm-0.12.1 --- ShellCheck.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/ShellCheck.spec b/ShellCheck.spec index ce13073..c74af9e 100644 --- a/ShellCheck.spec +++ b/ShellCheck.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 ShellCheck @@ -52,9 +52,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 @@ -80,6 +83,12 @@ install -Dpm 0644 shellcheck.1 %{buildroot}%{_mandir}/man1/shellcheck.1 %cabal_test +%post -n ghc-%{name} -p /sbin/ldconfig + + +%postun -n ghc-%{name} -p /sbin/ldconfig + + %post -n ghc-%{name}-devel %ghc_pkg_recache