477a771ea0
OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/plasma5-addons?expand=0&rev=177
120 lines
3.7 KiB
RPMSpec
120 lines
3.7 KiB
RPMSpec
#
|
|
# spec file for package plasma5-addons
|
|
#
|
|
# Copyright (c) 2018 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: plasma5-addons
|
|
Version: 5.12.2
|
|
Release: 0
|
|
# Full Plasma 5 version (e.g. 5.8.95)
|
|
%{!?_plasma5_bugfix: %global _plasma5_bugfix %{version}}
|
|
# Lasted ABI-stable Plasma (e.g. 5.8 in KF5, but 5.8.95 in KUF)
|
|
%{!?_plasma5_version: %global _plasma5_version %(echo %{_plasma5_bugfix} | awk -F. '{print $1"."$2}')}
|
|
Summary: Additional Plasma5 Widgets
|
|
License: LGPL-2.1 and GPL-2.0+ and GPL-3.0
|
|
Group: System/GUI/KDE
|
|
Url: http://www.kde.org/
|
|
Source: kdeplasma-addons-%{version}.tar.xz
|
|
BuildRequires: kf5-filesystem
|
|
BuildRequires: cmake(KF5Activities) >= 5.25.0
|
|
BuildRequires: cmake(KF5Config) >= 5.25.0
|
|
BuildRequires: cmake(KF5ConfigWidgets) >= 5.25.0
|
|
BuildRequires: cmake(KF5CoreAddons) >= 5.25.0
|
|
BuildRequires: cmake(KF5I18n) >= 5.25.0
|
|
BuildRequires: cmake(KF5KCMUtils) >= 5.25.0
|
|
BuildRequires: cmake(KF5KDELibs4Support) >= 5.25.0
|
|
BuildRequires: cmake(KF5KIO) >= 5.25.0
|
|
BuildRequires: cmake(KF5Kross) >= 5.25.0
|
|
BuildRequires: cmake(KF5NewStuff) >= 5.25.0
|
|
BuildRequires: cmake(KF5Plasma) >= 5.25.0
|
|
BuildRequires: cmake(KF5Runner) >= 5.25.0
|
|
BuildRequires: cmake(KF5Service) >= 5.25.0
|
|
BuildRequires: cmake(KF5UnitConversion) >= 5.25.0
|
|
#!BuildIgnore: kwin5
|
|
BuildRequires: cmake(LibTaskManager) >= %{_plasma5_version}
|
|
%if 0%{?suse_version} > 1314 && "%{suse_version}" != "1320"
|
|
BuildRequires: cmake(KDEExperimentalPurpose)
|
|
%endif
|
|
BuildRequires: xz
|
|
BuildRequires: cmake(Qt5Core) >= 5.4.0
|
|
BuildRequires: cmake(Qt5DBus) >= 5.4.0
|
|
BuildRequires: cmake(Qt5Gui) >= 5.4.0
|
|
BuildRequires: cmake(Qt5Qml) >= 5.4.0
|
|
BuildRequires: cmake(Qt5Quick) >= 5.4.0
|
|
BuildRequires: cmake(Qt5WebEngine) >= 5.7.0
|
|
BuildRequires: cmake(Qt5Widgets) >= 5.4.0
|
|
BuildRequires: cmake(Qt5X11Extras) >= 5.4.0
|
|
BuildRequires: pkgconfig(x11)
|
|
BuildRequires: pkgconfig(xcb)
|
|
%if 0%{?suse_version} > 1314 && "%{suse_version}" != "1320"
|
|
Requires: purpose
|
|
%endif
|
|
%if %{with lang}
|
|
Recommends: %{name}-lang
|
|
%endif
|
|
%if 0%{?suse_version} > 1314 && "%{suse_version}" != "1320"
|
|
Provides: plasma-addons = %{version}
|
|
Obsoletes: plasma-addons < %{version}
|
|
%else
|
|
Conflicts: plasma-addons
|
|
%endif
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
Additional plasmoids from upstream for use on the Plasma workspace.
|
|
|
|
%lang_package
|
|
%prep
|
|
%setup -q -n kdeplasma-addons-%{version}
|
|
|
|
%build
|
|
%cmake_kf5 -d build -- -DCMAKE_INSTALL_LOCALEDIR=%{_kf5_localedir}
|
|
%make_jobs
|
|
|
|
%install
|
|
%kf5_makeinstall -C build
|
|
%if %{with lang}
|
|
%kf5_find_lang
|
|
%endif
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc COPYING*
|
|
%config %{_kf5_configdir}/comic.knsrc
|
|
%{_kf5_libdir}/libplasmacomicprovidercore.so.*
|
|
%{_libdir}/libplasmapotdprovidercore.so*
|
|
%{_kf5_servicetypesdir}/
|
|
%{_kf5_plugindir}/
|
|
%{_kf5_qmldir}/
|
|
%{_kf5_servicesdir}/
|
|
%{_kf5_plasmadir}/
|
|
%{_kf5_sharedir}/kwin/
|
|
%{_kf5_iconsdir}/hicolor/*/*/*.*
|
|
%{_kf5_appstreamdir}/
|
|
%{_kf5_libdir}/libplasmaweatherprivate.so
|
|
|
|
%if %{with lang}
|
|
%files lang -f %{name}.lang
|
|
%doc COPYING*
|
|
%endif
|
|
|
|
%changelog
|