|
|
|
@ -39,7 +39,7 @@ export CFLAGS\
|
|
|
|
|
%global _hardened_ldflags %{nil}\
|
|
|
|
|
LDFLAGS="${LDFLAGS:-$(echo %{?__global_ldflags} | sed -e 's/-Wl,-z,defs//')}"; export LDFLAGS\
|
|
|
|
|
%cabal --version\
|
|
|
|
|
%cabal configure --prefix=%{_prefix} --libdir=%{_libdir} --docdir=%{_ghcdocdir} --libsubdir='$compiler/$pkgkey' --datasubdir='$pkgid' --ghc --dynlibdir=%{_ghcdynlibdir} %{!?ghc_without_dynamic:--enable-executable-dynamic} %{?with_tests:--enable-tests} %{?ghc_subpackaging:--user}%{!?ghc_subpackaging:--global} --ghc-options="${CFLAGS:+$(echo ' '$CFLAGS | sed -e 's/ / -optc/g')} ${LDFLAGS:+$(echo ' '$LDFLAGS | sed -e 's/ / -optl/g')}" %{?cabal_configure_options} $cabal_configure_extra_options
|
|
|
|
|
%cabal configure --prefix=%{_prefix} --libdir=%{_libdir} --docdir=%{_ghcdocdir} --libsubdir='$compiler/$pkgkey' --datasubdir='$pkgid' --ghc %{?_ghcdynlibdir:--dynlibdir=%{_ghcdynlibdir}} %{!?ghc_without_dynamic:--enable-executable-dynamic} %{?with_tests:--enable-tests} %{?ghc_subpackaging:--user}%{!?ghc_subpackaging:--global} --ghc-options="${CFLAGS:+$(echo ' '$CFLAGS | sed -e 's/ / -optc/g')} ${LDFLAGS:+$(echo ' '$LDFLAGS | sed -e 's/ / -optl/g')}" %{?cabal_configure_options} $cabal_configure_extra_options
|
|
|
|
|
|
|
|
|
|
# install
|
|
|
|
|
%cabal_install %cabal copy --destdir=%{buildroot} %{?cabal_install_options}
|
|
|
|
@ -91,8 +91,15 @@ rm -f %{basepkg}.files %{basepkg}-devel.files\
|
|
|
|
|
touch %{basepkg}.files %{basepkg}-devel.files\
|
|
|
|
|
echo ${pkgconf} >> %{basepkg}-devel.files\
|
|
|
|
|
if [ -d "%{buildroot}${pkgdir}" ]; then\
|
|
|
|
|
%if %{defined _ghcdynlibdir}\
|
|
|
|
|
echo "%%attr(755,root,root) %{_ghcdynlibdir}/libHS%{pkgnamever}-*ghc%{ghc_version}.so" >> %{basepkg}.files\
|
|
|
|
|
echo "${pkgdir}" >> %{basepkg}-devel.files\
|
|
|
|
|
%else\
|
|
|
|
|
echo "%%dir ${pkgdir}" >> %{basepkg}.files\
|
|
|
|
|
echo "%%attr(755,root,root) ${pkgdir}/libHS*-ghc%{ghc_version}.so" >> %{basepkg}.files\
|
|
|
|
|
find %{buildroot}${pkgdir} -mindepth 1 -type d | sed "s/^/%dir /" >> %{basepkg}-devel.files\
|
|
|
|
|
find %{buildroot}${pkgdir} ! \\( -type d -o -name "libHS*.so" \\) >> %{basepkg}-devel.files\
|
|
|
|
|
%endif\
|
|
|
|
|
fi\
|
|
|
|
|
if [ -d "%{buildroot}%{docdir}" ]; then\
|
|
|
|
|
echo "%{docdir}" >> %{basepkg}-devel.files\
|
|
|
|
|