diff --git a/ghc-pandoc.spec b/ghc-pandoc.spec index 3ac471e59c7ca0742f6c275a8df7f2455adb8744..318334102b6a83efdabcce5f79d7da46a551544e 100644 --- a/ghc-pandoc.spec +++ b/ghc-pandoc.spec @@ -4,7 +4,7 @@ Name: ghc-%{pkg_name} Version: 3.1.9 -Release: 1 +Release: 2 Summary: Conversion between markup formats License: GPL-2.0-or-later URL: https://hackage.haskell.org/package/%{pkg_name} @@ -214,7 +214,20 @@ This package provides the Haskell %{pkg_name} profiling library. %autosetup -n %{pkg_name}-%{version} %build -%ghc_lib_build +%ghc_fix_doc_perms +%{?!ghc_debuginfo:%undefine _enable_debug_packages} +%cabal_configure %{?with_ghc_prof:-p} %{!?ghc_without_shared:--enable-shared} %{?ghc_without_shared:--disable-shared} %{?pkg_name:--htmldir=%{ghclibdocdir}/%{pkg_name}-%{version}} %{?1:--docdir=%{_ghclicensedir}/ghc-%1${licensedirversion} --htmldir=%{ghclibdocdir}/%1-%2} %{?ghc_subpackaging:--user}%{!?ghc_subpackaging:--global} %{?ghc_with_lib_for_ghci:--enable-library-for-ghci} +until %cabal build %{?ghc_smp_mflags} %{?cabal_build_options} +do + echo "Build failed, retrying..." +done +%if %{with haddock} +%define pkgname %{?1}%{!?1:%{pkg_name}} +%define pkgver %{?2}%{!?2:%{version}} +if [ -n dist/build/libHS%{pkgname}-%{pkgver}*.so ]; then +%cabal haddock --html --hyperlink-source --hoogle %{?cabal_haddock_options} +fi +%endif %install %ghc_lib_install @@ -403,7 +416,11 @@ This package provides the Haskell %{pkg_name} profiling library. %files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files %changelog -* Wed Nov 22 2023 Lin Runze 3.1.3-1 +* Fri Sep 20 2024 Lin Runze 3.1.9-2 +- Enable retrying after build failed + +* Wed Nov 22 2023 Lin Runze 3.1.9-1 - Bump version to 3.1.9 + * Thu Sep 28 2023 Lin Runze 3.1.3-1 - Initial packaging (Version 3.1.3)