add ghc_devel_post_postun to help koji

epel9
Jens Petersen 13 years ago
parent 19872dc6fe
commit 2089fc7bf1

@ -198,6 +198,16 @@ Provides: %{basepkg}-prof = %{pkgver}-%{release}\
\ \
This package contains the development files. 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 cdepslist] [-h pkgdepslist] [-l licensetag] [name] [version]
%ghc_package_devel(c:h:l:)\ %ghc_package_devel(c:h:l:)\
%define pkgname %{?1}%{!?1:%{pkg_name}}\ %define pkgname %{?1}%{!?1:%{pkg_name}}\
@ -206,11 +216,7 @@ This package contains the development files.
\ \
%ghc_devel_description\ %ghc_devel_description\
\ \
%post -n %{basepkg}-devel\ %ghc_devel_post_postun\
%ghc_pkg_recache\
\
%postun -n %{basepkg}-devel\
%ghc_pkg_recache\
\ \
%ghc_devel_files\ %ghc_devel_files\
%{nil} %{nil}

@ -3,7 +3,7 @@
%global macros_file %{_sysconfdir}/rpm/macros.ghc %global macros_file %{_sysconfdir}/rpm/macros.ghc
Name: ghc-rpm-macros Name: ghc-rpm-macros
Version: 0.15.1 Version: 0.15.2
Release: 1%{?dist} Release: 1%{?dist}
Summary: Macros for building packages for GHC Summary: Macros for building packages for GHC
@ -59,6 +59,9 @@ EOF
%changelog %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 * Tue Dec 27 2011 Jens Petersen <petersen@redhat.com> - 0.15.1-1
- add ghc_package, ghc_description, ghc_devel_package, ghc_devel_description - add ghc_package, ghc_description, ghc_devel_package, ghc_devel_description

Loading…
Cancel
Save