From cc41a613742ee27278c373ef1e7fedeebe1982b1 Mon Sep 17 00:00:00 2001 From: Artur Frenszek-Iwicki Date: Thu, 8 Jun 2023 13:36:56 +0200 Subject: [PATCH] Add "Obsoletes:" for upgrades from F37/F38 --- lazarus.spec | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/lazarus.spec b/lazarus.spec index 7cdadea..e210eaf 100644 --- a/lazarus.spec +++ b/lazarus.spec @@ -57,6 +57,9 @@ Requires: %{name}-lcl%{?_isa} = %{version}-%{release} Recommends: %{name}-doc = %{version}-%{release} +# For smooth upgrade from F38 or older. Can be removed in F41. +Obsoletes: lazarus < 2.2.6-2 + ExclusiveArch: %{fpc_arches} %description @@ -85,6 +88,9 @@ Requires: fpc-src Requires: gdb Requires: make +# For smooth upgrade from F38 or older. Can be removed in F41. +Obsoletes: lazarus < 2.2.6-2 + %description ide Lazarus is a cross-platform IDE and component library for Free Pascal. @@ -98,6 +104,9 @@ Requires: binutils Requires: fpc%{?_isa} Requires: glibc-devel%{?_isa} +# For smooth upgrade from F38 or older. Can be removed in F41. +Obsoletes: lazarus < 2.2.6-2 + %description tools Lazarus is a cross-platform IDE and component library for Free Pascal. @@ -108,6 +117,9 @@ This package provides helper programs used for building Lazarus projects. Summary: Lazarus IDE documentation License: %{license_doc} +# For smooth upgrade from F38 or older. Can be removed in F41. +Obsoletes: lazarus < 2.2.6-2 + %description doc Lazarus is a cross-platform IDE and component library for Free Pascal. @@ -119,6 +131,9 @@ Summary: Lazarus Component Library Recommends: %{name}-lcl-nogui%{?_isa} = %{version}-%{release} Recommends: %{name}-lcl-gtk2%{?_isa} = %{version}-%{release} +# For smooth upgrade from F38 or older. Can be removed in F41. +Obsoletes: lazarus < 2.2.6-2 + %description lcl Lazarus is a cross-platform IDE and component library for Free Pascal. @@ -129,6 +144,9 @@ This package contains the common parts of the Lazarus Component Library. Summary: Lazarus Component Library - non-graphical components Requires: %{name}-lcl%{?_isa} = %{version}-%{release} +# For smooth upgrade from F38 or older. Can be removed in F41. +Obsoletes: lazarus < 2.2.6-2 + %description lcl-nogui Lazarus is a cross-platform IDE and component library for Free Pascal. @@ -142,6 +160,9 @@ Requires: %{name}-lcl%{?_isa} = %{version}-%{release} Requires: gtk2-devel%{?_isa} +# For smooth upgrade from F38 or older. Can be removed in F41. +Obsoletes: lazarus < 2.2.6-2 + %description lcl-gtk2 Lazarus is a cross-platform IDE and component library for Free Pascal. @@ -469,6 +490,7 @@ appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{name}.appdat - Move lazbuild and other tools to a separate sub-package - Apart from the default GTK2, build the LCL with GTK3, Qt and Qt5 - Use multiple jobs during the build +- Add Obsoletes: for smooth upgrade from F37/F38 * Wed Mar 08 2023 Artur Frenszek-Iwicki - 2.2.6-1 - Update to v2.2.6