From f530b2ab4639e448d94a7af15e0efdbc29d1fb37 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Wed, 24 Jan 2018 14:11:01 +0100 Subject: [PATCH] refresh to cabal-rpm-0.12.1 --- ghc-doctemplates.spec | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/ghc-doctemplates.spec b/ghc-doctemplates.spec index e4504d5..fc03384 100644 --- a/ghc-doctemplates.spec +++ b/ghc-doctemplates.spec @@ -1,10 +1,10 @@ -# generated by cabal-rpm-0.11.2 +# generated by cabal-rpm-0.12.1 # https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name doctemplates %global pkgver %{pkg_name}-%{version} -%bcond_with tests +%bcond_without tests Name: ghc-%{pkg_name} Version: 0.1.0.2 @@ -42,9 +42,12 @@ to use independently. %package devel Summary: Haskell %{pkg_name} library development files Provides: %{name}-static = %{version}-%{release} +Provides: %{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: %{name}%{?_isa} = %{version}-%{release} %description devel @@ -69,6 +72,12 @@ rm %{buildroot}%{_datadir}/%{pkgver}/README.md %cabal_test +%post -p /sbin/ldconfig + + +%postun -p /sbin/ldconfig + + %post devel %ghc_pkg_recache