diff --git a/ghc-rpm-macros.ghc b/ghc-rpm-macros.ghc index e1ae941..40c43f0 100644 --- a/ghc-rpm-macros.ghc +++ b/ghc-rpm-macros.ghc @@ -198,6 +198,16 @@ Provides: %{basepkg}-prof = %{pkgver}-%{release}\ \ This package contains the development files. +# ghc_devel_post_postun +%ghc_devel_post_postun\ +%define pkgname %{?1}%{!?1:%{pkg_name}}\ +%define basepkg ghc-%{pkgname}\ +%post -n %{basepkg}-devel\ +%ghc_pkg_recache\ +\ +%postun -n %{basepkg}-devel\ +%ghc_pkg_recache + # ghc_package_devel [-c cdepslist] [-h pkgdepslist] [-l licensetag] [name] [version] %ghc_package_devel(c:h:l:)\ %define pkgname %{?1}%{!?1:%{pkg_name}}\ @@ -206,11 +216,7 @@ This package contains the development files. \ %ghc_devel_description\ \ -%post -n %{basepkg}-devel\ -%ghc_pkg_recache\ -\ -%postun -n %{basepkg}-devel\ -%ghc_pkg_recache\ +%ghc_devel_post_postun\ \ %ghc_devel_files\ %{nil} diff --git a/ghc-rpm-macros.spec b/ghc-rpm-macros.spec index 37f5916..33de798 100644 --- a/ghc-rpm-macros.spec +++ b/ghc-rpm-macros.spec @@ -3,7 +3,7 @@ %global macros_file %{_sysconfdir}/rpm/macros.ghc Name: ghc-rpm-macros -Version: 0.15.1 +Version: 0.15.2 Release: 1%{?dist} Summary: Macros for building packages for GHC @@ -59,6 +59,9 @@ EOF %changelog +* Wed Dec 28 2011 Jens Petersen - 0.15.2-1 +- add ghc_devel_post_postun to help koji/mock with new macros + * Tue Dec 27 2011 Jens Petersen - 0.15.1-1 - add ghc_package, ghc_description, ghc_devel_package, ghc_devel_description