set datasubdir in cabal_configure for ghc-7.8
pkg datadir should not be arch dependent!
This commit is contained in:
parent
3ec60c7a31
commit
e4c93cb77e
@ -16,7 +16,7 @@ PKGCONFDIR=$PKGBASEDIR/package.conf.d
|
|||||||
GHC_VER=$(basename $PKGBASEDIR | sed -e s/ghc-//)
|
GHC_VER=$(basename $PKGBASEDIR | sed -e s/ghc-//)
|
||||||
|
|
||||||
if [ -x "$PKGBASEDIR/bin/ghc-pkg" ]; then
|
if [ -x "$PKGBASEDIR/bin/ghc-pkg" ]; then
|
||||||
# ghc-7.7
|
# ghc-7.8
|
||||||
GHC_PKG="$PKGBASEDIR/bin/ghc-pkg --global-package-db=$PKGCONFDIR"
|
GHC_PKG="$PKGBASEDIR/bin/ghc-pkg --global-package-db=$PKGCONFDIR"
|
||||||
elif [ -x "$PKGBASEDIR/ghc-pkg" ]; then
|
elif [ -x "$PKGBASEDIR/ghc-pkg" ]; then
|
||||||
GHC_PKG="$PKGBASEDIR/ghc-pkg --global-package-db=$PKGCONFDIR"
|
GHC_PKG="$PKGBASEDIR/ghc-pkg --global-package-db=$PKGCONFDIR"
|
||||||
|
@ -21,7 +21,7 @@ fi
|
|||||||
# configure
|
# configure
|
||||||
%cabal_configure\
|
%cabal_configure\
|
||||||
%ghc_check_bootstrap\
|
%ghc_check_bootstrap\
|
||||||
%cabal configure --prefix=%{_prefix} --libdir=%{_libdir} --docdir=%{_pkgdocdir} --libsubdir='$compiler/$pkgid' --ghc %{!?ghc_without_dynamic:--enable-executable-dynamic} %{?cabal_configure_options} $cabal_configure_extra_options
|
%cabal configure --prefix=%{_prefix} --libdir=%{_libdir} --docdir=%{_pkgdocdir} --libsubdir='$compiler/$pkgid' --datasubdir='$pkgid' --ghc %{!?ghc_without_dynamic:--enable-executable-dynamic} %{?cabal_configure_options} $cabal_configure_extra_options
|
||||||
|
|
||||||
# install
|
# install
|
||||||
%cabal_install %cabal copy --destdir=%{buildroot} -v
|
%cabal_install %cabal copy --destdir=%{buildroot} -v
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
#%%global without_hscolour 1
|
#%%global without_hscolour 1
|
||||||
|
|
||||||
Name: ghc-rpm-macros
|
Name: ghc-rpm-macros
|
||||||
Version: 1.2.2
|
Version: 1.2.3
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: RPM macros for building packages for GHC
|
Summary: RPM macros for building packages for GHC
|
||||||
|
|
||||||
@ -90,6 +90,9 @@ EOF
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Feb 10 2014 Jens Petersen <petersen@redhat.com> - 1.2.3-1
|
||||||
|
- set datasubdir in cabal_configure for ghc-7.8
|
||||||
|
|
||||||
* Fri Jan 10 2014 Jens Petersen <petersen@redhat.com> - 1.2.2-1
|
* Fri Jan 10 2014 Jens Petersen <petersen@redhat.com> - 1.2.2-1
|
||||||
- quote the ghc_fix_dynamic_rpath error message
|
- quote the ghc_fix_dynamic_rpath error message
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user