%global base_name discover %global kf5_version 5.34 %global flatpak_version 0.8.0 Name: plasma-discover Summary: KDE and Plasma resources management GUI Version: 5.12.8 Release: 2%{?dist} # KDE e.V. may determine that future GPL versions are accepted License: GPLv2 or GPLv3 URL: https://cgit.kde.org/?p=%{base_name}.git %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 Patch0: flatpak_fixes.patch Patch1: apppkgkit_fixes.patch Patch2: pkgkit_fixes.patch ## upstream patches (in lookaside cache) # git format-patch v%{version} 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: 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-kdbusaddons-devel BuildRequires: kf5-kdeclarative-devel BuildRequires: kf5-ki18n-devel BuildRequires: kf5-kiconthemes-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: pkgconfig(packagekitqt5) BuildRequires: pkgconfig(phonon4qt5) BuildRequires: pkgconfig(Qt5Concurrent) BuildRequires: pkgconfig(Qt5DBus) BuildRequires: pkgconfig(Qt5Network) BuildRequires: pkgconfig(Qt5Qml) BuildRequires: pkgconfig(Qt5QuickWidgets) BuildRequires: pkgconfig(Qt5Svg) BuildRequires: pkgconfig(Qt5Test) BuildRequires: pkgconfig(Qt5Widgets) BuildRequires: pkgconfig(Qt5Xml) BuildRequires: kf5-kirigami2-devel >= 2.2 Requires: kf5-kirigami2%{?_isa} >= 2.2 Requires: %{name}-libs%{?_isa} = %{version}-%{release} #Requires: %{name}-flatpak = %{version}-%{release} %description KDE and Plasma resources management GUI. %package libs Summary: Runtime libraries for %{name} Requires: PackageKit Requires: qt5-qtquickcontrols2%{?_isa} %description libs %{summary}. %package notifier Summary: Plasma Discover Update Notifier Obsoletes: plasma-discover-updater < 5.6.95 Provides: plasma-discover-updater = %{version}-%{release} Requires: %{name}-libs%{?_isa} = %{version}-%{release} %description notifier %{summary}. %package flatpak Summary: Plasma Discover flatpak support Requires: %{name} = %{version}-%{release} ## use Supplements as alternative to Recommends in main pkg #Supplements: (plasma-discover and flatpak) Requires: flatpak%{?_isa} >= %{flatpak_version} Requires: flatpak-libs%{?_isa} >= %{flatpak_version} %description flatpak %{summary}. %prep %autosetup -p1 -n discover-%{version} # disable update notifier applet by default, since fedora uses plasma-pk-updates sed -i \ -e 's|X-KDE-PluginInfo-EnabledByDefault=.*|X-KDE-PluginInfo-EnabledByDefault=false|g' \ notifier/plasmoid/metadata.desktop %build %define _kf5_metainfodir %{_datadir}/appdata mkdir %{_target_platform} pushd %{_target_platform} %{cmake_kf5} .. popd %make_build -C %{_target_platform} %install make install/fast DESTDIR=%{buildroot} -C %{_target_platform} %find_lang libdiscover %find_lang plasma-discover --with-html %find_lang plasma-discover-notifier %find_lang plasma_applet_org.kde.discovernotifier cat plasma_applet_org.kde.discovernotifier.lang >> plasma-discover-notifier.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 ## discovernotifier currently fails, fixme ## ? tag-invalid : stock icon is not valid [update-none] appstream-util validate-relax --nonet %{buildroot}%{_kf5_metainfodir}/org.kde.discovernotifier.appdata.xml ||: desktop-file-validate %{buildroot}%{_datadir}/applications/org.kde.discover.desktop %files -f plasma-discover.lang %{_bindir}/plasma-discover %{_kf5_metainfodir}/org.kde.discover.appdata.xml %{_kf5_metainfodir}/org.kde.discover.packagekit.appdata.xml %{_datadir}/applications/org.kde.discover.desktop %{_datadir}/applications/org.kde.discover.urlhandler.desktop %{_datadir}/icons/hicolor/*/apps/plasmadiscover.* %{_datadir}/discover/ %{_datadir}/kxmlgui5/plasmadiscover/ %{_kf5_libexecdir}/discover/ %files notifier -f plasma-discover-notifier.lang %{_datadir}/plasma/plasmoids/org.kde.discovernotifier/ %{_datadir}/kservices5/plasma-applet-org.kde.discovernotifier.desktop %{_qt5_prefix}/qml/org/kde/discovernotifier/ %{_datadir}/knotifications5/discoverabstractnotifier.notifyrc %{_kf5_metainfodir}/org.kde.discovernotifier.appdata.xml # %%ldconfig_scriptlets libs %post libs -p /sbin/ldconfig %postun libs -p /sbin/ldconfig %files libs -f libdiscover.lang %license COPYING COPYING.LIB %{_kf5_sysconfdir}/xdg/discover_ktexteditor_codesnippets_core.knsrc %dir %{_libdir}/plasma-discover/ %{_libdir}/plasma-discover/libDiscoverNotifiers.so %{_libdir}/plasma-discover/libDiscoverCommon.so %dir %{_kf5_qtplugindir}/discover-notifier/ %{_kf5_qtplugindir}/discover-notifier/DiscoverPackageKitNotifier.so %{_datadir}/libdiscover/ %{_kf5_qtplugindir}/discover/ %files flatpak %{_datadir}/applications/org.kde.discover-flatpak.desktop %{_kf5_metainfodir}/org.kde.discover.flatpak.appdata.xml %{_kf5_qtplugindir}/discover-notifier/FlatpakNotifier.so %changelog * Fri Nov 09 2018 Rex Dieter - 5.12.7-1 - 5.12.7 * Thu Jun 28 2018 Rex Dieter - 5.12.6-1 - 5.12.6 * Fri Jun 01 2018 Rex Dieter - 5.12.5.1-3 - (branch) pull in upstream (5.12 branch) fixes * Sun May 20 2018 Rex Dieter - 5.12.5.1-2 - pull in upstream fix * Thu May 17 2018 Rex Dieter - 5.12.5.1-1 - 5.12.5.1 - +appdata validation * Wed May 16 2018 Rex Dieter - 5.12.5-2 - pull in upstream fixes * Tue May 01 2018 Rex Dieter - 5.12.5-1 - 5.12.5 * Tue May 01 2018 Rex Dieter - 5.12.4-2 - cleanup * Tue Mar 27 2018 Rex Dieter - 5.12.4-1 - 5.12.4 * Tue Mar 06 2018 Rex Dieter - 5.12.3-1 - 5.12.3 * Wed Feb 21 2018 Jan Grulich - 5.12.2-1 - 5.12.2 * Tue Feb 13 2018 Jan Grulich - 5.12.1-1 - 5.12.1 * Fri Feb 09 2018 Fedora Release Engineering - 5.12.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Fri Feb 02 2018 Jan Grulich - 5.12.0-1 - 5.12.0 * Thu Jan 18 2018 Igor Gnatenko - 5.11.95-3 - Remove obsolete scriptlets * Tue Jan 16 2018 Rex Dieter - 5.11.95-2 - -flatpak subpkg - drop -muon references (Obsoletes mostly) * Mon Jan 15 2018 Jan Grulich - 5.11.95-1 - 5.11.95 * Tue Jan 02 2018 Rex Dieter - 5.11.5-1 - 5.11.5 * Thu Nov 30 2017 Martin Kyral - 5.11.4-1 - 5.11.4 * Wed Nov 08 2017 Rex Dieter - 5.11.3-1 - 5.11.3 * Wed Oct 25 2017 Martin Kyral - 5.11.2-1 - 5.11.2 * Tue Oct 17 2017 Rex Dieter - 5.11.1-1 - 5.11.1 * Wed Oct 11 2017 Martin Kyral - 5.11.0-1 - 5.11.0 * Thu Aug 24 2017 Rex Dieter - 5.10.5-1 - 5.10.5 * Thu Aug 03 2017 Fedora Release Engineering - 5.10.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 5.10.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Jul 22 2017 Rex Dieter - 5.10.4-1 - 5.10.4 * Fri Jul 07 2017 Rex Dieter - 5.10.3-2 - make kf5-kirigami2 dep versioned - pull in upstream fixes * Tue Jun 27 2017 Rex Dieter - 5.10.3-1 - 5.10.3 * Thu Jun 15 2017 Rex Dieter - 5.10.2-1 - 5.10.2 * Thu Jun 15 2017 Jan Grulich - 5.10.1-2 - Require flatpak to be present for flatpak backend * Tue Jun 06 2017 Rex Dieter - 5.10.1-1 - 5.10.1 * Wed May 31 2017 Jan Grulich - 5.10.0-1 - 5.10.0 * Wed Apr 26 2017 Rex Dieter - 5.9.5-1 - 5.9.5 * Thu Mar 23 2017 Rex Dieter - 5.9.4-1 - 5.9.4 * Sat Mar 04 2017 Rex Dieter - 5.9.3-2 - rebuild * Wed Mar 01 2017 Jan Grulich - 5.9.3-1 - 5.9.3 * Tue Feb 21 2017 Rex Dieter - 5.8.6-1 - 5.8.6 * Sat Feb 11 2017 Fedora Release Engineering - 5.8.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Wed Dec 28 2016 Rex Dieter - 5.8.5-1 - 5.8.5 * Wed Nov 23 2016 Rex Dieter - 5.8.4-2 - pull in upstream fixes * Tue Nov 22 2016 Rex Dieter - 5.8.4-1 - 5.8.4 * Mon Nov 14 2016 Rex Dieter - 5.8.3-2 - pull in upstream fixes (appstream FTBFS #1392571) * Tue Nov 01 2016 Rex Dieter - 5.8.3-1 - 5.8.3 * Tue Oct 18 2016 Rex Dieter - 5.8.2-1 - 5.8.2 * Tue Oct 11 2016 Rex Dieter - 5.8.1-1 - 5.8.1 * Sat Oct 01 2016 Rex Dieter - 5.8.0-2 - bump appstream dep * Thu Sep 29 2016 Rex Dieter - 5.8.0-1 - 5.8.0 * Fri Sep 23 2016 Rex Dieter - 5.7.95-2 - (Build)Requires: kf5-kirigami * Thu Sep 22 2016 Rex Dieter - 5.7.95-1 - 5.7.95 * Sat Sep 17 2016 Rex Dieter - 5.7.5-2 - rebuild (appstream) * Tue Sep 13 2016 Rex Dieter - 5.7.5-1 - 5.7.5 * Tue Aug 23 2016 Rex Dieter - 5.7.4-1 - 5.7.4 * Tue Aug 02 2016 Rex Dieter - 5.7.3-1 - 5.7.3 * Mon Jul 25 2016 Helio Chissini de Castro - 5.7.2-2 - Add missing Requires for qtquick controls * Tue Jul 19 2016 Rex Dieter - 5.7.2-1 - 5.7.2 * Tue Jul 12 2016 Rex Dieter - 5.7.1-1 - 5.7.1 * Thu Jun 30 2016 Rex Dieter - 5.7.0-1 - 5.7.0 * Sat Jun 25 2016 Rex Dieter - 5.6.95-1 - 5.6.95, -updater => -notifier * Tue Jun 14 2016 Rex Dieter - 5.6.5-1 - 5.6.5 * Sat May 14 2016 Rex Dieter - 5.6.4-1 - 5.6.4 * Mon Apr 18 2016 Rex Dieter - 5.6.2-2 - bindir/muon-discover symlink * Wed Apr 13 2016 Rex Dieter - 5.6.2-1 - 5.6.2 * Sat Apr 09 2016 Rex Dieter - 5.6.1-2 - License: GPLv2 or GPLv3 (KDE e.V) - remove some commented/unused items from .spec - expand comment why updater applet is disabled by default * Fri Apr 08 2016 Rex Dieter - 5.6.1-1 - 5.6.1 * Sat Mar 05 2016 Daniel Vrátil - 5.5.95-1 - Plasma 5.5.95 * Tue Mar 01 2016 Daniel Vrátil - 5.5.5-1 - Plasma 5.5.5 * Thu Feb 04 2016 Fedora Release Engineering - 5.5.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jan 27 2016 Daniel Vrátil - 5.5.4-1 - Plasma 5.5.4 * Thu Jan 07 2016 Daniel Vrátil - 5.5.3-1 - Plasma 5.5.3 * Thu Dec 31 2015 Rex Dieter - 5.5.2-1 - 5.5.2 * Tue Dec 29 2015 Rex Dieter - 5.5.1-2 - update description, summary, url - -updater: disable updater plasmoid by default * Fri Dec 18 2015 Daniel Vrátil - 5.5.1-1 - Plasma 5.5.1 * Sun Dec 13 2015 Rex Dieter 5.5.0-2 - rebuild (appstream) * Thu Dec 03 2015 Daniel Vrátil - 5.5.0-1 - Plasma 5.5.0 * Wed Nov 25 2015 Daniel Vrátil - 5.4.95-1 - Plasma 5.4.95 * Thu Nov 05 2015 Daniel Vrátil - 5.4.3-1 - Plasma 5.4.3 * Tue Nov 03 2015 Rex Dieter 5.4.2-5 - more upstream fixes * Thu Oct 29 2015 Rex Dieter 5.4.2-4 - rebuild (PackageKit-Qt) * Thu Oct 29 2015 Rex Dieter 5.4.2-3 - -libs: (explicitly) Requires: PackageKit * Wed Oct 28 2015 Rex Dieter 5.4.2-2 - backport fix package removal (kde#354415) * Fri Oct 02 2015 Rex Dieter - 5.4.2-1 - 5.4.2 * Tue Sep 29 2015 Rex Dieter 5.4.1-2 - pull in upstream fixes (notably discover .desktop rename) * Wed Sep 09 2015 Rex Dieter - 5.4.1-1 - 5.4.1 * Sat Jun 27 2015 Rex Dieter 5.3.2-1 - 5.3.2 * Sat Jun 27 2015 Rex Dieter 5.3.1-5 - rebuild (appstream) * Sat Jun 27 2015 Rex Dieter 5.3.1-4 - rebuild (appstream) * Wed Jun 17 2015 Rex Dieter 5.3.1-3 - BR: kf5-kiconthemes-devel kf5-kio-devel kf5-kitemviews-devel * Wed Jun 17 2015 Fedora Release Engineering - 5.3.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sun May 31 2015 Daniel Vrátil 5.3.1-1 - Plasma 5.3.1 * Sun May 03 2015 Rex Dieter 5.3.0-1 - 5.3.0 * Mon Apr 20 2015 Rex Dieter 5.2.2-2 - -discover, -updater, -libs subpkgs (w/ main metapackage) * Mon Apr 20 2015 Rex Dieter 5.2.2-1 - 5.2.2, %%license COPYING * Tue Mar 17 2015 Rex Dieter 5.2.1-3 - fix .desktop validation errors * Mon Mar 16 2015 Rex Dieter 5.2.1-2 - cleanup for review * Mon Mar 16 2015 Elia Devito 5.2.1-1 - Initial SPEC file