ksystemlog/ksystemlog.spec

75 lines
2.1 KiB
RPMSpec
Raw Normal View History

#
# spec file for package ksystemlog
#
# Copyright (c) 2015 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/
#
Name: ksystemlog
BuildRequires: libkde4-devel
BuildRequires: oxygen-icon-theme-large
Url: http://www.kde.org
Version: 15.12.0
Release: 0
Summary: System Log Viewer Tool
License: GPL-2.0
Group: System/Monitoring
Source0: %{name}-%{version}.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires
%description
This program is developed for use by beginner users, who do not know
how to find information about their Linux system and how the log files
are in their computer. But it is also designed for advanced users, who
want to quickly see problems occurring on their server.
%prep
%setup -q -n %{name}-%{version}
%build
%cmake_kde4 -d build
%make_jobs
%install
cd build
%makeinstall
cd ..
%suse_update_desktop_file ksystemlog System Monitor
%kde_post_install
for i in {16,22,32,48,64,128}; do
mkdir -p $RPM_BUILD_ROOT/usr/share/icons/hicolor/"$i"x"$i"/apps
cp /usr/share/icons/oxygen/"$i"x"$i"/apps/utilities-log-viewer.png $RPM_BUILD_ROOT/usr/share/icons/hicolor/"$i"x"$i"/apps/;
done
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc COPYING
%{_kde4_bindir}/ksystemlog
%{_kde4_applicationsdir}/ksystemlog.desktop
%{_kde4_htmldir}/en/ksystemlog/
%{_kde4_appsdir}/ksystemlog/
%{_kde4_iconsdir}/hicolor/*/apps/utilities-log-viewer.*
%changelog