File kio_sysinfo.spec of Package kio_sysinfo
#
# spec file for package kio_sysinfo
#
# Copyright (c) 2014 SUSE LINUX Products 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/
#
Name: kio_sysinfo
Version: 42.3
Release: 0
Summary: System Information KIO-Slave
License: GPL-2.0+
Group: System/GUI/KDE
#svn export svn://anonsvn.kde.org/home/kde/trunk/playground/base/kio_sysinfo
Source0: kio_sysinfo.tar.xz
Source1: my_Computer.desktop
Source2: mycomp.png
Patch1: sysinfo-fixed-opengl-detecting.patch
Patch2: detect_r600.patch
# PATCH-FIX-OPENSUSE fix_hd-device.name_empty.patch -- Do not use hd->device.name when it is empty
Patch3: fix_hd-device.name_empty.patch
BuildRequires: extra-cmake-modules
BuildRequires: hwinfo-devel
BuildRequires: cmake(KF5Config)
BuildRequires: cmake(KF5KDELibs4Support)
BuildRequires: cmake(KF5KHtml)
BuildRequires: cmake(KF5KIO)
BuildRequires: cmake(KF5Parts)
BuildRequires: cmake(KF5Solid)
BuildRequires: cmake(Qt5Core)
BuildRequires: cmake(Qt5Gui)
BuildRequires: cmake(Qt5Widgets)
BuildRequires: cmake(Qt5X11Extras)
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This package contains a KDE KIO-Slave showing system information.
NOTE: This package is unsupported and unmaintaned upstream!
%lang_package
%prep
%setup -q -n kio_sysinfo
%patch1 -p1
%patch2 -p1
%patch3 -p1
%build
%cmake_kf5 -d build -- -DSYSINFO_DISTRO:STRING=SUSE
%{make_jobs}
%install
cd build
%{kf5_makeinstall}
cd ..
install -m 644 %{SOURCE1} %{buildroot}%{_kf5_applicationsdir}/
mkdir -p %{buildroot}%{_kf5_iconsdir}/hicolor/64x64/apps/
install -m 644 %{SOURCE2} %{buildroot}%{_kf5_iconsdir}/hicolor/64x64/apps/
%post
%mime_database_post
%postun
%mime_database_postun
%files
%defattr(-,root,root)
%{_kf5_sharedir}/mime/packages/x-sysinfo.xml
%{_kf5_applicationsdir}/my_Computer.desktop
%{_kf5_applicationsdir}/kfmclient_sysinfo.desktop
%{_kf5_plugindir}/kio_sysinfo.so
%{_kf5_plugindir}/libksysinfopart.so
%{_kf5_servicesdir}/ksysinfopart.desktop
%{_kf5_servicesdir}/sysinfo.protocol
%{_kf5_appsdir}/sysinfo/
%{_kf5_iconsdir}/hicolor/64x64/apps/mycomp.png
%changelog