File kio-locate.spec of Package kio-locate
#
# spec file for package kio-locate (Version 0.4.5)
#
# Copyright (c) 2008 SUSE LINUX Products 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/
#
# norootforbuild
Name: kio-locate
BuildRequires: kdelibs3-devel python-xml
%if %suse_version < 1010
BuildRequires: kdelibs3-doc
%endif
Url: http://arminstraub.com/browse.php?page=programs_kiolocate
License: GPL v2 or later
Group: Productivity/Other
AutoReqProv: on
Version: 0.4.5
Release: 237
Summary: KDE I/O Slave for the locate Command
Source: kio-locate_%version.tar.bz2
Requires: kdelibs3 >= %( echo `rpm -q --queryformat '%{VERSION}' kdelibs3`) findutils-locate
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Patch1: fix-bksys-libsuffix.diff
Patch2: disable-doc.diff
Patch3: scons-mini.diff
Patch4: python-2.6.diff
%description
You can use kio-locate mostly as you use locate. Instead of typing
"locate pattern" at a command prompt, you start the search directly in
Konqueror or any KDE application that accepts URLs. Just enter
"locate:pattern" as the address. If the pattern is mixed-case or
uppercase the search is case-sensitive.
Authors:
--------
Tobi Vollebregt <tobivollebregt@gmail.com>
Armin Straub <linux@arminstraub.de>
Michael Schuerig <schuerig@acm.org>
%prep
%setup -q
%patch1
%patch2
%patch4
mv doc .doc
. /etc/opt/kde3/common_options
%build
QTDIR_bak=$QTDIR
. /etc/opt/kde3/common_options
export QTDIR=$QTDIR_bak
# the system version does not work
tar xf admin/scons-mini.tar.bz2
patch -p0 -s < %{PATCH3}
%ifarch x86_64 ppc64 s390x
./scons libsuffix=64
%else
./scons
%endif
%install
. /etc/opt/kde3/common_options
./scons DESTDIR=%{buildroot} install
#install help manually as the scons install target does not work
for f in .doc/en/*; do
install -D $f -m 644 %{buildroot}/opt/kde3/share/doc/HTML/en/kio-locate/${f##*/}
done
pushd %{buildroot}/opt/kde3/share/doc/HTML/en/kio-locate
meinproc --cache index.cache.bz2 index.docbook
popd
%find_lang kio-locate
%files
%defattr(-,root,root)
/opt/kde3/%_lib/kde3/kio_locate.*
/opt/kde3/share/doc/HTML/en/kio-locate
/opt/kde3/share/services/locate.protocol
/opt/kde3/share/services/locater.protocol
/opt/kde3/share/services/rlocate.protocol
%dir /opt/kde3/share/services/searchproviders
/opt/kde3/share/services/searchproviders/locate.desktop
%changelog
* Sun Oct 12 2008 dmueller@suse.de
- fix build for python 2.6
* Fri Apr 25 2008 dmueller@suse.de
- switch away from system scons to fix the build
* Sun May 28 2006 stbinner@suse.de
- update to version 0.4.5
* Search hits with non-ascii characters in the file name always
showed up with invalid size/owner/group information
* kio-locate should now compile with gcc-4.1_beta
* Updated to bksys 1.5.1.
* Wed May 24 2006 adrian@suse.de
- fix build for < 10.1
* Sun Feb 19 2006 dmueller@suse.de
- fix build for ppc,s390x
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Oct 19 2005 stbinner@suse.de
- update to version 0.4.4
* Tue Oct 18 2005 stbinner@suse.de
- fix build for 64 bit
* Sat Oct 08 2005 coolo@suse.de
- fix build with gcc 4.1
* Wed Oct 05 2005 stbinner@suse.de
- initial package (version 0.4.3)