add %GHCRequires for automatically versioned library deps

epel9
Jens Petersen 15 years ago
parent 87815fa4c0
commit 5edaabc998

@ -36,3 +36,6 @@ echo '%{ghcdocdir}' >> %1-doc.files \
%ghc_reindex_haddock ( cd %{_docdir}/ghc/libraries && [ -x "./gen_contents_index" ] && ./gen_contents_index ) || :
%ghc_version %(ghc --numeric-version)
%GHCRequires() \
Requires: ghc-%1-%2 = %(ghc-pkg list --global --simple-output %1|sed -e "s/%1-//")

@ -1,6 +1,6 @@
Name: ghc-rpm-macros
Version: 0.2.1
Release: 2%{?dist}
Version: 0.2.2
Release: 1%{?dist}
Summary: Macros for building packages for GHC
Group: Development/Libraries
@ -48,6 +48,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Mon Nov 16 2009 Jens Petersen <petersen@redhat.com> - 0.2.2-1
- add %%GHCRequires for automatically versioned library deps
* Tue Sep 22 2009 Jens Petersen <petersen@redhat.com> - 0.2.1-2
- no, revert versioned ghcdocdir again!

Loading…
Cancel
Save