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 http://bugs.opensuse.org/
#
# norootforbuild
%if %suse_version < 1100
%define nautilus_ext_version 1.0
%else
%define nautilus_ext_version 2.0
%endif
%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
%else
BuildRequires: gnome-utils
%endif
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
Source0: http://dl.sourceforge.net/nautsearchtool/%{name}-%{version}.tar.bz2
Url: http://saettaz.altervista.org/software/nautilus_search_tool.html
Patch0: nautilus-search-tool-0.2-headers.patch
# PATCH-FIX-UPSTREAM nautilus-search-tool-useless-deps.patch vuntz@novell.com -- Remove useless dependencies
Patch2: nautilus-search-tool-useless-deps.patch
# PATCH-FIX-UPSTREAM nautilus-search-tool-no-debug.patch vuntz@novell.com -- Remove debug output
Patch3: nautilus-search-tool-no-debug.patch
# PATCH-FIX-UPSTREAM nautilus-search-tool-hide-when-unavailable.patch vuntz@novell.com -- 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 vuntz@novell.com -- 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 vuntz@novell.com -- Minor code cleanups
Patch6: nautilus-search-tool-code-cleanup.patch
# PATCH-FIX-UPSTREAM nautilus-search-tool-g_user_directory.patch vuntz@novell.com -- 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}
%description
This package adds an option to the context menu of folders in Nautilus
to search for files.
Authors:
--------
Andrea Zagli <azagli@inwind.it>
%lang_package
%prep
%setup -q
%patch0 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%if %suse_version >= 1100
%patch7 -p1
%endif
%build
autoreconf -f -i
%configure --disable-static
make %{?jobs:-j%jobs}
%install
%makeinstall
find $RPM_BUILD_ROOT -name \*.la -exec rm {} \;
%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING
%{nautilusextdir}/*.so
%files lang -f %{name}.lang
%changelog