2014-06-12 17:49:07 +00:00
|
|
|
#
|
|
|
|
# spec file for package kinfocenter5
|
|
|
|
#
|
2021-01-06 08:40:32 +00:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2014-06-12 17:49:07 +00: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 19:53:09 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-06-12 17:49:07 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2021-01-21 08:53:02 +00:00
|
|
|
# Internal QML imports
|
|
|
|
%global __requires_exclude qmlimport\\(org\\.kde\\.kinfocenter.*
|
|
|
|
|
2019-05-17 18:24:23 +00:00
|
|
|
%global kf5_version 5.58.0
|
2017-03-01 14:45:15 +00:00
|
|
|
|
2015-04-10 18:28:52 +00:00
|
|
|
%bcond_without lang
|
2014-06-12 17:49:07 +00:00
|
|
|
Name: kinfocenter5
|
2021-07-28 05:42:06 +00:00
|
|
|
Version: 5.22.4
|
2014-06-12 17:49:07 +00:00
|
|
|
Release: 0
|
2017-05-16 11:56:17 +00:00
|
|
|
# Full Plasma 5 version (e.g. 5.8.95)
|
2021-07-07 07:52:58 +00:00
|
|
|
%{!?_plasma5_bugfix: %define _plasma5_bugfix %{version}}
|
2018-09-15 12:29:40 +00:00
|
|
|
# Latest ABI-stable Plasma (e.g. 5.8 in KF5, but 5.8.95 in KUF)
|
|
|
|
%{!?_plasma5_version: %define _plasma5_version %(echo %{_plasma5_bugfix} | awk -F. '{print $1"."$2}')}
|
2014-06-12 17:49:07 +00:00
|
|
|
Summary: Utility that provides information about a computer system
|
2018-06-19 21:42:09 +00:00
|
|
|
License: GPL-2.0-or-later
|
2014-06-12 17:49:07 +00:00
|
|
|
Group: System/GUI/KDE
|
2020-02-25 18:30:01 +00:00
|
|
|
URL: http://www.kde.org/
|
2021-07-07 07:52:58 +00:00
|
|
|
Source: https://download.kde.org/stable/plasma/%{version}/kinfocenter-%{version}.tar.xz
|
2018-09-19 04:47:26 +00:00
|
|
|
%if %{with lang}
|
2021-07-07 07:52:58 +00:00
|
|
|
Source1: https://download.kde.org/stable/plasma/%{version}/kinfocenter-%{version}.tar.xz.sig
|
2018-09-19 04:47:26 +00:00
|
|
|
Source2: plasma.keyring
|
|
|
|
%endif
|
2015-04-29 00:13:58 +00:00
|
|
|
# PATCH-FIX-OPENSUSE plasma-session-name.patch
|
|
|
|
Patch0: plasma-session-name.patch
|
2021-06-18 09:32:19 +00:00
|
|
|
# PATCH-FIX-UPSTREAM
|
|
|
|
Patch1: 0001-Handle-libpci-errors-gracefully.patch
|
|
|
|
Patch2: 0002-Enable-the-PCI-module-everywhere.patch
|
2015-11-29 18:08:43 +00:00
|
|
|
BuildRequires: extra-cmake-modules >= 1.2.0
|
2014-06-12 17:49:07 +00:00
|
|
|
BuildRequires: kf5-filesystem
|
|
|
|
BuildRequires: libraw1394-devel
|
|
|
|
BuildRequires: pciutils-devel
|
2020-05-19 13:35:10 +00:00
|
|
|
BuildRequires: systemsettings5
|
2014-06-12 17:49:07 +00:00
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
BuildRequires: xz
|
2017-03-01 14:45:15 +00:00
|
|
|
BuildRequires: cmake(KF5Completion) >= %{kf5_version}
|
|
|
|
BuildRequires: cmake(KF5Config) >= %{kf5_version}
|
|
|
|
BuildRequires: cmake(KF5ConfigWidgets) >= %{kf5_version}
|
|
|
|
BuildRequires: cmake(KF5CoreAddons) >= %{kf5_version}
|
|
|
|
BuildRequires: cmake(KF5DBusAddons) >= %{kf5_version}
|
|
|
|
BuildRequires: cmake(KF5Declarative) >= %{kf5_version}
|
|
|
|
BuildRequires: cmake(KF5DocTools) >= %{kf5_version}
|
|
|
|
BuildRequires: cmake(KF5I18n) >= %{kf5_version}
|
|
|
|
BuildRequires: cmake(KF5IconThemes) >= %{kf5_version}
|
|
|
|
BuildRequires: cmake(KF5KCMUtils) >= %{kf5_version}
|
|
|
|
BuildRequires: cmake(KF5KDELibs4Support) >= %{kf5_version}
|
|
|
|
BuildRequires: cmake(KF5KIO) >= %{kf5_version}
|
|
|
|
BuildRequires: cmake(KF5Package) >= %{kf5_version}
|
|
|
|
BuildRequires: cmake(KF5Service) >= %{kf5_version}
|
|
|
|
BuildRequires: cmake(KF5Solid) >= %{kf5_version}
|
|
|
|
BuildRequires: cmake(KF5Solid) >= %{kf5_version}
|
2016-09-23 18:21:51 +00:00
|
|
|
BuildRequires: cmake(KF5Wayland) >= %{_plasma5_version}
|
2017-03-01 14:45:15 +00:00
|
|
|
BuildRequires: cmake(KF5WidgetsAddons) >= %{kf5_version}
|
|
|
|
BuildRequires: cmake(KF5XmlGui) >= %{kf5_version}
|
2019-05-17 18:24:23 +00:00
|
|
|
BuildRequires: cmake(Qt5Core) >= 5.12.0
|
|
|
|
BuildRequires: cmake(Qt5Gui)
|
|
|
|
BuildRequires: cmake(Qt5Widgets)
|
2014-06-12 17:49:07 +00:00
|
|
|
BuildRequires: pkgconfig(egl)
|
2021-06-14 20:44:24 +00:00
|
|
|
BuildRequires: pkgconfig(libusb-1.0)
|
2014-07-12 08:28:54 +00:00
|
|
|
%ifarch %arm aarch64
|
|
|
|
BuildRequires: pkgconfig(glesv2)
|
|
|
|
%else
|
2014-06-12 17:49:07 +00:00
|
|
|
BuildRequires: pkgconfig(gl)
|
2014-07-12 08:28:54 +00:00
|
|
|
%endif
|
2014-06-12 17:49:07 +00:00
|
|
|
BuildRequires: pkgconfig(glu)
|
2015-11-29 18:08:43 +00:00
|
|
|
BuildRequires: pkgconfig(x11)
|
2015-05-22 16:01:51 +00:00
|
|
|
Conflicts: kdebase4-workspace < 5.3.0
|
2014-10-25 17:30:24 +00:00
|
|
|
Recommends: %{name}-lang
|
2016-01-23 10:02:58 +00:00
|
|
|
# needed for the fileindexermonitor
|
|
|
|
Requires: baloo5-imports
|
2020-05-19 13:35:10 +00:00
|
|
|
# The executable is now a link to systemsettings5
|
|
|
|
Requires: systemsettings5
|
2014-06-12 17:49:07 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
KDE Utility that provides information about a computer system.
|
|
|
|
|
2014-09-26 13:51:44 +00:00
|
|
|
%lang_package
|
2021-06-18 09:32:19 +00:00
|
|
|
|
2014-06-12 17:49:07 +00:00
|
|
|
%prep
|
2021-06-18 09:32:19 +00:00
|
|
|
%autosetup -p1 -n kinfocenter-%{version}
|
2014-06-12 17:49:07 +00:00
|
|
|
|
|
|
|
%build
|
2016-07-06 16:37:52 +00:00
|
|
|
%cmake_kf5 -d build -- -DCMAKE_INSTALL_LOCALEDIR=%{_kf5_localedir}
|
2020-02-08 00:13:15 +00:00
|
|
|
%cmake_build
|
2014-06-12 17:49:07 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%kf5_makeinstall -C build
|
2016-07-06 16:37:52 +00:00
|
|
|
%if %{with lang}
|
|
|
|
%kf5_find_lang
|
2017-05-16 11:56:17 +00:00
|
|
|
%kf5_find_htmldocs
|
2016-07-06 16:37:52 +00:00
|
|
|
%endif
|
2014-06-12 17:49:07 +00:00
|
|
|
|
|
|
|
%files
|
2020-02-19 10:14:39 +00:00
|
|
|
%license LICENSES/*.txt
|
2014-06-12 17:49:07 +00:00
|
|
|
%{_kf5_bindir}/kinfocenter
|
2021-06-14 20:44:24 +00:00
|
|
|
%dir %{_kf5_plugindir}/
|
|
|
|
%{_kf5_plugindir}/kcm_about_distro.so
|
|
|
|
%{_kf5_plugindir}/kcm_devinfo.so
|
|
|
|
%{_kf5_plugindir}/kcm_info.so
|
|
|
|
%{_kf5_plugindir}/kcm_memory.so
|
|
|
|
%{_kf5_plugindir}/kcm_opengl.so
|
|
|
|
%{_kf5_plugindir}/kcm_pci.so
|
|
|
|
%{_kf5_plugindir}/kcm_usb.so
|
|
|
|
%{_kf5_plugindir}/kcm_view1394.so
|
|
|
|
%dir %{_kf5_plugindir}/kcms/
|
|
|
|
%{_kf5_plugindir}/kcms/kcm_energyinfo.so
|
|
|
|
%{_kf5_plugindir}/kcms/kcm_nic.so
|
|
|
|
%{_kf5_plugindir}/kcms/kcm_samba.so
|
2015-01-08 21:10:23 +00:00
|
|
|
%{_kf5_applicationsdir}/org.kde.kinfocenter.desktop
|
2014-06-12 17:49:07 +00:00
|
|
|
%dir %{_kf5_htmldir}/en
|
|
|
|
%dir %{_kf5_htmldir}
|
|
|
|
%doc %{_kf5_htmldir}/en/kinfocenter/
|
2015-04-10 18:28:52 +00:00
|
|
|
%{_kf5_sharedir}/kpackage/
|
2014-06-12 17:49:07 +00:00
|
|
|
%{_kf5_servicesdir}/
|
|
|
|
%{_kf5_servicetypesdir}/
|
2014-08-11 21:40:14 +00:00
|
|
|
%{_kf5_configdir}/menus/kinfocenter.menu
|
|
|
|
%{_kf5_sharedir}/desktop-directories/
|
2019-05-17 18:24:23 +00:00
|
|
|
%{_kf5_appstreamdir}/org.kde.kinfocenter.appdata.xml
|
2014-06-12 17:49:07 +00:00
|
|
|
|
2015-04-11 18:56:41 +00:00
|
|
|
%if %{with lang}
|
2016-07-06 16:37:52 +00:00
|
|
|
%files lang -f %{name}.lang
|
2015-04-11 18:56:41 +00:00
|
|
|
%endif
|
2014-09-26 13:51:44 +00:00
|
|
|
|
2014-06-12 17:49:07 +00:00
|
|
|
%changelog
|