File gcolor3.spec of Package gcolor3
#
# spec file for package gcolor3
#
# Copyright (c) 2022 SUSE LLC
#
# 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/
#
Name: gcolor3
Version: 2.4.0
Release: 0
Summary: A color chooser written in GTK3 (like gcolor2)
License: GPL-2.0-only
Group: Productivity/Graphics/Other
URL: https://www.hjdskes.nl/projects/gcolor3/
Source0: https://gitlab.gnome.org/World/gcolor3/-/archive/v%{version}/gcolor3-v%{version}.tar.bz2
Patch0: gcolor3-suse.patch
Patch1: gcolor-libportal-gtk3.patch
BuildRequires: cmake
BuildRequires: git
BuildRequires: gnome-common
BuildRequires: hicolor-icon-theme
BuildRequires: meson
BuildRequires: ninja
BuildRequires: pkgconfig
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(libportal-gtk3) >= 0.5
%description
Gcolor3 enables picking the color from any pixel on the screen. It
also offers a palette to mix and match a couple of colors together.
Colors can be saved and retrieved.
%prep
%autosetup -p1 -n gcolor3-v%{version}
%build
%meson
%meson_build
%install
%meson_install
%find_lang gcolor3
%files -f gcolor3.lang
%license LICENSE
%doc README.md
%attr(0755,-,-) %{_bindir}/%{name}
%{_mandir}/man1/%{name}.1%{?ext_man}
%{_datadir}/metainfo/nl.hjdskes.gcolor3.appdata.xml
%{_datadir}/applications/nl.hjdskes.gcolor3.desktop
%{_datadir}/icons/hicolor/scalable/apps/nl.hjdskes.gcolor3.svg
%{_datadir}/icons/hicolor/symbolic/apps/nl.hjdskes.gcolor3-symbolic.svg
%changelog