File contrast.spec of Package contrast
#
# spec file for package contrast
#
# Copyright (c) 2024 mantarimay
# Copyright (c) 2023 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/
#
%define lname org.gnome.design.Contrast
%define lurl 06d276a9bf45f81a548c4dcefb27437d
Name: contrast
Version: 0.0.11
Release: 0
Summary: Check difference between two colors
License: GPL-3.0-or-later
URL: https://gitlab.gnome.org/World/design/contrast
Source: https://gitlab.gnome.org/-/project/8128/uploads/%{lurl}/%{name}-%{version}.tar.xz
BuildRequires: appstream-glib
BuildRequires: cargo-packaging
BuildRequires: desktop-file-utils
BuildRequires: meson
BuildRequires: pkgconfig(gtk4) >= 4.13.0
BuildRequires: pkgconfig(libadwaita-1)
%description
Check whether the contrast between two colors meet the WCAG requirements.
%lang_package
%prep
%autosetup
%build
%meson
%meson_build
%install
%meson_install
%find_lang %{name}
%check
%meson_test
%files
%license LICENSE*
%doc README*
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/applications/%{lname}.desktop
%{_datadir}/icons/hicolor/*/*/%{lname}*svg
%{_datadir}/metainfo/%{lname}.metainfo.xml
%files lang -f %{name}.lang
%changelog