File gnome-characters.spec of Package gnome-characters

#
# spec file for package gnome-characters
#
# Copyright (c) 2017 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 http://bugs.opensuse.org/
#


Name:           gnome-characters
Version:        3.26.2
Release:        0
Summary:        Character Map
License:        GPL-3.0+
Group:          System/GUI/GNOME
Url:            http://wiki.gnome.org/Design/Apps/CharacterMap
Source:         http://download.gnome.org/sources/gnome-characters/3.26/%{name}-%{version}.tar.xz
BuildRequires:  gobject-introspection-devel >= 1.35.9
BuildRequires:  intltool >= 0.50.1
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(gdk-3.0)
BuildRequires:  pkgconfig(gdk-pixbuf-2.0)
BuildRequires:  pkgconfig(gio-2.0)
BuildRequires:  pkgconfig(gjs-1.0) >= 1.43.3
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gobject-2.0)
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  pkgconfig(pango)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
# ensure default sections are filled with content
Recommends:     noto-coloremoji-fonts

%description
A simple utility application to find and insert unusual characters.

%package -n gnome-shell-search-provider-gnome-characters
Summary:        GNOME Characters -- Search Provider for GNOME Shell
Group:          System/GUI/GNOME
Supplements:    packageand(gnome-shell:%{name})
Requires:       %{name} = %{version}

%description -n gnome-shell-search-provider-gnome-characters
This package contains a search provider to enable GNOME Shell to get
search results from GNOME Characters.

%lang_package
%prep
%setup -q

%build
%configure
make %{?_smp_mflags}
%suse_update_desktop_file org.gnome.Characters -r Utilities Utility Settings

%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
find %{buildroot}%{_libdir} -name '*.la' -delete -print
%find_lang org.gnome.Characters %{name}.lang

%files
%defattr(-,root,root)
%doc README COPYING
%{_bindir}/gnome-characters
%{_datadir}/appdata/org.gnome.Characters.appdata.xml
%{_datadir}/org.gnome.Characters/
%dir %{_datadir}/gnome-shell
%dir %{_datadir}/gnome-shell/search-providers
%{_datadir}/glib-2.0/schemas/org.gnome.Characters.gschema.xml
%{_datadir}/icons/hicolor/*
%{_datadir}/applications/org.gnome.Characters.desktop
%{_datadir}/dbus-1/services/org.gnome.Characters.BackgroundService.service
%{_datadir}/dbus-1/services/org.gnome.Characters.service
%{_libdir}/org.gnome.Characters/

%files -n gnome-shell-search-provider-gnome-characters
%defattr(-,root,root)
%{_datadir}/gnome-shell/search-providers/org.gnome.Characters.search-provider.ini

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by