# Generated by rust2rpm 28 %bcond check 1 %global crate just %global _trivial .0 %global _buildid .1 %global __brp_mangle_shebangs /usr/bin/true Name: rust-just Version: 1.55.1 Release: 1%{?dist}%{?_trivial}%{?_buildid} Summary: Just a command runner License: CC0-1.0 URL: https://crates.io/crates/just Source: %{name}-%{version}-processed.tar.gz # Manually created patch for downstream crate metadata changes # * Relax 'clap_mangen' dependency from 0.3.0 to >=0.2,<0.4 # * Relax 'snafu' dependency from 0.9.0 to >=0.8,<0.10 # * Unpin 'clap_complete' # * Exclude unwanted files BuildRequires: rust-toolset BuildRequires: openssl-devel %global _description %{expand: just is a handy way to save and run project-specific commands.} %description %{_description} %package -n %{crate} Summary: %{summary} # (MIT OR Apache-2.0) AND Unicode-DFS-2016 # Apache-2.0 # Apache-2.0 OR Apache-2.0 WITH LLVM-exception # Apache-2.0 OR MIT # Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT # BSD-2-Clause # CC0-1.0 # MIT # MIT OR Apache-2.0 # MIT-0 OR Apache-2.0 # MPL-2.0 # Unlicense OR MIT License: %{shrink: CC0-1.0 AND Apache-2.0 AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND MIT AND (MIT-0 OR Apache-2.0) AND MPL-2.0 AND Unicode-DFS-2016 AND (Unlicense OR MIT) } # LICENSE.dependencies contains a full license breakdown # needed for --choose flag Recommends: fzf %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE %license LICENSE.dependencies %license cargo-vendor.txt %doc CHANGELOG.md %doc CONTRIBUTING.md %doc GRAMMAR.md %doc README.md %doc README.中文.md %{_bindir}/just %doc examples %{_mandir}/man1/just.1* %{bash_completions_dir}/just %{fish_completions_dir}/just.fish %{zsh_completions_dir}/_just %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep -v vendor %build export OPENSSL_NO_VENDOR=1 %cargo_build %{cargo_license_summary} %{cargo_vendor_manifest} %{cargo_license} > LICENSE.dependencies # Generate man page target/rpm/just --man > target/rpm/just.1 %install %cargo_install install -D -m644 -pv target/rpm/just.1 %{buildroot}%{_mandir}/man1/just.1 install -D -m644 -pv completions/just.bash %{buildroot}%{bash_completions_dir}/just install -D -m644 -pv completions/just.fish %{buildroot}%{fish_completions_dir}/just.fish install -D -m644 -pv completions/just.zsh %{buildroot}%{zsh_completions_dir}/_just %if %{with check} %check # Required for directories::runtime_dir export XDG_RUNTIME_DIR=$(mktemp -d) # * completions::bash test script does not work outside of git checkout # * completions::tests::scripts requires pinned version of clap_complete %{cargo_test -- -- %{shrink: --skip completions::bash --skip completions::tests::scripts }} %endif %changelog * Fri Jul 03 2026 AL2023 rebuild - %{version}-1 - AL2023 rust-toolset vendored binary build