File gnome-font-viewer.spec of Package gnome-font-viewer

#
# spec file for package gnome-font-viewer
#
# Copyright (c) 2016 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-font-viewer
Version:        3.20.2
Release:        0
Summary:        A font viewer utility for GNOME
License:        GPL-2.0+
Group:          System/GUI/GNOME
Url:            http://download.gnome.org/sources/gnome-font-viewer
Source:         http://download.gnome.org/sources/gnome-font-viewer/3.20/%{name}-%{version}.tar.xz
BuildRequires:  intltool
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(fontconfig)
BuildRequires:  pkgconfig(freetype2)
BuildRequires:  pkgconfig(gio-2.0) >= 2.31.0
BuildRequires:  pkgconfig(glib-2.0) >= 2.35.1
BuildRequires:  pkgconfig(gnome-desktop-3.0)
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.11.4
BuildRequires:  pkgconfig(harfbuzz) >= 0.9.9
Recommends:     %{name}-lang
Conflicts:      gnome-utils < 3.3.1
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
A utility to let you see the installed fonts at a glance.

%lang_package
%prep
%setup -q
translation-update-upstream

%build
%configure
make %{?_smp_mflags}

%install
%make_install
%suse_update_desktop_file org.gnome.font-viewer Settings Utility
%find_lang %{name}

%post
%desktop_database_post

%postun
%desktop_database_postun

%files
%defattr(-,root,root)
%doc COPYING NEWS
%{_bindir}/%{name}
%{_bindir}/gnome-thumbnail-font
%{_datadir}/applications/org.gnome.font-viewer.desktop
%{_datadir}/dbus-1/services/org.gnome.font-viewer.service
%dir %{_datadir}/thumbnailers
%{_datadir}/thumbnailers/%{name}.thumbnailer
%dir %{_datadir}/appdata/
%{_datadir}/appdata/org.gnome.font-viewer.appdata.xml

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by