File nautilus-search-tool.spec of Package nautilus-search-tool
#
# spec file for package nautilus-search-tool
#
# Copyright (c) 2011 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
%define nautilusextdir %(pkg-config --variable=extensiondir libnautilus-extension)
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: libtool
BuildRequires: nautilus-devel
License: GPL-2.0+
Group: Productivity/File utilities
Version: 0.3.1
Release: 1
Summary: A Nautilus extension to put "Search for Files" on the context menu of folders
Source0: http://downloads.sourceforge.net/project/nautsearchtool/nautilus-search-tool/0.3.1/%{name}-%{version}.tar.gz
Url: http://saettaz.altervista.org/software/nautilus_search_tool.html
# 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-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-no_c++.patch dimstar@opensuse.org -- Do not require c++ compiler. Patch sent my email on 2011-11-15
Patch6: nautilus-search-tool-no_c++.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} > 1130
Requires: gnome-search-tool
%else
Requires: gnome-utils
%endif
Requires: %{name}-lang = %{version}
%description
This package adds an option to the context menu of folders in Nautilus
to search for files.
%lang_package
%prep
%setup -q
%patch3 -p1
%patch5 -p1
%patch6 -p1
%build
mkdir m4
autoreconf -fi
%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