diff --git a/unlambda.spec b/unlambda.spec index 377c7ae..30174b4 100644 --- a/unlambda.spec +++ b/unlambda.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 unlambda @@ -37,9 +37,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 @@ -59,6 +62,12 @@ iconv -f iso8859-1 -t utf-8 Language/Unlambda.hs > Language/Unlambda.conv && mv %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