Raymond Wooninck 2015-12-15 19:15:27 +00:00 committed by Git OBS Bridge
parent e3f58bfcb6
commit f96f4e17ca

View File

@ -17,8 +17,14 @@
Name: ksystemlog Name: ksystemlog
BuildRequires: libkde4-devel BuildRequires: extra-cmake-modules
BuildRequires: kdelibs4support-devel
BuildRequires: oxygen-icon-theme-large BuildRequires: oxygen-icon-theme-large
BuildRequires: update-desktop-files
BuildRequires: xz
BuildRequires: pkgconfig(Qt5Core) >= 5.2.0
BuildRequires: pkgconfig(Qt5Test) >= 5.2.0
BuildRequires: pkgconfig(Qt5Widgets) >= 5.2.0
Url: http://www.kde.org Url: http://www.kde.org
Version: 15.12.0 Version: 15.12.0
Release: 0 Release: 0
@ -27,7 +33,6 @@ License: GPL-2.0
Group: System/Monitoring Group: System/Monitoring
Source0: %{name}-%{version}.tar.xz Source0: %{name}-%{version}.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires
%description %description
This program is developed for use by beginner users, who do not know This program is developed for use by beginner users, who do not know
@ -41,15 +46,12 @@ want to quickly see problems occurring on their server.
%setup -q -n %{name}-%{version} %setup -q -n %{name}-%{version}
%build %build
%cmake_kde4 -d build %cmake_kf5 -d build
%make_jobs %make_jobs
%install %install
cd build %kf5_makeinstall -C build
%makeinstall %suse_update_desktop_file org.kde.ksystemlog System Monitor
cd ..
%suse_update_desktop_file ksystemlog System Monitor
%kde_post_install
for i in {16,22,32,48,64,128}; do for i in {16,22,32,48,64,128}; do
mkdir -p $RPM_BUILD_ROOT/usr/share/icons/hicolor/"$i"x"$i"/apps 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/; cp /usr/share/icons/oxygen/"$i"x"$i"/apps/utilities-log-viewer.png $RPM_BUILD_ROOT/usr/share/icons/hicolor/"$i"x"$i"/apps/;
@ -65,10 +67,12 @@ want to quickly see problems occurring on their server.
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%doc COPYING %doc COPYING
%{_kde4_bindir}/ksystemlog %{_kf5_bindir}/ksystemlog
%{_kde4_applicationsdir}/ksystemlog.desktop %{_kf5_applicationsdir}/*.desktop
%{_kde4_htmldir}/en/ksystemlog/ %dir %{_kf5_htmldir}/en
%{_kde4_appsdir}/ksystemlog/ %dir %{_kf5_htmldir}
%{_kde4_iconsdir}/hicolor/*/apps/utilities-log-viewer.* %doc %{_kf5_htmldir}/en/*/
%{_kf5_sharedir}/kxmlgui5/
%{_kf5_iconsdir}/hicolor/*/*/*.png
%changelog %changelog