forked from pool/pastel
8e27ef37c3
- Update to 0.10.0: Features * Added alpha property to set command * Add support for HSV * Added support for parsing LCh colors * Added hyprpicker as --color-picker * Implement Color::from_u32 for the rgba Bugfixes * pastel pick does not display all colors in some terminals * Fix lines in kitty terminal with text_fg_override_threshold set Changes * Use PASTEL_COLOR_MODE in ansi::Brush::from_environment * Unhide colorcheck command Other * Optimization for eliminating redundant memory operations * Add colour as an alias for the colour command * Suggest to use pastel pick --help instead of -h OBS-URL: https://build.opensuse.org/package/show/graphics/pastel?expand=0&rev=4
65 lines
1.7 KiB
RPMSpec
65 lines
1.7 KiB
RPMSpec
#
|
|
# spec file for package pastel
|
|
#
|
|
# Copyright (c) 2024 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: pastel
|
|
Version: 0.10.0
|
|
Release: 0
|
|
Summary: CLI to generate, analyze, convert and manipulate colors
|
|
License: Apache-2.0 AND MIT
|
|
Group: Productivity/Graphics/Other
|
|
URL: https://github.com/sharkdp/pastel
|
|
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
Source1: vendor.tar.zst
|
|
BuildRequires: cargo-packaging
|
|
BuildRequires: zstd
|
|
Recommends: pastel-doc
|
|
|
|
%description
|
|
pastel is a command-line tool to generate, analyze, convert and manipulate
|
|
colors. It supports many different color formats and color spaces like RGB
|
|
(sRGB), HSL, CIELAB, CIELCh as well as ANSI 8-bit and 24-bit
|
|
representations.
|
|
|
|
%package doc
|
|
Summary: Documentation for pastel
|
|
BuildArch: noarch
|
|
|
|
%description doc
|
|
This package provides the documentation for pastel.
|
|
|
|
%prep
|
|
%autosetup -a1 -p1
|
|
|
|
%build
|
|
%{cargo_build}
|
|
|
|
%check
|
|
%{cargo_test}
|
|
|
|
%install
|
|
install -Dm755 target/release/%{name} -t %{buildroot}%{_bindir}
|
|
|
|
%files
|
|
%license LICENSE-MIT LICENSE-APACHE
|
|
%{_bindir}/%{name}
|
|
|
|
%files doc
|
|
%doc README* doc
|
|
|
|
%changelog
|