diff --git a/ghc-gi-gio.spec b/ghc-gi-gio.spec index 045f447..a5f2c86 100644 --- a/ghc-gi-gio.spec +++ b/ghc-gi-gio.spec @@ -1,4 +1,4 @@ -# generated by cabal-rpm-0.11.2 +# generated by cabal-rpm-0.12.1 # https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name gi-gio @@ -36,9 +36,11 @@ Bindings for Gio, autogenerated by haskell-gi. Requires: %{name}%{?_isa} = %{version}-%{release} Summary: Haskell %{pkg_name} library development files Provides: %{name}-static = %{version}-%{release} +%if %{defined ghc_version} Requires: ghc-compiler = %{ghc_version} Requires(post): ghc-compiler = %{ghc_version} Requires(postun): ghc-compiler = %{ghc_version} +%endif # Begin cabal-rpm deps: Requires: pkgconfig(gio-2.0) # End cabal-rpm deps @@ -60,6 +62,12 @@ This package provides the Haskell %{pkg_name} library development files. mv %{buildroot}%{_ghcdocdir}{,-devel} +%post -p /sbin/ldconfig + + +%postun -p /sbin/ldconfig + + %post devel %ghc_pkg_recache