File nautilus-search-tool.spec of Package nautilus-search-tool

# spec file for package nautilus-search-tool (Version 0.3.0)
# Copyright (c) 2010 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

# norootforbuild

%if %suse_version < 1100
%define         nautilus_ext_version 1.0
%define         nautilus_ext_version 2.0
%define         nautilusextdir %{_libdir}/nautilus/extensions-%{nautilus_ext_version}

Name:           nautilus-search-tool
# Looks for gnome-search-tool during configure
%if 0%{?suse_version} > 1130
BuildRequires:  gnome-search-tool
BuildRequires:  gnome-utils
BuildRequires:  intltool
BuildRequires:  nautilus-devel
License:        GPLv2+
Group:          Productivity/File utilities
Version:        0.3.0
Release:        8
Summary:        A Nautilus extension to put "Search for Files" on the context menu of folders
Patch0:         nautilus-search-tool-0.2-headers.patch
# PATCH-FIX-UPSTREAM nautilus-search-tool-useless-deps.patch -- Remove useless dependencies
Patch2:         nautilus-search-tool-useless-deps.patch
# PATCH-FIX-UPSTREAM nautilus-search-tool-no-debug.patch -- Remove debug output
Patch3:         nautilus-search-tool-no-debug.patch
# PATCH-FIX-UPSTREAM nautilus-search-tool-hide-when-unavailable.patch -- Hide the menu items when gnome-search-tool is not available
Patch4:         nautilus-search-tool-hide-when-unavailable.patch
# PATCH-FIX-UPSTREAM nautilus-search-tool-no-quote.patch -- Do not quote uselessly the directory passed as argument
Patch5:         nautilus-search-tool-no-quote.patch
# PATCH-FIX-UPSTREAM nautilus-search-tool-code-cleanup.patch -- Minor code cleanups
Patch6:         nautilus-search-tool-code-cleanup.patch
# PATCH-FIX-UPSTREAM nautilus-search-tool-g_user_directory.patch -- Determine the desktop directory at runtime
Patch7:         nautilus-search-tool-g_user_directory.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       gnome-utils
Requires:       %{name}-lang = %{version}

This package adds an option to the context menu of folders in Nautilus
to search for files.

    Andrea Zagli <>

%setup -q
%patch0 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%if %suse_version >= 1100
%patch7 -p1

autoreconf -f -i
%configure --disable-static
make %{?jobs:-j%jobs}

find $RPM_BUILD_ROOT -name \*.la -exec rm {} \;
%find_lang %{name}



%files lang -f %{name}.lang

openSUSE Build Service is sponsored by