Projects
Eulaceura:Factory
plasma-discover
_service:obs_scm:plasma-discover.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:plasma-discover.spec of Package plasma-discover
%global base_name discover %global kf5_version 5.73 %global flatpak_version 1.10.2 # no snap in openEuler for now %global snap 1 %global snapd_glib_version 1.39 #fwupd is broken somehow #global fwupd 1 Name: plasma-discover Summary: KDE and Plasma resources management GUI Version: 5.27.11 Release: 1 License: GPLv2 or GPLv3 URL: https://invent.kde.org/plasma/discover %global verdir %(echo %{version} | cut -d. -f1-3) %global revision %(echo %{version} | cut -d. -f3) %if %{revision} >= 50 %global stable unstable %else %global stable stable %endif Source0: http://download.kde.org/%{stable}/plasma/%{verdir}/%{base_name}-%{version}.tar.xz ## override some defaults, namely to enable offline updates Source10: discoverrc ## upstream patches # Backport distro upgrade: https://invent.kde.org/aleasto/discover/-/commits/distro-upgrade-backport/ Patch100: distro-upgrade.patch # Set cache-age hint in the RefreshCache transaction # https://invent.kde.org/plasma/discover/-/merge_requests/640 Patch101: discover-pk-cache-age.patch ## downstream patches # Adjust periodic refresh from 1/24hr to 1/12hr # This ensures that it is checked at least once during the work day. # It is double the time that Fedora repos are set to in DNF (6h). Patch200: discover-pk-refresh-timer.patch # Do not use system appstream cache (#2011322) # Not sure if this is upstreamable yet, or just a hack # DISABLED for appstream-0.15.1+, plasma-discover outputs to console #** (process:378626): WARNING **: 10:18:13.957: Not changing AppStream cache location: No longer supported. # and feature page shows error: "Unable to load applications" -- rdieter 20211229 #Patch201: 0001-PackageKit-do-not-use-system-appstream-cache.patch # Do not distro-upgrade to rawhide # Currently we have no way to distinguish rawhide from the beta releases. # In order to test upgrading to fedora beta releases, such as during Upgrade Test Day, # here we ignore rawhide completely. # This hack should be removed once https://github.com/ximion/appstream/pull/491 lands # and rawhide is marked as 'snapshot' rather than 'development'. Then discover could # handle upgrading to either release type with different toggles. Patch202: distro-upgrade-skip-rawhide.patch ## upstreamable patches BuildRequires: appstream-qt-devel >= 0.11.1 BuildRequires: appstream-devel BuildRequires: flatpak-devel >= %{flatpak_version} BuildRequires: libstemmer-devel BuildRequires: libyaml-devel BuildRequires: desktop-file-utils BuildRequires: libappstream-glib BuildRequires: gettext BuildRequires: libxml2-devel BuildRequires: pkgconfig(libmarkdown) %if 0%{?fwupd} BuildRequires: pkgconfig(fwupd) %endif BuildRequires: extra-cmake-modules >= %{kf5_version} BuildRequires: kf5-attica-devel >= %{kf5_version} BuildRequires: kf5-karchive-devel BuildRequires: kf5-kconfig-devel BuildRequires: kf5-kconfigwidgets-devel BuildRequires: kf5-kcoreaddons-devel BuildRequires: kf5-kcmutils-devel BuildRequires: kf5-kdbusaddons-devel BuildRequires: kf5-kdeclarative-devel BuildRequires: kf5-ki18n-devel BuildRequires: kf5-kiconthemes-devel BuildRequires: kf5-kidletime-devel BuildRequires: kf5-kitemmodels-devel BuildRequires: kf5-kio-devel BuildRequires: kf5-kitemviews-devel BuildRequires: kf5-knewstuff-devel >= %{kf5_version} BuildRequires: kf5-knotifications-devel BuildRequires: kf5-kcrash-devel BuildRequires: kf5-ktextwidgets-devel BuildRequires: kf5-kwallet-devel BuildRequires: kf5-kwidgetsaddons-devel BuildRequires: kf5-plasma-devel BuildRequires: kf5-rpm-macros BuildRequires: kf5-solid-devel BuildRequires: kf5-purpose-devel BuildRequires: cmake(KUserFeedback) BuildRequires: pkgconfig(packagekitqt5) BuildRequires: pkgconfig(phonon4qt5) BuildRequires: pkgconfig(Qt5Concurrent) BuildRequires: pkgconfig(Qt5DBus) >= 5.10.0 BuildRequires: pkgconfig(Qt5Network) BuildRequires: pkgconfig(Qt5Qml) BuildRequires: pkgconfig(Qt5QuickWidgets) BuildRequires: pkgconfig(Qt5Svg) BuildRequires: pkgconfig(Qt5Test) BuildRequires: pkgconfig(Qt5Widgets) %ifarch %{qt5_qtwebengine_arches} BuildRequires: pkgconfig(Qt5WebView) %endif BuildRequires: pkgconfig(Qt5Xml) BuildRequires: pkgconfig(Qt5X11Extras) BuildRequires: rpm-ostree BuildRequires: rpm-ostree-devel BuildRequires: kf5-kirigami2-devel >= 2.2 Requires: kf5-kirigami2%{?_isa} >= 2.2 Requires: %{name}-libs%{?_isa} = %{version}-%{release} Recommends: %{name}-packagekit = %{version}-%{release} Recommends: %{name}-flatpak = %{version}-%{release} Recommends: %{name}-offline-updates = %{version}-%{release} %description KDE and Plasma resources management GUI. %package libs Summary: Runtime libraries for %{name} Requires: qt5-qtquickcontrols2%{?_isa} %description libs %{summary}. %package packagekit Summary: Plasma Discover PackageKit support Requires: %{name} = %{version}-%{release} Requires: PackageKit Requires: PackageKit-Qt5 >= 1.1.1-2 %description packagekit %{summary}. %package notifier Summary: Plasma Discover Update Notifier Obsoletes: plasma-discover-updater < 5.6.95 Provides: plasma-discover-updater = %{version}-%{release} Requires: %{name} = %{version}-%{release} %description notifier %{summary}. %package flatpak Summary: Plasma Discover flatpak support Requires: %{name} = %{version}-%{release} Requires: %{name}-libs = %{version}-%{release} Requires: flatpak >= %{flatpak_version} Supplements: (%{name} and flatpak) %description flatpak %{summary}. %if 0%{?snap} %package snap Summary: Plasma Discover snap support BuildRequires: snapd-qt-devel >= %{snapd_glib_version} Requires: %{name} = %{version}-%{release} Requires: %{name}-libs = %{version}-%{release} Requires: snapd-qt%{?_isa} >= %{snapd_glib_version} Requires: snapd Supplements: (%{name} and snapd) %description snap %{summary}. %endif %package offline-updates Summary: Plasma Discover Offline updates enablement Requires: %{name} = %{version}-%{release} %description offline-updates Enable Offline Updates feature by default in %{name}. %package rpm-ostree Summary: Plasma Discover backend for rpm-ostree support Requires: %{name} = %{version}-%{release} Supplements: ((%{name} and rpm-ostree) unless dnf) %description rpm-ostree Plasma Discover backend for rpm-ostree support in %{name}. %prep %autosetup -n %{base_name}-%{version} -p1 %build mkdir %{_target_platform} pushd %{_target_platform} %{cmake_kf5} .. \ -DBUILD_RpmOstreeBackend:BOOL=ON popd %make_build -C %{_target_platform} %install make install/fast DESTDIR=%{buildroot} -C %{_target_platform} install -m644 -p -D %{SOURCE10} %{buildroot}%{_kf5_sysconfdir}/xdg/discoverrc %if !0%{?snap} rm -fv %{buildroot}%{_datadir}/applications/org.kde.discover.snap.urlhandler.desktop %endif %find_lang libdiscover %find_lang kcm_updates %find_lang plasma-discover --with-html %find_lang plasma-discover-notifier cat kcm_updates.lang plasma-discover.lang | sort | uniq -u > discover.lang %check appstream-util validate-relax --nonet %{buildroot}%{_kf5_metainfodir}/org.kde.discover.appdata.xml ||: appstream-util validate-relax --nonet %{buildroot}%{_kf5_metainfodir}/org.kde.discover.flatpak.appdata.xml ||: appstream-util validate-relax --nonet %{buildroot}%{_kf5_metainfodir}/org.kde.discover.packagekit.appdata.xml ||: desktop-file-validate %{buildroot}%{_datadir}/applications/org.kde.discover.desktop %files -f discover.lang %{_bindir}/plasma-discover %{_bindir}/plasma-discover-update %{_kf5_metainfodir}/org.kde.discover.appdata.xml %{_datadir}/applications/org.kde.discover.desktop %{_datadir}/applications/org.kde.discover.urlhandler.desktop %{_datadir}/icons/hicolor/*/apps/plasmadiscover.* %{_datadir}/icons/hicolor/*/apps/flatpak-discover.* %{_datadir}/kxmlgui5/plasmadiscover/ %if 0%{?snap} %{_libexecdir}/discover/ %endif %{_kf5_datadir}/kpackage/kcms/kcm_updates/ %{_kf5_datadir}/applications/kcm_updates.desktop %files notifier -f plasma-discover-notifier.lang %{_datadir}/knotifications5/discoverabstractnotifier.notifyrc %{_sysconfdir}/xdg/autostart/org.kde.discover.notifier.desktop %{_datadir}/applications/org.kde.discover.notifier.desktop %{_libexecdir}/DiscoverNotifier %ldconfig_scriptlets libs %files libs -f libdiscover.lang %license LICENSES/*.txt %{_kf5_datadir}/qlogging-categories5/discover.categories %dir %{_libdir}/plasma-discover/ %{_libdir}/plasma-discover/libDiscoverNotifiers.so %{_libdir}/plasma-discover/libDiscoverCommon.so %dir %{_kf5_qtplugindir}/discover %dir %{_kf5_qtplugindir}/discover-notifier/ %if 0%{?fwupd} %{_kf5_qtplugindir}/discover/fwupd-backend.so %endif %{_kf5_qtplugindir}/discover/kns-backend.so %dir %{_datadir}/libdiscover %dir %{_datadir}/libdiscover/categories %{_qt5_plugindir}/plasma/kcms/systemsettings/kcm_updates.so %files packagekit %{_kf5_metainfodir}/org.kde.discover.packagekit.appdata.xml %{_kf5_qtplugindir}/discover-notifier/DiscoverPackageKitNotifier.so %{_kf5_qtplugindir}/discover/packagekit-backend.so %{_datadir}/libdiscover/categories/packagekit-backend-categories.xml %files flatpak %{_datadir}/applications/org.kde.discover-flatpak.desktop %{_kf5_metainfodir}/org.kde.discover.flatpak.appdata.xml %{_kf5_qtplugindir}/discover-notifier/FlatpakNotifier.so %{_kf5_qtplugindir}/discover/flatpak-backend.so %{_datadir}/libdiscover/categories/flatpak-backend-categories.xml %if 0%{?snap} %files snap %dir %{_libexecdir}/discover/ %{_libexecdir}/discover/SnapMacaroonDialog %{_kf5_libexecdir}/kauth/libsnap_helper %{_kf5_metainfodir}/org.kde.discover.snap.appdata.xml %{_kf5_qtplugindir}/discover/snap-backend.so %{_datadir}/dbus-1/system.d/org.kde.discover.libsnapclient.conf %{_datadir}/dbus-1/system-services/org.kde.discover.libsnapclient.service %{_datadir}/polkit-1/actions/org.kde.discover.libsnapclient.policy %endif %if 0%{?snap} %{_kf5_datadir}/applications/org.kde.discover.snap.desktop %else %exclude %{_kf5_datadir}/applications/org.kde.discover.snap.desktop %endif %files offline-updates %{_kf5_sysconfdir}/xdg/discoverrc %files rpm-ostree %{_datadir}/libdiscover/categories/rpm-ostree-backend-categories.xml %{_kf5_qtplugindir}/discover/rpm-ostree-backend.so %{_kf5_qtplugindir}/discover-notifier/rpm-ostree-notifier.so %changelog * Thu Mar 14 2024 peijiankang <peijiankang@kylinos.cn> - 5.27.11-1 - Update package to version 5.27.11 * Mon Jan 08 2024 zhangxianting <zhangxianting@unintech.com> - 5.27.10-1 - Upgrade to 5.27.10 * Wed Oct 25 2023 misaka00251 <liuxin@iscas.ac.cn> - 5.27.6-1 - Upgrade to 5.27.6 * Tue Jul 19 2022 misaka00251 <misaka00251@misakanet.cn> - 5.25.5-1 - Init package
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2