fix deps generation for devel package.conf and prof libHS*_p.a

epel9
Jens Petersen 5 years ago
parent 6dd89e3044
commit 25cfe11f3d

@ -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: //")
*/libHS*.a) ids=$($GHC_PKG field $name $field | sed -e "s/rts//" -e "s/bin-package-db-[^ ]\+//")
meta=devel for d in $ids; do
;; case $d in
*-*) echo "ghc-devel($d)" ;;
*) ;;
esac esac
if [ -n "$meta" ]; then done
;;
*/libHS*_p.a)
pkgver=$(basename $(dirname $i)) pkgver=$(basename $(dirname $i))
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-${meta}($d)" ;; *-*) echo "ghc-prof($d)" ;;
esac esac
done done
fi ;;
esac
done done

@ -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…
Cancel
Save