File nautilus-search-tool.spec of Package nautilus-search-tool
#
# spec file for package nautilus-search-tool (Version 0.3.0)
#
# Copyright (c) 2009 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
BuildRequires: gnome-utils
BuildRequires: intltool
BuildRequires: nautilus-devel
License: GPL v2 or later
Group: Productivity/File utilities
Version: 0.3.0
Release: 1
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
* Wed Apr 15 2009 vuntz@novell.com
- Update to version 0.3.0:
+ Fix to work with newer nautilus.
+ Fix to work with newer gnome-utils.
+ Updated translations
- Drop nautilus-search-tool-extension-directory.patch: fixed
upstream.
- Respin nautilus-search-tool-0.2-headers.patch,
nautilus-search-tool-code-cleanup.patch,
nautilus-search-tool-g_user_directory.patch,
nautilus-search-tool-hide-when-unavailable.patch,
nautilus-search-tool-no-debug.patch,
nautilus-search-tool-no-quote.patch,
nautilus-search-tool-useless-deps.patch
- Remove checks for old versions of openSUSE.
- Add BuildRequires and Requires for gnome-utils.
- Do not set CFLAGS to the default values.
- Pass --disable-static to configure.
* Mon Jan 19 2009 vuntz@novell.com
- Split nautilus-search-tool-cleanup.patch in smaller patches:
+ nautilus-search-tool-code-cleanup.patch: minor code cleanups
+ nautilus-search-tool-g_user_directory.patch: determine the
desktop directory at runtime
+ nautilus-search-tool-hide-when-unavailable.patch: hide the menu
items when gnome-search-tool is not available
+ nautilus-search-tool-no-debug.patch: remove debug output
+ nautilus-search-tool-no-quote.patch: do not quote uselessly the
directory passed as argument
+ nautilus-search-tool-useless-deps.patch: remove useless
dependencies
- Add nautilus-search-tool-extension-directory.patch that replaces
nautilus-search-tool-0.2-extdir.patch: we use pkg-config to
determine where to install the nautilus extension.
* Thu Jan 15 2009 vuntz@novell.com
- Import package from home:etrash.
- Add nautilus-search-tool-cleanup.patch to cleanup many things in
the source code (including removing unused dependencies, debug
statements, etc.).
* Sat Feb 23 2008 claes.backstrom@fsfe.org
- Initial Package (version 0.2.2-4)