fix deps generation for devel package.conf and prof libHS*_p.a
This commit is contained in:
parent
6dd89e3044
commit
25cfe11f3d
31
ghc-deps.sh
31
ghc-deps.sh
@ -24,20 +24,25 @@ files=$(cat)
|
|||||||
for i in $files; do
|
for i in $files; do
|
||||||
meta=""
|
meta=""
|
||||||
case $i in
|
case $i in
|
||||||
*/libHS*_p.a)
|
# exclude rts.conf
|
||||||
meta=prof
|
$pkgconfdir/*-*.conf)
|
||||||
|
name=$(grep "^name: " $i | sed -e "s/name: //")
|
||||||
|
ids=$($GHC_PKG field $name $field | sed -e "s/rts//" -e "s/bin-package-db-[^ ]\+//")
|
||||||
|
for d in $ids; do
|
||||||
|
case $d in
|
||||||
|
*-*) echo "ghc-devel($d)" ;;
|
||||||
|
*) ;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
;;
|
;;
|
||||||
*/libHS*.a)
|
*/libHS*_p.a)
|
||||||
meta=devel
|
pkgver=$(basename $(dirname $i))
|
||||||
|
ids=$($GHC_PKG field $pkgver $field | sed -e "s/rts//" -e "s/bin-package-db-[^ ]\+//")
|
||||||
|
for d in $ids; do
|
||||||
|
case $d in
|
||||||
|
*-*) echo "ghc-prof($d)" ;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
if [ -n "$meta" ]; then
|
|
||||||
pkgver=$(basename $(dirname $i))
|
|
||||||
ids=$($GHC_PKG field $pkgver $field | sed -e "s/rts//" -e "s/bin-package-db-[^ ]\+//")
|
|
||||||
for d in $ids; do
|
|
||||||
case $d in
|
|
||||||
*-*) echo "ghc-${meta}($d)" ;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
|
2
ghc.attr
2
ghc.attr
@ -1,3 +1,3 @@
|
|||||||
%__ghc_provides %{_rpmconfigdir}/ghc-deps.sh --provides %{buildroot}%{ghclibdir}
|
%__ghc_provides %{_rpmconfigdir}/ghc-deps.sh --provides %{buildroot}%{ghclibdir}
|
||||||
%__ghc_requires %{_rpmconfigdir}/ghc-deps.sh --requires %{buildroot}%{ghclibdir}
|
%__ghc_requires %{_rpmconfigdir}/ghc-deps.sh --requires %{buildroot}%{ghclibdir}
|
||||||
%__ghc_path ^%{ghclibdir}/.*/libHS.*\.a$
|
%__ghc_path ^%{ghclibdir}/(.*/libHS.*_p\.a|package.conf.d/.*\.conf)$
|
||||||
|
Loading…
Reference in New Issue
Block a user