# Generated by rust2rpm 28 %bcond check 1 %global crate pastel %global _trivial .0 %global _buildid .1 %global __brp_mangle_shebangs /usr/bin/true Name: rust-pastel Version: 0.12.0 Release: 1%{?dist}%{?_trivial}%{?_buildid} Summary: Command-line tool to generate, analyze, convert and manipulate colors # Upstream license specification: MIT/Apache-2.0 License: MIT OR Apache-2.0 URL: https://crates.io/crates/pastel Source: %{name}-%{version}-processed.tar.gz # Manually created patch for downstream crate metadata changes # * Remove benchmark-only criterion dev-dependency # * Downstream-only: remove the output_vt100 dependency since it has no effect # except on Windows, and we do not wish to package it. An accompanying patch # removes the call into this crate. # * Exclude doc/demo-scripts/* to avoid generating a dependency on bash # * Exclude generated man pages, completions from the -devel package # * Downstream-only: bypass output_vt100 (no-op on non-Windows) BuildRequires: rust-toolset BuildRequires: openssl-devel %global _description %{expand: A command-line tool to generate, analyze, convert and manipulate colors.} %description %{_description} %package -n %{crate} Summary: %{summary} # (MIT OR Apache-2.0) AND Unicode-DFS-2016 # Apache-2.0 OR MIT # Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT # BSD-2-Clause OR Apache-2.0 OR MIT # MIT # MIT OR Apache-2.0 # Unlicense OR MIT License: %{shrink: (MIT OR Apache-2.0) AND MIT AND Unicode-DFS-2016 AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND (Unlicense OR MIT) } # LICENSE.dependencies contains a full license breakdown %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE-APACHE %license LICENSE-MIT %license LICENSE.dependencies %license cargo-vendor.txt %doc CHANGELOG.md %doc README.md %{_bindir}/pastel %doc doc/*.* %doc doc/*/ %{bash_completions_dir}/pastel.bash %{fish_completions_dir}/pastel.fish %{zsh_completions_dir}/_pastel %{_mandir}/man1/pastel.1* %{_mandir}/man1/pastel-*.1* %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep -v vendor %build export OPENSSL_NO_VENDOR=1 # Control where generated shell completions and man pages are placed export SHELL_COMPLETIONS_DIR='_completions' %cargo_build %{cargo_license_summary} %{cargo_vendor_manifest} %{cargo_license} > LICENSE.dependencies %install %cargo_install pushd _completions install -Dpm 0644 pastel.bash -t %{buildroot}/%{bash_completions_dir} install -Dpm 0644 pastel.fish -t %{buildroot}/%{fish_completions_dir} install -Dpm 0644 _pastel -t %{buildroot}/%{zsh_completions_dir} # There is also a PowerShell completions file, _pastel.ps1, but nowhere useful # to install it. install -Dpm 0644 *.1 -t %{buildroot}%{_mandir}/man1 popd %if %{with check} %check %cargo_test %endif %changelog * Fri Jul 03 2026 AL2023 rebuild - %{version}-1 - AL2023 rust-toolset vendored binary build