File Katesort.spec of Package Katesort

# norootforbuild

%define _prefix /opt/kde3
%define rversion 1.0
%define rrelease 1.1
%define releasesuffix suse103DSB

Name:		katesort
Version:	%{rversion}
Release:	%{rrelease}%{releasesuffix}
%if %suse_version < 1020
Distribution:	SUSE Linux %(echo "%{suse_version}" | %__sed -e 's/.$//' -e ':a;s/\(.$\)/\.\1/g')
%else
Distribution:	openSUSE %(echo "%{suse_version}" | %__sed -e 's/.$//' -e ':a;s/\(.$\)/\.\1/g')
%endif
Summary:	Kate Sort Plugin
Group: 		Productivity/Editors/Other
License:	GPLv2
URL:		http://marian.kyralovi.cz/linux/katesort
Packager:	Donnie S Bhayangkara - http://donnie.110mb.com
Source0:	%{name}-%{rversion}.tar.bz2
Source1:	hi16-action-katesort.png
Source2:	hi32-action-katesort.png
Patch1:		%{name}-icons.diff
BuildRoot:	%{_tmppath}/build-%{name}-%{version}
BuildRequires:	automake autoconf libstdc++-devel libtool
BuildRequires:	kdelibs3-devel kdebase3-devel
Requires:	kdelibs3 kdebase3 kdeaddons3-kate

%description
Katesort is a KPart plugin for all KPart compatible editors (Kate, KWrite, etc).
It is inspired by the famous windows text editor PsPad (http://www.pspad.com).


Authors:
--------
     Marián Kyral <mkyral@email.cz>


%if %suse_version >= 930
%debug_package
%endif
%prep
%setup -q -n "%{name}-%{rversion}"
%patch1
%{?suse_update_config:%{suse_update_config -f}}

%build
%__cp "%{SOURCE1}" "%{_builddir}/%{name}-%{rversion}/src/hi16-action-katesort.png"
%__cp "%{SOURCE2}" "%{_builddir}/%{name}-%{rversion}/src/hi32-action-katesort.png"

%configure --with-qt-libraries=/usr/lib/qt3/%_lib

%__make %{?jobs:-j%{jobs}}

%install
%makeinstall

find %{buildroot} -type f -o -type l | sed "s|^%{buildroot}||" >master.list

%if %suse_version < 930
%__strip "%{buildroot}%{_bindir}"/*
%endif

%clean
%__rm -rf "%{buildroot}"

%files -f master.list
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING README TODO
%{_datadir}/apps/kate/plugins
%{_datadir}/kate/plugins/sort
%{_datadir}/doc/HTML/cs/katesort
%{_datadir}/doc/HTML/en/katesort

%changelog
* Sun Nov 11 2007 Donnie S Bhayangkara <dsbhayangkara@gmail.com> 1.0
- Initial release
openSUSE Build Service is sponsored by