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

# spec file for package gnome-search-tool
# Copyright (c) 2018 SUSE LINUX 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

Name:           gnome-search-tool
Version:        3.6.0
Release:        0
Summary:        Utility to search for files
License:        GPL-2.0-or-later
Group:          System/GUI/GNOME
# The applets-screenshooter.png icon files are missing in the tarball, see bgo#663191
Source1:        %{name}-16.png
Source2:        %{name}-22.png
Source3:        %{name}-24.png
Source4:        %{name}-32.png
Source5:        %{name}-48.png
Source6:        %{name}-256.png
# End bgo#663191 fixup
# PATCH-FIX-OPENSUSE gnome-search-tool-desktop-icons.patch -- Use gnome-search-tools as icon name instead of system-search.
Patch0:         gnome-search-tool-desktop-icons.patch
BuildRequires:  intltool
BuildRequires:  pkgconfig
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
BuildRequires:  yelp-tools
BuildRequires:  pkgconfig(gio-2.0) >= 2.30.0
BuildRequires:  pkgconfig(glib-2.0) >= 2.30.0
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.0.0
BuildRequires:  pkgconfig(ice)
BuildRequires:  pkgconfig(sm)
Recommends:     %{name}-lang
Conflicts:      gnome-utils < 3.3.1

The GNOME Seach Tool uses command-line tools such as find and locate
to get results.


%setup -q
%patch0 -p1

make %{?_smp_mflags}

# install the missing icons, see bgo#663191
for size in 16 22 24 32 48 256;
# Installing with -b, as this will create 'build failures' when the file existed already. It creates a ~ Backup file.
  install -b -D %{_sourcedir}/%{name}-${size}.png %{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps/%{name}.png
# end bgo#663191 fixup
%suse_update_desktop_file %{name} Filesystem
%find_lang %{name}



%license COPYING
%dir %{_datadir}/GConf
%dir %{_datadir}/GConf/gsettings

%files lang -f %{name}.lang

openSUSE Build Service is sponsored by