File icon-tool.spec of Package icon-tool
#
# spec file for package icon-tool
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 Stasiek Michalski <hellcp@opensuse.org>.
#
# 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 https://bugs.opensuse.org/
#
%define _appid org.gnome.IconPreview
Name: icon-tool
Version: 0.9.4
Release: 0
Summary: A simple utility for testing out icons
License: GPL-3.0-or-later
Group: Productivity/Graphics/Viewers
URL: https://gitlab.gnome.org/World/%{name}
Source0: https://gitlab.gnome.org/World/%{name}/-/archive/%{version}/%{name}-%{version}.tar.gz
Source1: https://gitlab.gnome.org/Teams/Design/HIG-app-icons/-/archive/master/HIG-app-icons-master.tar.gz
BuildRequires: meson
BuildRequires: ninja
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
BuildRequires: vala
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(libdazzle-1.0)
BuildRequires: pkgconfig(libhandy-0.0)
BuildRequires: pkgconfig(librsvg-2.0)
%description
Preview your new Gnome icons compared to other icons on plethora of backgrounds.
%prep
%setup -q -a 1
cp -r HIG-app-icons-master/* src/hig/
%build
%meson
%meson_build
%install
%meson_install
%suse_update_desktop_file -G "Preview Icons" -r %{_appid} "Graphics Viewer"
%suse_update_desktop_file -G "Preview Icon Palette" -r %{_appid}.Palette "Graphics Viewer"
%files
%{_datadir}/applications/%{_appid}.desktop
%{_datadir}/applications/%{_appid}.Palette.desktop
%{_datadir}/icons/hicolor/scalable/apps/%{_appid}.svg
%{_datadir}/icons/hicolor/scalable/apps/%{_appid}.Palette.svg
%{_datadir}/icons/hicolor/symbolic/apps/%{_appid}-symbolic.svg
%{_datadir}/icons/hicolor/symbolic/apps/%{_appid}.Palette-symbolic.svg
%{_bindir}/gnome-icon-preview
%{_bindir}/gnome-icon-palette
%{_datadir}/dbus-1/services/%{_appid}.service
%{_datadir}/dbus-1/services/%{_appid}.Palette.service
%{_datadir}/metainfo/%{_appid}.appdata.xml
%changelog