|
|
|
@ -29,7 +29,7 @@ if ! [ -f Setup.hs -o -f Setup.lhs ]; then\
|
|
|
|
|
cp %{_datadir}/ghc-rpm-macros/Setup.hs .\
|
|
|
|
|
fi\
|
|
|
|
|
%cabal --version\
|
|
|
|
|
%cabal configure --prefix=%{_prefix} --libdir=%{_libdir} --docdir=%{_ghcdocdir} --libsubdir='$compiler/$pkgid' --datasubdir='$pkgid' --libexecsubdir='$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
|
|
|
|
|
%cabal configure --prefix=%{_prefix} --libdir=%{_libdir} --docdir=%{_ghcdocdir} --libsubdir='$compiler/$pkgid' --datasubdir='$pkgid' --libexecsubdir='$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')}" --disable-executable-stripping --disable-library-stripping %{?cabal_configure_options} $cabal_configure_extra_options
|
|
|
|
|
|
|
|
|
|
# install
|
|
|
|
|
%cabal_install %cabal copy --destdir=%{buildroot} %{?cabal_install_options}
|
|
|
|
@ -148,18 +148,11 @@ fi\
|
|
|
|
|
%endif\
|
|
|
|
|
%{nil}
|
|
|
|
|
|
|
|
|
|
# ghc_strip_dynlinked
|
|
|
|
|
%ghc_strip_dynlinked\
|
|
|
|
|
%if %{undefined __debug_package}\
|
|
|
|
|
find %{buildroot} -type f -exec sh -c "file {} | grep -q 'dynamically linked'" \\; -exec strip "{}" \\;\
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# install bin package
|
|
|
|
|
%ghc_bin_install()\
|
|
|
|
|
%{!?_fileattrsdir:%global _use_internal_dependency_generator 0}\
|
|
|
|
|
%{!?_fileattrsdir:%global __find_requires %{_rpmconfigdir}/ghc-deps.sh %{buildroot}%{ghclibdir}}\
|
|
|
|
|
%cabal_install\
|
|
|
|
|
%{!?1:%ghc_strip_dynlinked}\
|
|
|
|
|
%{?ghc_subpackaging:%ghc_fix_rpath %{subpkgs}}\
|
|
|
|
|
%{nil}
|
|
|
|
|
|
|
|
|
@ -171,7 +164,6 @@ find %{buildroot} -type f -exec sh -c "file {} | grep -q 'dynamically linked'" \
|
|
|
|
|
%cabal_install\
|
|
|
|
|
%cabal_pkg_conf %{?1} %{?2}\
|
|
|
|
|
%ghc_gen_filelists %{?1} %{?2}\
|
|
|
|
|
%{!?1:%ghc_strip_dynlinked}\
|
|
|
|
|
%{?ghc_subpackaging:%ghc_fix_rpath %{subpkgs}}\
|
|
|
|
|
%{nil}
|
|
|
|
|
|
|
|
|
|