ghc-deps.sh: only depend on ghc-prof(pkgid) if libHS*_p.a exists
testcase: haskell-gi-overloading dummy package
This commit is contained in:
parent
a11ad68d65
commit
8532ad674a
13
ghc-deps.sh
13
ghc-deps.sh
@ -40,7 +40,18 @@ for i in $files; do
|
|||||||
ids=$($GHC_PKG field $pkgver $field | sed -e "s/rts//" -e "s/bin-package-db-[^ ]\+//")
|
ids=$($GHC_PKG field $pkgver $field | sed -e "s/rts//" -e "s/bin-package-db-[^ ]\+//")
|
||||||
for d in $ids; do
|
for d in $ids; do
|
||||||
case $d in
|
case $d in
|
||||||
*-*) echo "ghc-prof($d)" ;;
|
*-*)
|
||||||
|
case $field in
|
||||||
|
id)
|
||||||
|
echo "ghc-prof($d)"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
if [ -f "$PKGBASEDIR/$pkgver/libHS${d}_p.a" -o -f "/usr/lib*/ghc-*/$pkgver/libHS${d}_p.a" ]; then
|
||||||
|
echo "ghc-prof($d)"
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
;;
|
;;
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
#%%global without_hscolour 1
|
#%%global without_hscolour 1
|
||||||
|
|
||||||
Name: ghc-rpm-macros
|
Name: ghc-rpm-macros
|
||||||
Version: 2.0.2
|
Version: 2.0.3
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: RPM macros for building Haskell packages for GHC
|
Summary: RPM macros for building Haskell packages for GHC
|
||||||
|
|
||||||
@ -203,6 +203,9 @@ EOF
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Aug 10 2019 Jens Petersen <petersen@redhat.com> - 2.0.3-1
|
||||||
|
- only depend on ghc-prof(pkgid) if libHSpkgid_p.a exists
|
||||||
|
|
||||||
* Tue Aug 6 2019 Jens Petersen <petersen@redhat.com> - 2.0.2-1
|
* Tue Aug 6 2019 Jens Petersen <petersen@redhat.com> - 2.0.2-1
|
||||||
- check if doc haddock dir exists
|
- check if doc haddock dir exists
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user