use the latest installed pkg version for %GHCRequires

This commit is contained in:
Jens Petersen 2009-11-16 09:14:11 +00:00
parent 5edaabc998
commit 32ffe2c854
2 changed files with 5 additions and 2 deletions

View File

@ -38,4 +38,4 @@ echo '%{ghcdocdir}' >> %1-doc.files \
%ghc_version %(ghc --numeric-version)
%GHCRequires() \
Requires: ghc-%1-%2 = %(ghc-pkg list --global --simple-output %1|sed -e "s/%1-//")
Requires: ghc-%1-%2 = %(ghc-pkg list --global --simple-output %1|sed -e "s/.*%1-//")

View File

@ -1,5 +1,5 @@
Name: ghc-rpm-macros
Version: 0.2.2
Version: 0.2.3
Release: 1%{?dist}
Summary: Macros for building packages for GHC
@ -48,6 +48,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Mon Nov 16 2009 Jens Petersen <petersen@redhat.com> - 0.2.3-1
- use the latest installed pkg version for %%GHCRequires
* Mon Nov 16 2009 Jens Petersen <petersen@redhat.com> - 0.2.2-1
- add %%GHCRequires for automatically versioned library deps