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