introduce %ghc_obsoletes_name so that ghc-* obsoletes ghc9.2-*
This commit is contained in:
parent
04d947cd74
commit
0c150de12d
8
ghc.spec
8
ghc.spec
@ -12,6 +12,7 @@
|
|||||||
%bcond build_hadrian 1
|
%bcond build_hadrian 1
|
||||||
|
|
||||||
%global ghc_major 9.2
|
%global ghc_major 9.2
|
||||||
|
%global ghc_obsoletes_name ghc%{ghc_major}
|
||||||
|
|
||||||
# to handle RCs
|
# to handle RCs
|
||||||
%global ghc_release %{version}
|
%global ghc_release %{version}
|
||||||
@ -76,8 +77,8 @@
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%global obsoletes_ghcXY() \
|
%global obsoletes_ghcXY() \
|
||||||
Obsoletes: ghc%{ghc_major}%{?1:-%1} < %{version}-%{release}\
|
Obsoletes: %{ghc_obsoletes_name}%{?1:-%1} < %{version}-%{release}\
|
||||||
Provides: ghc%{ghc_major}%{?1:-%1} = %{version}-%{release}\
|
Provides: %{ghc_obsoletes_name}%{?1:-%1} = %{version}-%{release}\
|
||||||
%{nil}
|
%{nil}
|
||||||
|
|
||||||
Name: ghc
|
Name: ghc
|
||||||
@ -149,7 +150,7 @@ BuildRequires: ghc-compiler > 8.10
|
|||||||
%if %{with abicheck}
|
%if %{with abicheck}
|
||||||
BuildRequires: %{name}
|
BuildRequires: %{name}
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: ghc-rpm-macros-extra
|
BuildRequires: ghc-rpm-macros-extra >= 2.5.0
|
||||||
BuildRequires: ghc-binary-devel
|
BuildRequires: ghc-binary-devel
|
||||||
BuildRequires: ghc-bytestring-devel
|
BuildRequires: ghc-bytestring-devel
|
||||||
BuildRequires: ghc-containers-devel
|
BuildRequires: ghc-containers-devel
|
||||||
@ -978,6 +979,7 @@ env -C %{ghc_html_libraries_dir} ./gen_contents_index
|
|||||||
%changelog
|
%changelog
|
||||||
* Mon Jan 30 2023 Jens Petersen <petersen@redhat.com> - 9.2.5-125
|
* Mon Jan 30 2023 Jens Petersen <petersen@redhat.com> - 9.2.5-125
|
||||||
- rebase to ghc-9.2.5 from ghc9.2
|
- rebase to ghc-9.2.5 from ghc9.2
|
||||||
|
- fully Obsoletes ghc9.2*
|
||||||
|
|
||||||
* Sun Jan 15 2023 Jens Petersen <petersen@redhat.com> - 9.0.2-124
|
* Sun Jan 15 2023 Jens Petersen <petersen@redhat.com> - 9.0.2-124
|
||||||
- rebase to 9.0.2 from ghc9.0
|
- rebase to 9.0.2 from ghc9.0
|
||||||
|
Loading…
Reference in New Issue
Block a user