allow parallel installing ghc9.2-9.2.7
This commit is contained in:
parent
aa1f6bd3d7
commit
80e2008e81
15
ghc.spec
15
ghc.spec
@ -11,8 +11,11 @@
|
|||||||
# build hadrian for production builds:
|
# build hadrian for production builds:
|
||||||
%bcond build_hadrian 1
|
%bcond build_hadrian 1
|
||||||
|
|
||||||
|
# disabled to allow parallel install of ghc9.2-9.2.7 and ghc-9.2.6
|
||||||
|
%if 0
|
||||||
%global ghc_major 9.2
|
%global ghc_major 9.2
|
||||||
%global ghc_obsoletes_name ghc%{ghc_major}
|
%global ghc_obsoletes_name ghc%{ghc_major}
|
||||||
|
%endif
|
||||||
|
|
||||||
# to handle RCs
|
# to handle RCs
|
||||||
%global ghc_release %{version}
|
%global ghc_release %{version}
|
||||||
@ -78,8 +81,10 @@
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%global obsoletes_ghcXY() \
|
%global obsoletes_ghcXY() \
|
||||||
|
%if %{defined ghc_obsoletes_name}\
|
||||||
Obsoletes: %{ghc_obsoletes_name}%{?1:-%1} < %{version}-%{release}\
|
Obsoletes: %{ghc_obsoletes_name}%{?1:-%1} < %{version}-%{release}\
|
||||||
Provides: %{ghc_obsoletes_name}%{?1:-%1} = %{version}-%{release}\
|
Provides: %{ghc_obsoletes_name}%{?1:-%1} = %{version}-%{release}\
|
||||||
|
%endif\
|
||||||
%{nil}
|
%{nil}
|
||||||
|
|
||||||
Name: ghc
|
Name: ghc
|
||||||
@ -88,7 +93,7 @@ Version: 9.2.6
|
|||||||
# - release can only be reset if *all* library versions get bumped simultaneously
|
# - release can only be reset if *all* library versions get bumped simultaneously
|
||||||
# (sometimes after a major release)
|
# (sometimes after a major release)
|
||||||
# - minor release numbers for a branch should be incremented monotonically
|
# - minor release numbers for a branch should be incremented monotonically
|
||||||
Release: 129%{?dist}
|
Release: 130%{?dist}
|
||||||
Summary: Glasgow Haskell Compiler
|
Summary: Glasgow Haskell Compiler
|
||||||
|
|
||||||
License: BSD and HaskellReport
|
License: BSD and HaskellReport
|
||||||
@ -740,6 +745,7 @@ done
|
|||||||
)
|
)
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if %{defined ghc_major}
|
||||||
(
|
(
|
||||||
cd %{buildroot}%{_bindir}
|
cd %{buildroot}%{_bindir}
|
||||||
for i in *; do
|
for i in *; do
|
||||||
@ -752,6 +758,7 @@ for i in *; do
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
)
|
)
|
||||||
|
%endif
|
||||||
|
|
||||||
# bash completion
|
# bash completion
|
||||||
mkdir -p %{buildroot}%{_datadir}/bash-completion/completions/
|
mkdir -p %{buildroot}%{_datadir}/bash-completion/completions/
|
||||||
@ -824,6 +831,7 @@ make test
|
|||||||
%postun base -p /sbin/ldconfig
|
%postun base -p /sbin/ldconfig
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%transfiletriggerin compiler -- %{ghcliblib}/package.conf.d
|
%transfiletriggerin compiler -- %{ghcliblib}/package.conf.d
|
||||||
%ghc_pkg_recache
|
%ghc_pkg_recache
|
||||||
%end
|
%end
|
||||||
@ -866,6 +874,7 @@ env -C %{ghc_html_libraries_dir} ./gen_contents_index
|
|||||||
%{_bindir}/runghc-%{ghc_version}
|
%{_bindir}/runghc-%{ghc_version}
|
||||||
%{_bindir}/runhaskell
|
%{_bindir}/runhaskell
|
||||||
%{_bindir}/runhaskell-%{version}
|
%{_bindir}/runhaskell-%{version}
|
||||||
|
%if %{defined ghc_major}
|
||||||
%{_bindir}/ghc-%{ghc_major}
|
%{_bindir}/ghc-%{ghc_major}
|
||||||
%{_bindir}/ghc-pkg-%{ghc_major}
|
%{_bindir}/ghc-pkg-%{ghc_major}
|
||||||
%{_bindir}/ghci-%{ghc_major}
|
%{_bindir}/ghci-%{ghc_major}
|
||||||
@ -876,6 +885,7 @@ env -C %{ghc_html_libraries_dir} ./gen_contents_index
|
|||||||
%{_bindir}/hpc-%{ghc_major}
|
%{_bindir}/hpc-%{ghc_major}
|
||||||
%{_bindir}/hsc2hs-%{ghc_major}
|
%{_bindir}/hsc2hs-%{ghc_major}
|
||||||
%endif
|
%endif
|
||||||
|
%endif
|
||||||
%dir %{ghclibdir}/bin
|
%dir %{ghclibdir}/bin
|
||||||
%{ghclibdir}/bin/ghc
|
%{ghclibdir}/bin/ghc
|
||||||
%{ghclibdir}/bin/ghc-iserv
|
%{ghclibdir}/bin/ghc-iserv
|
||||||
@ -993,6 +1003,9 @@ env -C %{ghc_html_libraries_dir} ./gen_contents_index
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Mar 13 2023 Jens Petersen <petersen@redhat.com> - 9.2.6-130
|
||||||
|
- allow parallel installing ghc9.2-9.2.7
|
||||||
|
|
||||||
* Fri Feb 17 2023 Jens Petersen <petersen@redhat.com> - 9.2.6-129
|
* Fri Feb 17 2023 Jens Petersen <petersen@redhat.com> - 9.2.6-129
|
||||||
- upstream patch to enable SMP rts for ppc64le
|
- upstream patch to enable SMP rts for ppc64le
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user