File kde3-katesort.spec of Package kde3-katesort
#
# spec file for package katesort (Version 1.0)
#
# Copyright 2007 Donnie S Bhayangkara <dsbhayangkara@gmail.com>
# Copyright 2009 Buschmann <buschmann23@opensuse.org>
# Copyright (c) 2010 Kyrill Detinov
#
# 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.
#
%define _prefix /opt/kde3
Name: kde3-katesort
Version: 1.0
Release: 0
License: GPL-2.0
Summary: KDE3 Kate Sort Plugin
URL: http://marian.kyralovi.cz/linux/katesort
Group: Productivity/Text/Editors
Source0: katesort-%{version}.tar.bz2
Source1: hi16-action-katesort.png
Source2: hi32-action-katesort.png
# PATCH-FEATURE-OPENSUSE kde3-katesort-1.0-icons.diff
# -- replace plugin icons with another ones
Patch0: kde3-katesort-1.0-icons.diff
BuildRequires: kdelibs3-devel
BuildRequires: kdebase3-devel
Requires: kdeaddons3-kate
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Provides: katesort = %{version}
Obsoletes: katesort < %{version}
%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>
%prep
%setup -qn katesort-%{version}
%patch -P 0
%{__cp} %{S:1} %{_builddir}/katesort-%{version}/src
%{__cp} %{S:2} %{_builddir}/katesort-%{version}/src
%{__rm} -f %{_builddir}/katesort-%{version}/src/*plugin.png
. /etc/opt/kde3/common_options
update_admin --no-unsermake
%build
. /etc/opt/kde3/common_options
./configure $configkde --disable-final
%{__make} %{?_smp_mflags}
%install
. /etc/opt/kde3/common_options
%{makeinstall}
kde_post_install
%find_lang katesort
%clean
%{__rm} -rf %{buildroot}
%files -f katesort.lang
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING README TODO
%{_libdir}/kde3/libsortplugin.*
%{_datadir}/icons/hicolor
%{_datadir}/services/katesort.desktop
%{_datadir}/apps/kate/plugins
%changelog
# kate: space-indent on; indent-width 4;