From 0df7fb3a90f55fe86d0a80c8cc60edb91e2586a8 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Wed, 24 Jan 2018 14:12:01 +0100 Subject: [PATCH] refresh to cabal-rpm-0.12.1 --- ghc-socks.spec | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/ghc-socks.spec b/ghc-socks.spec index 6a8957a..8afd357 100644 --- a/ghc-socks.spec +++ b/ghc-socks.spec @@ -1,7 +1,8 @@ -# generated by cabal-rpm-0.10.0 +# generated by cabal-rpm-0.12.1 # https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name socks +%global pkgver %{pkg_name}-%{version} Name: ghc-%{pkg_name} Version: 0.5.5 @@ -10,7 +11,7 @@ Summary: Socks proxy (version 5) implementation License: BSD Url: https://hackage.haskell.org/package/%{pkg_name} -Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz +Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros @@ -27,9 +28,12 @@ Socks proxy (version 5) implementation. %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 @@ -37,7 +41,7 @@ This package provides the Haskell %{pkg_name} library development files. %prep -%setup -q -n %{pkg_name}-%{version} +%setup -q -n %{pkgver} %build @@ -48,6 +52,12 @@ This package provides the Haskell %{pkg_name} library development files. %ghc_lib_install +%post -p /sbin/ldconfig + + +%postun -p /sbin/ldconfig + + %post devel %ghc_pkg_recache