From fe1a0f23eeaa1b099c5dc8f141721ce01e325466 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Fri, 6 Jan 2012 22:56:31 +0900 Subject: [PATCH] ghc_add_basepkg_file adds path to base lib package filelist --- ghc-rpm-macros.ghc | 4 ++++ ghc-rpm-macros.spec | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ghc-rpm-macros.ghc b/ghc-rpm-macros.ghc index 40c43f0..0915eec 100644 --- a/ghc-rpm-macros.ghc +++ b/ghc-rpm-macros.ghc @@ -73,6 +73,10 @@ fi\ sed -i -e "s!%{buildroot}!!g" %{!?ghc_without_shared:%{basepkg}.files} %{basepkg}-devel.files\ %{nil} +%ghc_add_basepkg_file()\ +%define basepkg ghc-%{pkg_name}\ +echo "%*" >> %{basepkg}%{?ghc_without_shared:-devel}.files + # compiler version %ghc_version %{!?ghc_version_override:%(ghc --numeric-version)}%{?ghc_version_override} diff --git a/ghc-rpm-macros.spec b/ghc-rpm-macros.spec index 33de798..fc37111 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.2 +Version: 0.15.3 Release: 1%{?dist} Summary: Macros for building packages for GHC @@ -59,6 +59,9 @@ EOF %changelog +* Fri Jan 6 2012 Jens Petersen - 0.15.3-1 +- new ghc_add_basepkg_file to add a path to base lib package + * Wed Dec 28 2011 Jens Petersen - 0.15.2-1 - add ghc_devel_post_postun to help koji/mock with new macros