## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global _default_patch_fuzz 2 # Generated by rust2rpm 26 %bcond_without check %global crate eza Name: rust-eza Version: 0.19.3 Release: %autorelease -e patched Summary: Modern replacement for ls License: MIT URL: https://crates.io/crates/eza Source: %{crates_source} # Automatically generated patch to strip dependencies and normalize metadata Patch: eza-fix-metadata-auto.diff # Manually created patch for downstream crate metadata changes # * temporarily downgrade palette dependency from 0.7.6 to 0.7.5 # * drop feature for statically linking with OpenSSL # * drop unused, benchmark-only criterion dev-dependency # * drop features that are specific to NixOS packaging # * exclude files that are only useful for upstream development Patch: eza-fix-metadata.diff Patch: filesystem-optimizations.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: A modern replacement for ls.} %description %{_description} %package -n %{crate} Summary: %{summary} # (MIT OR Apache-2.0) AND BSD-3-Clause AND GPL-2.0-only WITH GCC-exception-2.0 AND MIT # Apache-2.0 # Apache-2.0 OR MIT # Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT # MIT # MIT OR Apache-2.0 # MIT OR Apache-2.0 OR Zlib # Unlicense OR MIT # Zlib OR Apache-2.0 OR MIT License: MIT AND Apache-2.0 AND BSD-3-Clause AND GPL-2.0-only WITH GCC-exception-2.0 AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (MIT OR Apache-2.0 OR Zlib) AND (Unlicense OR MIT) # LICENSE.dependencies contains a full license breakdown # exa is unmaintained upstream and was retired - development continued as eza Obsoletes: exa < 0.10.1-13 # exa was retired in Fedora 39 - remove Provides and Obsoletes in Fedora 41 Provides: exa = %{version}-%{release} %description -n %{crate} %{_description} %files -n %{crate} %license LICENCE %license LICENSE.dependencies %doc CHANGELOG.md %doc CODE_OF_CONDUCT.md %doc CONTRIBUTING.md %doc INSTALL.md %doc README.md %doc SECURITY.md %{_bindir}/eza %{_bindir}/exa %{bash_completions_dir}/eza %{fish_completions_dir}/eza.fish %{zsh_completions_dir}/_eza %package devel Summary: %{summary} BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel %license %{crate_instdir}/LICENCE %doc %{crate_instdir}/CHANGELOG.md %doc %{crate_instdir}/CODE_OF_CONDUCT.md %doc %{crate_instdir}/CONTRIBUTING.md %doc %{crate_instdir}/INSTALL.md %doc %{crate_instdir}/README.md %doc %{crate_instdir}/SECURITY.md %{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+default-devel %{_description} This package contains library source intended for building other packages which use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+git-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+git-devel %{_description} This package contains library source intended for building other packages which use the "git" feature of the "%{crate}" crate. %files -n %{name}+git-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+git2-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+git2-devel %{_description} This package contains library source intended for building other packages which use the "git2" feature of the "%{crate}" crate. %files -n %{name}+git2-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %install %cargo_install # create compatibility symlink for exa ln -s eza %{buildroot}/%{_bindir}/exa # install shell completions install -Dpm 0644 completions/bash/eza -t %{buildroot}/%{bash_completions_dir}/ install -Dpm 0644 completions/fish/eza.fish -t %{buildroot}/%{fish_completions_dir}/ install -Dpm 0644 completions/zsh/_eza -t %{buildroot}/%{zsh_completions_dir}/ %if %{with check} %check %cargo_test %endif %changelog ## START: Generated by rpmautospec * Thu Oct 31 2024 Unknown User - 0.19.3-2.patched - Uncommitted changes * Tue Oct 29 2024 Fabio Valentini - 0.19.3-1 - Update to version 0.19.3 * Fri Jul 19 2024 Fedora Release Engineering - 0.18.11-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu Jun 13 2024 Fabio Valentini - 0.18.11-1 - Update to version 0.18.11 * Thu May 23 2024 Fabio Valentini - 0.17.3-3 - Rebuild with Rust 1.78 to fix incomplete debuginfo and backtraces * Tue Feb 13 2024 Fabio Valentini - 0.17.3-2 - Rebuild for CVE-2024-24575 and CVE-2024-24577 in libgit2 * Tue Jan 30 2024 Fabio Valentini - 0.17.3-1 - Update to version 0.17.3; Fixes RHBZ#2259360 * Fri Jan 26 2024 Fedora Release Engineering - 0.17.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 12 2024 Fabio Valentini - 0.17.1-2 - Add Obsoletes for exa (unmaintained upstream, retired in Fedora) * Thu Jan 11 2024 Fabio Valentini - 0.17.1-1 - Update to version 0.17.1; Fixes RHBZ#2245082 * Thu Jan 11 2024 Fabio Valentini - 0.16.1-1 - Update to version 0.16.1 * Tue Oct 17 2023 Fabio Valentini - 0.14.2-1 - Update to version 0.14.2; Fixes RHBZ#2241736 * Thu Sep 28 2023 Fabio Valentini - 0.13.1-1 - Initial import (#2240660) ## END: Generated by rpmautospec