forked from pool/discover
87e3d177ca
OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/discover?expand=0&rev=64
135 lines
4.0 KiB
RPMSpec
135 lines
4.0 KiB
RPMSpec
#
|
|
# spec file for package discover
|
|
#
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%bcond_without lang
|
|
Name: discover
|
|
Version: 5.9.0
|
|
Release: 0
|
|
Summary: KDE Software Installer
|
|
License: GPL-2.0
|
|
Group: System/GUI/KDE
|
|
Url: https://quickgit.kde.org/?p=discover.git
|
|
Source: discover-%{version}.tar.xz
|
|
BuildRequires: PackageKit-Qt5-devel
|
|
BuildRequires: cmake >= 2.8.12
|
|
BuildRequires: extra-cmake-modules
|
|
BuildRequires: kf5-filesystem
|
|
BuildRequires: kirigami2-devel
|
|
BuildRequires: update-desktop-files
|
|
BuildRequires: cmake(AppStreamQt) >= 0.10
|
|
BuildRequires: cmake(KF5Archive)
|
|
BuildRequires: cmake(KF5Attica)
|
|
BuildRequires: cmake(KF5Config)
|
|
BuildRequires: cmake(KF5CoreAddons)
|
|
BuildRequires: cmake(KF5Crash)
|
|
BuildRequires: cmake(KF5DBusAddons)
|
|
BuildRequires: cmake(KF5Declarative)
|
|
BuildRequires: cmake(KF5I18n)
|
|
BuildRequires: cmake(KF5ItemModels)
|
|
BuildRequires: cmake(KF5KIO)
|
|
BuildRequires: cmake(KF5NewStuff)
|
|
BuildRequires: cmake(KF5Notifications)
|
|
BuildRequires: cmake(KF5Plasma)
|
|
BuildRequires: cmake(KF5TextWidgets)
|
|
BuildRequires: cmake(Qca-qt5)
|
|
BuildRequires: cmake(Qt5Concurrent)
|
|
BuildRequires: cmake(Qt5DBus)
|
|
BuildRequires: cmake(Qt5Network)
|
|
BuildRequires: cmake(Qt5Qml)
|
|
BuildRequires: cmake(Qt5Quick)
|
|
BuildRequires: cmake(Qt5Test)
|
|
BuildRequires: cmake(Qt5Widgets)
|
|
BuildRequires: cmake(Qt5Xml)
|
|
Requires: AppStream
|
|
Requires: kirigami2
|
|
Requires: libqt5-qtquickcontrols2
|
|
Requires: libzypp-plugin-appdata
|
|
%if %{with lang}
|
|
Recommends: %{name}-lang
|
|
%endif
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
Disover is the KDE software installer, implemented as an app store like application.
|
|
|
|
%package plasmoid
|
|
Summary: Update notification plasmoid for KDE Software Manager
|
|
Group: System/GUI/KDE
|
|
Conflicts: plasma5-pk-updates
|
|
Requires: %{name} = %{version}
|
|
|
|
%description plasmoid
|
|
This is the systray plasmoid to notify the user that updates are available
|
|
|
|
%lang_package
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
%cmake_kf5 -d build
|
|
%make_jobs
|
|
|
|
%install
|
|
%kf5_makeinstall -C build
|
|
%suse_update_desktop_file -r org.kde.discover Qt KDE System PackageManager
|
|
|
|
%if %{with lang}
|
|
%find_lang libdiscover %{name}.lang
|
|
# %find_lang plasma-discover-exporter %{name}.lang
|
|
%find_lang plasma-discover-notifier %{name}.lang
|
|
%find_lang plasma-discover %{name}.lang
|
|
|
|
%find_lang plasma_applet_org.kde.discovernotifier plasma.lang
|
|
%else
|
|
touch plasma.lang
|
|
%endif
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc COPYING COPYING.GFDL COPYING.LIB
|
|
%{_kf5_bindir}/plasma-discover
|
|
%{_kf5_libdir}/plasma-discover/
|
|
%{_kf5_plugindir}/discover/
|
|
%{_kf5_qmldir}/
|
|
%{_kf5_applicationsdir}/org.kde.discover.desktop
|
|
%{_kf5_iconsdir}/hicolor/*/apps/plasmadiscover.*
|
|
%{_kf5_notifydir}/discoverabstractnotifier.notifyrc
|
|
%{_kf5_kxmlguidir}/plasmadiscover/
|
|
%{_kf5_sharedir}/libdiscover/
|
|
%{_kf5_appstreamdir}/
|
|
%{_kf5_sharedir}/discover/
|
|
%{_libdir}/libexec/kf5/discover/
|
|
%config %{_kf5_configdir}/discover_ktexteditor_codesnippets_core.knsrc
|
|
|
|
%if %{with lang}
|
|
%files lang -f %{name}.lang
|
|
%defattr(-,root,root)
|
|
%endif
|
|
|
|
%files plasmoid -f plasma.lang
|
|
%defattr(-,root,root)
|
|
%doc COPYING COPYING.GFDL COPYING.LIB
|
|
%dir %{_kf5_sharedir}/plasma
|
|
%dir %{_kf5_sharedir}/plasma/plasmoids
|
|
%{_kf5_sharedir}/plasma/plasmoids/org.kde.discovernotifier/
|
|
%{_kf5_servicesdir}/plasma-applet-org.kde.discovernotifier.desktop
|
|
%{_kf5_plugindir}/discover-notifier/
|
|
|
|
%changelog
|