add ghc_devel_post_postun to help koji

This commit is contained in:
Jens Petersen 2011-12-28 12:05:32 +09:00
parent 19872dc6fe
commit 2089fc7bf1
2 changed files with 15 additions and 6 deletions

View File

@ -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}

View File

@ -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 <petersen@redhat.com> - 0.15.2-1
- add ghc_devel_post_postun to help koji/mock with new macros
* Tue Dec 27 2011 Jens Petersen <petersen@redhat.com> - 0.15.1-1
- add ghc_package, ghc_description, ghc_devel_package, ghc_devel_description