File kio_sysinfo.spec of Package kio_sysinfo4
#
# 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: 12.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: sysinfo.tar.bz2
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
# PATCH-FIX-WOLFI -- /etc/SuSE-release doesn't exist anymore, use /etc/os-release as fallback
Patch4: read-osinfo-from-os-release-too.patch
BuildRequires: hwinfo-devel
BuildRequires: libkde4-devel
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%requires_ge libqt4-x11
%kde4_runtime_requires
%description
This package contains a KDE KIO-Slave showing system information.
NOTE: This package is unsupported and unmaintaned upstream!
%lang_package
%prep
%autosetup -p1 -n %{name}
%build
%cmake_kde4 -d build -- -DSYSINFO_DISTRO:STRING=SUSE
%{make_jobs}
%install
cd build
%{kde4_makeinstall}
cd ..
install -m 644 %{SOURCE1} %{buildroot}%{_kde4_applicationsdir}/
mkdir -p %{buildroot}%{_kde4_iconsdir}/hicolor/64x64/apps/
install -m 644 %{SOURCE2} %{buildroot}%{_kde4_iconsdir}/hicolor/64x64/apps/
%post
%{_kde4_bindir}/update-mime-database %{_datadir}/mime &> /dev/null || :
%postun
%{_kde4_bindir}/update-mime-database %{_datadir}/mime &> /dev/null || :
%files
%defattr(-,root,root)
%{_datadir}/mime/packages/x-sysinfo.xml
%{_kde4_applicationsdir}/my_Computer.desktop
%{_kde4_applicationsdir}/kfmclient_sysinfo.desktop
%{_kde4_modulesdir}/kio_sysinfo.so
%{_kde4_modulesdir}/libksysinfopart.so
%{_kde4_servicesdir}/ksysinfopart.desktop
%{_kde4_servicesdir}/sysinfo.protocol
%{_kde4_appsdir}/sysinfo/
%{_kde4_iconsdir}/hicolor/64x64/apps/mycomp.png
%changelog