From c8563d2344e22092c2defb44c585ecf1e648afe3429b749262aa37fc746b7d75 Mon Sep 17 00:00:00 2001 From: Christophe Marin Date: Tue, 19 Dec 2023 08:35:30 +0000 Subject: [PATCH] Accepting request 1133364 from home:krop:Appstream - Update appstream build requirement for compatibility with 1.0.0 (boo#1217047) - Remove obsolete version checks OBS-URL: https://build.opensuse.org/request/show/1133364 OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/discover?expand=0&rev=347 --- discover.changes | 7 +++++++ discover.spec | 27 ++++++++------------------- 2 files changed, 15 insertions(+), 19 deletions(-) diff --git a/discover.changes b/discover.changes index be3b984..aa62fcb 100644 --- a/discover.changes +++ b/discover.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Fri Dec 15 08:52:06 UTC 2023 - Christophe Marin + +- Update appstream build requirement for compatibility with 1.0.0 + (boo#1217047) +- Remove obsolete version checks + ------------------------------------------------------------------- Wed Dec 6 11:45:59 UTC 2023 - Fabian Vogt diff --git a/discover.spec b/discover.spec index bf061fa..7c348ea 100644 --- a/discover.spec +++ b/discover.spec @@ -17,9 +17,6 @@ %bcond_without released -# Version in Leap 15.2 is too old -%global have_fwupd (0%{?suse_version} > 1500 || 0%{?sle_version} >= 150300) - Name: discover Version: 5.27.10 Release: 0 @@ -39,7 +36,7 @@ BuildRequires: extra-cmake-modules >= 5.98.0 BuildRequires: flatpak-devel BuildRequires: kf5-filesystem BuildRequires: update-desktop-files -BuildRequires: cmake(AppStreamQt) >= 0.11.1 +BuildRequires: (cmake(AppStreamQt5) >= 1.0.0 or cmake(AppStreamQt) < 1.0.0) BuildRequires: cmake(KF5Archive) BuildRequires: cmake(KF5Attica) BuildRequires: cmake(KF5Config) @@ -74,18 +71,14 @@ BuildRequires: cmake(Qt5WebView) BuildRequires: cmake(Qt5Widgets) BuildRequires: cmake(Qt5Xml) BuildRequires: cmake(packagekitqt5) >= 1.0.1 -%if %{have_fwupd} BuildRequires: pkgconfig(fwupd) >= 1.0.6 -%endif Requires: kdeclarative-components Requires: kirigami2 Requires: kuserfeedback-imports Requires: libqt5-qtquickcontrols2 Recommends: %{name}-backend-packagekit Recommends: %{name}-lang -%if 0%{?suse_version} > 1500 || 0%{?sle_version} >= 150100 Recommends: %{name}-backend-flatpak -%endif # Conflicts with plasma5-pk-updates # Recommends: %%{name}-notifier Recommends: %{name}-backend-fwupd @@ -101,7 +94,7 @@ Group: System/GUI/KDE Requires: %{name} = %{version} # Technically libdiscover and not the backend implements AppStream support, but # it's useless without system package management -Requires: AppStream +%requires_eq AppStream Requires: PackageKit Requires: appstream-provider @@ -144,15 +137,15 @@ user to install them using Discover. %autosetup -p1 %build - %cmake_kf5 -d build - %cmake_build +%cmake_kf5 -d build +%cmake_build %install - %kf5_makeinstall -C build - %suse_update_desktop_file -r org.kde.discover Qt KDE System PackageManager +%kf5_makeinstall -C build +%suse_update_desktop_file -r org.kde.discover Qt KDE System PackageManager - # Even without the snap backend, this is installed... - rm %{buildroot}%{_kf5_applicationsdir}/org.kde.discover.snap.desktop +# Even without the snap backend, this is installed... +rm %{buildroot}%{_kf5_applicationsdir}/org.kde.discover.snap.desktop %find_lang libdiscover %{name}.lang %find_lang plasma-discover %{name}.lang @@ -185,7 +178,6 @@ user to install them using Discover. %{_kf5_sharedir}/libdiscover/categories/packagekit-backend-categories.xml %{_kf5_appstreamdir}/org.kde.discover.packagekit.appdata.xml -%if 0%{?suse_version} > 1500 || 0%{?sle_version} >= 150100 %files backend-flatpak %license LICENSES/* %{_kf5_plugindir}/discover/flatpak-backend.so @@ -193,13 +185,10 @@ user to install them using Discover. %{_kf5_appstreamdir}/org.kde.discover.flatpak.appdata.xml %{_kf5_applicationsdir}/org.kde.discover-flatpak.desktop %{_kf5_iconsdir}/hicolor/*/apps/flatpak-discover.svg -%endif -%if %{have_fwupd} %files backend-fwupd %license LICENSES/* %{_kf5_plugindir}/discover/fwupd-backend.so -%endif %files notifier -f notifier.lang %license LICENSES/*