# Generated by rust2rpm 28 %bcond check 1 %global crate difftastic %global _trivial .0 %global _buildid .1 %global __brp_mangle_shebangs /usr/bin/true Name: rust-difftastic Version: 0.69.0 Release: 1%{?dist}%{?_trivial}%{?_buildid} Summary: Structural diff that understands syntax License: MIT URL: https://crates.io/crates/difftastic Source: %{name}-%{version}-processed.tar.gz # * manpage Source2: https://github.com/Wilfred/difftastic/raw/%{version}/difft.1 # Manually created patch for downstream crate metadata changes # * drop crossterm/windows # * bump hashbrown from 0.14 to 0.16 # * relax upper bound on ignore # * allow strum 0.27: https://github.com/Wilfred/difftastic/pull/822 # * temporarily drop tree-sitter-clojure-orchard, pending legal clarification # * allow tikv-jemallocator 0.7: https://github.com/Wilfred/difftastic/pull/985 # * strip out Clojure support from the codebase # * https://lists.fedoraproject.org/archives/list/legal@lists.fedoraproject.org/thread/D476PEK5GI4D5OSF4QBKZLHM77QC3LSH/ BuildRequires: rust-toolset BuildRequires: openssl-devel %global _description %{expand: A structural diff that understands syntax.} %description %{_description} %package -n %{crate} Summary: %{summary} # (Apache-2.0 OR MIT) AND BSD-3-Clause # (MIT OR Apache-2.0) AND Unicode-DFS-2016 # Apache-2.0 # Apache-2.0 OR MIT # Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT # CECILL-C # MIT # MIT AND Unicode-DFS-2016 AND BSD-2-Clause AND BSD-3-Clause AND LicenseRef-Fedora-Public-Domain # MIT OR Apache-2.0 # Unlicense OR MIT # Zlib License: %{shrink: MIT AND (Apache-2.0 OR MIT) AND BSD-3-Clause AND Unicode-DFS-2016 AND Apache-2.0 AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND CECILL-C AND BSD-2-Clause AND LicenseRef-Fedora-Public-Domain AND (Unlicense OR MIT) AND Zlib } # LICENSE.dependencies contains a full license breakdown %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE %license LICENSE.dependencies %license cargo-vendor.txt %doc README.md %{_bindir}/difft %{_mandir}/man1/difft.1* %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep -v vendor # manpage cp -p %{SOURCE2} . %build export OPENSSL_NO_VENDOR=1 %cargo_build %{cargo_license_summary} %{cargo_vendor_manifest} %{cargo_license} > LICENSE.dependencies %install %cargo_install # install manpage mkdir -p %{buildroot}%{_mandir}/man1 cp -p difft.1 %{buildroot}%{_mandir}/man1/ %if %{with check} %check %cargo_test %endif %changelog * Fri Jul 03 2026 AL2023 rebuild - %{version}-1 - AL2023 rust-toolset vendored binary build