File KlogShow.spec of Package KlogShow
# norootforbuild
# neededforbuild automake autoconf libstdc++-devel libtool libqt4-devel cmake update-desktop-files
%define _prefix /opt/kde3
%define rversion 1.0.3
Name: klogshow
Version: %{rversion}
Release: 1.1OS102DSB
Distribution: %{_vendor} %(echo "%{suse_version}" | %__sed -e 's/.$//' -e ':a;s/\(.$\)/\.\1/g') %{_arch}
Summary: Display Textfile
Group: System/Monitoring
License: GPL
URL: http://xes.sytes.net
Packager: Donnie S Bhayangkara - http://donnie.110mb.com
Source0: %{name}-%{rversion}.tgz
Patch1: %{name}-menu_entry_icon-dir.diff
Patch2: %{name}-genericname-menuentry.diff
BuildRoot: %{_tmppath}/build-%{name}-%{version}
BuildRequires: automake autoconf libstdc++-devel libtool
BuildRequires: update-desktop-files
BuildRequires: libqt4-devel >= 4.2.0
BuildRequires: cmake >= 2.4.0
Requires: libqt4 >= 4.2.0
%description
Klogshow used to display the last few lines of a text files on your desktop.
It append new lines to the display as new lines are added.
Authors:
--------
xes <pinon.pierre@gmail.com>
%prep
%setup -q
%patch1
%if %suse_version <= 1000
%patch2
%endif
%{?suse_update_config:%{suse_update_config -f}}
%build
%__mkdir "%{_builddir}/%{name}-%{version}/build"
cd "%{_builddir}/%{name}-%{version}/build"
cmake .. -DCMAKE_INSTALL_PREFIX=%{_prefix} -DCMAKE_BUILD_TYPE=Release
%__make %{?jobs:-j%{jobs}}
%makeinstall
%if %suse_version >=1010
%suse_update_desktop_file -G "Display Textfile" -C "Klogshow used to display the last few lines of a text files on your desktop" -r %{name} Qt KDE System Monitor
%else
%suse_update_desktop_file -r "%{name}" Qt KDE System Monitor
%endif
%if %suse_version < 930
%__strip "%{buildroot}%{_bindir}"/*
%endif
%clean
%__rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%doc CHANGELOG COPYING
%{_bindir}/%{name}
%{_datadir}/applications/kde/%{name}.desktop
%{_datadir}/icons/hicolor/22x22/apps/%{name}.png
%changelog
* Thu Mar 29 2007 Donnie S Bhayangkara <dsbhayangkara@gmail.com> 1.0.3
- fixed build error in suse 9.3 & suse 10.0
* Wed Mar 28 2007 Donnie S Bhayangkara <dsbhayangkara@gmail.com> 1.0.3
- new upstream version:
* This version can be build for Windows
* Fix Bug : Quit when all windows are close
- using the included menu entries & icon file
- changed install prefix to %{_prefix}
- removed debuginfo package
* Tue Mar 6 2007 Donnie S Bhayangkara <dsbhayangkara@gmail.com> 1.0.2
- remove source1 & source2 from spec file and replace them with inline statement
to create menu entries and icon file.
* Mon Mar 5 2007 Donnie S Bhayangkara <dsbhayangkara@gmail.com> 1.0.2
- initial release
* Window event on Change
* Fix Bug : Inactive Window and others
* Add INSTALL and CHANGELOG files
* Fix Problemes with kdevelop and CMake