2016-02-05 21:49:37 +01:00
|
|
|
#
|
|
|
|
# spec file for package discover
|
|
|
|
#
|
2018-01-02 21:37:32 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2016-02-05 21:49:37 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-10-16 21:53:06 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-02-05 21:49:37 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2016-03-06 19:06:50 +01:00
|
|
|
%bcond_without lang
|
2016-02-05 21:49:37 +01:00
|
|
|
Name: discover
|
2018-10-23 19:27:36 +02:00
|
|
|
Version: 5.14.2
|
2016-02-05 21:49:37 +01:00
|
|
|
Release: 0
|
2018-10-09 10:44:14 +02:00
|
|
|
Summary: Software store for the KDE Plasma desktop
|
2018-06-19 23:42:07 +02:00
|
|
|
License: GPL-2.0-only AND GPL-3.0-only AND GPL-3.0-or-later
|
2016-02-05 21:49:37 +01:00
|
|
|
Group: System/GUI/KDE
|
|
|
|
Url: https://quickgit.kde.org/?p=discover.git
|
2018-10-23 19:27:36 +02:00
|
|
|
Source: https://download.kde.org/stable/plasma/%{version}/discover-%{version}.tar.xz
|
2018-09-19 06:47:22 +02:00
|
|
|
%if %{with lang}
|
2018-10-23 19:27:36 +02:00
|
|
|
Source1: https://download.kde.org/stable/plasma/%{version}/discover-%{version}.tar.xz.sig
|
2018-09-19 06:47:22 +02:00
|
|
|
Source2: plasma.keyring
|
|
|
|
%endif
|
2018-03-23 21:42:18 +01:00
|
|
|
# PATCH-FIX-OPENSUSE
|
|
|
|
Patch1: 0001-Warning-for-FlatHub.patch
|
2017-09-15 05:22:12 +02:00
|
|
|
%if 0%{?suse_version} < 1330
|
|
|
|
# It does not build with the default compiler (GCC 4.8) on Leap 42.x
|
2018-01-24 11:43:49 +01:00
|
|
|
%if 0%{?sle_version} < 120300
|
2017-09-15 05:22:12 +02:00
|
|
|
BuildRequires: gcc6-c++
|
2018-01-24 11:43:49 +01:00
|
|
|
%else
|
|
|
|
BuildRequires: gcc7-c++
|
|
|
|
%endif
|
2017-09-15 05:22:12 +02:00
|
|
|
%endif
|
2017-02-15 16:40:12 +01:00
|
|
|
BuildRequires: PackageKit-Qt5-devel
|
2016-02-05 21:49:37 +01:00
|
|
|
BuildRequires: cmake >= 2.8.12
|
2016-03-05 20:05:58 +01:00
|
|
|
BuildRequires: extra-cmake-modules
|
2017-09-15 05:22:12 +02:00
|
|
|
BuildRequires: flatpak-devel
|
2016-02-05 21:49:37 +01:00
|
|
|
BuildRequires: kf5-filesystem
|
2017-01-14 02:08:55 +01:00
|
|
|
BuildRequires: kirigami2-devel
|
2016-02-05 21:49:37 +01:00
|
|
|
BuildRequires: update-desktop-files
|
2017-09-15 05:22:12 +02:00
|
|
|
BuildRequires: cmake(AppStreamQt) >= 0.11.1
|
2016-03-29 23:26:37 +02:00
|
|
|
BuildRequires: cmake(KF5Archive)
|
2016-03-05 20:05:58 +01:00
|
|
|
BuildRequires: cmake(KF5Attica)
|
|
|
|
BuildRequires: cmake(KF5Config)
|
|
|
|
BuildRequires: cmake(KF5CoreAddons)
|
2016-06-16 17:48:59 +02:00
|
|
|
BuildRequires: cmake(KF5Crash)
|
2016-03-05 20:05:58 +01:00
|
|
|
BuildRequires: cmake(KF5DBusAddons)
|
|
|
|
BuildRequires: cmake(KF5Declarative)
|
|
|
|
BuildRequires: cmake(KF5I18n)
|
2017-01-14 02:08:55 +01:00
|
|
|
BuildRequires: cmake(KF5ItemModels)
|
2016-03-06 13:59:59 +01:00
|
|
|
BuildRequires: cmake(KF5KIO)
|
2016-03-05 20:05:58 +01:00
|
|
|
BuildRequires: cmake(KF5NewStuff)
|
2016-03-06 13:59:59 +01:00
|
|
|
BuildRequires: cmake(KF5Notifications)
|
2016-03-05 20:05:58 +01:00
|
|
|
BuildRequires: cmake(KF5Plasma)
|
|
|
|
BuildRequires: cmake(KF5TextWidgets)
|
2017-08-07 15:38:41 +02:00
|
|
|
BuildRequires: cmake(KF5WindowSystem)
|
2016-03-05 20:05:58 +01:00
|
|
|
BuildRequires: cmake(Qca-qt5)
|
|
|
|
BuildRequires: cmake(Qt5Concurrent)
|
|
|
|
BuildRequires: cmake(Qt5DBus)
|
|
|
|
BuildRequires: cmake(Qt5Network)
|
2016-10-19 11:19:29 +02:00
|
|
|
BuildRequires: cmake(Qt5Qml)
|
2016-03-05 20:05:58 +01:00
|
|
|
BuildRequires: cmake(Qt5Quick)
|
|
|
|
BuildRequires: cmake(Qt5Test)
|
|
|
|
BuildRequires: cmake(Qt5Widgets)
|
|
|
|
BuildRequires: cmake(Qt5Xml)
|
2018-09-15 17:03:53 +02:00
|
|
|
%if 0%{?suse_version} >= 1500
|
2018-09-15 14:29:37 +02:00
|
|
|
BuildRequires: pkgconfig(fwupd) >= 1.0.6
|
2018-09-15 17:03:53 +02:00
|
|
|
%endif
|
2017-01-14 02:08:55 +01:00
|
|
|
Requires: kirigami2
|
|
|
|
Requires: libqt5-qtquickcontrols2
|
2016-03-10 20:04:43 +01:00
|
|
|
Recommends: %{name}-lang
|
2018-10-09 08:18:19 +02:00
|
|
|
Recommends: %{name}-backend-packagekit
|
|
|
|
Recommends: %{name}-backend-flatpak
|
|
|
|
Recommends: %{name}-backend-fwupd
|
2016-02-05 21:49:37 +01:00
|
|
|
|
|
|
|
%description
|
2018-10-09 10:44:14 +02:00
|
|
|
Discover is a graphical software manager for the KDE Plasma desktop. It helps users to find software they might want easily and quickly.
|
|
|
|
|
|
|
|
By allowing to navigate a software library by search, categories, top lists along with detailed application information including screenshots and reviews, users can more quickly find applications that suit their needs.
|
2016-02-05 21:49:37 +01:00
|
|
|
|
2018-10-09 08:18:19 +02:00
|
|
|
%package backend-packagekit
|
|
|
|
Summary: PackageKit Backend for Discover
|
|
|
|
Group: System/GUI/KDE
|
|
|
|
Requires: %{name} = %{version}
|
2018-10-09 09:51:31 +02:00
|
|
|
# Technically libdiscover and not the backend implements AppStream support, but
|
|
|
|
# it's useless without system package management
|
|
|
|
Requires: AppStream
|
|
|
|
Requires: PackageKit
|
|
|
|
%if 0%{?suse_version} > 1320 || 0%{?sle_version} >= 120300
|
|
|
|
Requires: appstream-provider
|
|
|
|
%else
|
|
|
|
Requires: libzypp-plugin-appdata
|
|
|
|
%endif
|
2018-10-09 08:18:19 +02:00
|
|
|
|
|
|
|
%description backend-packagekit
|
|
|
|
A plugin for Discover to support management of system packages and repositories
|
|
|
|
using PackageKit.
|
|
|
|
|
|
|
|
%package backend-flatpak
|
|
|
|
Summary: Flatpak Backend for Discover
|
|
|
|
Group: System/GUI/KDE
|
|
|
|
Requires: %{name} = %{version}
|
2018-10-09 09:51:31 +02:00
|
|
|
Requires: flatpak
|
2018-10-09 08:18:19 +02:00
|
|
|
|
|
|
|
%description backend-flatpak
|
|
|
|
A plugin for Discover to support installation and management of Flatpak
|
|
|
|
applications and repositories.
|
|
|
|
|
|
|
|
%package backend-fwupd
|
|
|
|
Summary: fwupd Backend for Discover
|
|
|
|
Group: System/GUI/KDE
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
%description backend-fwupd
|
|
|
|
A plugin for Discover to support updates of system firmware using fwupd.
|
|
|
|
|
2016-02-05 21:49:37 +01:00
|
|
|
%package plasmoid
|
|
|
|
Summary: Update notification plasmoid for KDE Software Manager
|
2016-03-05 20:05:58 +01:00
|
|
|
Group: System/GUI/KDE
|
2016-02-05 21:49:37 +01:00
|
|
|
Conflicts: plasma5-pk-updates
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
%description plasmoid
|
2018-10-09 08:18:19 +02:00
|
|
|
This is a plasmoid to notify the user that updates are available and allows the
|
|
|
|
user to install them using Discover.
|
2016-02-05 21:49:37 +01:00
|
|
|
|
2016-02-05 22:31:35 +01:00
|
|
|
%lang_package
|
|
|
|
|
2016-02-05 21:49:37 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2018-03-23 21:42:18 +01:00
|
|
|
%autopatch -p1
|
2016-02-05 21:49:37 +01:00
|
|
|
|
|
|
|
%build
|
2017-09-15 05:22:12 +02:00
|
|
|
%if 0%{?suse_version} < 1330
|
|
|
|
# It does not build with the default compiler (GCC 4.8) on Leap 42.x
|
2018-01-24 11:43:49 +01:00
|
|
|
%if 0%{?sle_version} < 120300
|
2017-09-15 05:22:12 +02:00
|
|
|
export CC=gcc-6
|
|
|
|
export CXX=g++-6
|
2018-01-24 11:43:49 +01:00
|
|
|
%else
|
|
|
|
export CC=gcc-7
|
|
|
|
export CXX=g++-7
|
|
|
|
%endif
|
2017-09-15 05:22:12 +02:00
|
|
|
%endif
|
2018-05-21 11:07:06 +02:00
|
|
|
%cmake_kf5 -d build
|
2016-02-05 21:49:37 +01:00
|
|
|
%make_jobs
|
|
|
|
|
|
|
|
%install
|
|
|
|
%kf5_makeinstall -C build
|
|
|
|
%suse_update_desktop_file -r org.kde.discover Qt KDE System PackageManager
|
2016-03-05 20:05:58 +01:00
|
|
|
|
2018-10-09 08:18:19 +02:00
|
|
|
# Even without the snap backend, this is installed...
|
|
|
|
rm %{buildroot}%{_kf5_applicationsdir}/org.kde.discover.snap.urlhandler.desktop
|
|
|
|
|
2016-03-06 19:06:50 +01:00
|
|
|
%if %{with lang}
|
2016-02-05 22:43:24 +01:00
|
|
|
%find_lang libdiscover %{name}.lang
|
2016-03-06 15:41:40 +01:00
|
|
|
%find_lang plasma-discover-notifier %{name}.lang
|
|
|
|
%find_lang plasma-discover %{name}.lang
|
2016-09-17 20:38:57 +02:00
|
|
|
|
2016-06-17 22:26:44 +02:00
|
|
|
%find_lang plasma_applet_org.kde.discovernotifier plasma.lang
|
|
|
|
%else
|
|
|
|
touch plasma.lang
|
2016-03-06 19:06:50 +01:00
|
|
|
%endif
|
2016-02-05 21:49:37 +01:00
|
|
|
|
|
|
|
%files
|
2018-09-15 14:29:37 +02:00
|
|
|
%license COPYING*
|
2016-03-20 10:31:31 +01:00
|
|
|
%{_kf5_bindir}/plasma-discover
|
|
|
|
%{_kf5_libdir}/plasma-discover/
|
2018-10-09 08:18:19 +02:00
|
|
|
%dir %{_kf5_plugindir}/discover/
|
|
|
|
%{_kf5_plugindir}/discover/kns-backend.so
|
2016-03-06 15:41:40 +01:00
|
|
|
%{_kf5_qmldir}/
|
2016-02-05 21:49:37 +01:00
|
|
|
%{_kf5_applicationsdir}/org.kde.discover.desktop
|
2017-08-22 23:15:33 +02:00
|
|
|
%{_kf5_applicationsdir}/org.kde.discover.urlhandler.desktop
|
2016-03-06 15:41:40 +01:00
|
|
|
%{_kf5_iconsdir}/hicolor/*/apps/plasmadiscover.*
|
2018-10-23 19:27:36 +02:00
|
|
|
%{_kf5_iconsdir}/hicolor/*/apps/flatpak-discover.svgz
|
2016-03-06 15:41:40 +01:00
|
|
|
%{_kf5_notifydir}/discoverabstractnotifier.notifyrc
|
|
|
|
%{_kf5_kxmlguidir}/plasmadiscover/
|
2018-10-09 08:18:19 +02:00
|
|
|
%dir %{_kf5_sharedir}/libdiscover/
|
|
|
|
%dir %{_kf5_sharedir}/libdiscover/categories/
|
|
|
|
%{_kf5_appstreamdir}/org.kde.discover.appdata.xml
|
2016-09-17 20:38:57 +02:00
|
|
|
%{_kf5_sharedir}/discover/
|
2017-01-14 02:08:55 +01:00
|
|
|
%{_libdir}/libexec/kf5/discover/
|
|
|
|
%config %{_kf5_configdir}/discover_ktexteditor_codesnippets_core.knsrc
|
2018-09-15 14:29:37 +02:00
|
|
|
%{_kf5_debugdir}/discover.categories
|
2016-02-05 22:31:35 +01:00
|
|
|
|
2016-03-06 19:06:50 +01:00
|
|
|
%if %{with lang}
|
2016-02-05 22:31:35 +01:00
|
|
|
%files lang -f %{name}.lang
|
2018-10-09 08:18:19 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%files backend-packagekit
|
|
|
|
%license COPYING*
|
|
|
|
%{_kf5_plugindir}/discover/packagekit-backend.so
|
|
|
|
%{_kf5_sharedir}/libdiscover/categories/packagekit-backend-categories.xml
|
|
|
|
%{_kf5_appstreamdir}/org.kde.discover.packagekit.appdata.xml
|
|
|
|
|
|
|
|
%files backend-flatpak
|
|
|
|
%license COPYING*
|
|
|
|
%{_kf5_plugindir}/discover/flatpak-backend.so
|
|
|
|
%{_kf5_sharedir}/libdiscover/categories/flatpak-backend-categories.xml
|
|
|
|
%{_kf5_appstreamdir}/org.kde.discover.flatpak.appdata.xml
|
|
|
|
%{_kf5_applicationsdir}/org.kde.discover-flatpak.desktop
|
|
|
|
|
|
|
|
%if 0%{?suse_version} >= 1500
|
|
|
|
%files backend-fwupd
|
|
|
|
%license COPYING*
|
|
|
|
%{_kf5_plugindir}/discover/fwupd-backend.so
|
2016-03-06 19:06:50 +01:00
|
|
|
%endif
|
2016-02-05 21:49:37 +01:00
|
|
|
|
2016-06-17 22:26:44 +02:00
|
|
|
%files plasmoid -f plasma.lang
|
2018-09-15 14:29:37 +02:00
|
|
|
%license COPYING*
|
2016-03-20 10:31:31 +01:00
|
|
|
%dir %{_kf5_sharedir}/plasma
|
|
|
|
%dir %{_kf5_sharedir}/plasma/plasmoids
|
|
|
|
%{_kf5_sharedir}/plasma/plasmoids/org.kde.discovernotifier/
|
2016-02-05 21:49:37 +01:00
|
|
|
%{_kf5_servicesdir}/plasma-applet-org.kde.discovernotifier.desktop
|
2017-01-14 02:08:55 +01:00
|
|
|
%{_kf5_plugindir}/discover-notifier/
|
2018-10-09 08:18:19 +02:00
|
|
|
%{_kf5_appstreamdir}/org.kde.discovernotifier.appdata.xml
|
2016-02-05 21:49:37 +01:00
|
|
|
|
|
|
|
%changelog
|