ghc-deps.sh: fix prof deps for subpackages

This commit is contained in:
Jens Petersen 2020-02-10 18:51:58 +08:00
parent 94dd010461
commit 640d44dbc6
2 changed files with 6 additions and 4 deletions

View File

@ -46,7 +46,7 @@ for i in $files; do
echo "ghc-prof($d)"
;;
*)
if [ -f /usr/lib*/ghc-*/*/libHS${d}_p.a -o -f "$PKGBASEDIR/$pkgver/libHS${d}_p.a" ]; then
if [ -f /usr/lib*/ghc-*/*/libHS${d}_p.a -o -f $PKGBASEDIR/*/libHS${d}_p.a ]; then
echo "ghc-prof($d)"
fi
;;

View File

@ -10,8 +10,8 @@
#%%global without_hscolour 1
Name: ghc-rpm-macros
Version: 2.0.5
Release: 5%{?dist}
Version: 2.0.6
Release: 1%{?dist}
Summary: RPM macros for building Haskell packages for GHC
License: GPLv3+
@ -207,6 +207,9 @@ EOF
%changelog
* Mon Feb 10 2020 Jens Petersen <petersen@redhat.com> - 2.0.6-1
- ghc-deps.sh: fix prof deps for subpackages
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.5-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
@ -1271,4 +1274,3 @@ EOF
* Mon May 4 2009 Yaakov M. Nemoy <ghc@hexago.nl> - 0.1-1
- creation of package