## START: Set by rpmautospec ## (rpmautospec version 0.8.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 # Generated by rust2rpm 28 %bcond check 1 %global crate difftastic Name: rust-difftastic Version: 0.67.0 Release: %autorelease Summary: Structural diff that understands syntax License: MIT URL: https://crates.io/crates/difftastic Source: %{crates_source} # * manpage Source1: 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 # * bump tree-sitter-ocaml from 0.23.2 to 0.24 Patch: difftastic-fix-metadata.diff # * strip out Clojure support from the codebase # * https://lists.fedoraproject.org/archives/list/legal@lists.fedoraproject.org/thread/D476PEK5GI4D5OSF4QBKZLHM77QC3LSH/ Patch2: difftastic-disable-tree-sitter-clojure-orchard.diff BuildRequires: cargo-rpm-macros >= 24 %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 BSL-1.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 OR BSL-1.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 %doc README.md %{_bindir}/difft %{_mandir}/man1/difft.1* %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep # manpage cp -p %{SOURCE1} . %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %{cargo_license_summary} %{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 ## START: Generated by rpmautospec * Sat Jan 17 2026 Fedora Release Engineering - 0.67.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Mon Dec 29 2025 Michel Lind - 0.67.0-1 - Update to version 0.67.0; Fixes RHBZ#2372928 * Fri Jul 25 2025 Fedora Release Engineering - 0.63.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Mon Apr 28 2025 Michel Lind - 0.63.0-4 - Restore license list * Thu Mar 13 2025 Michel Lind - 0.63.0-3 - Allow building against strum 0.26, for EPEL 10.0 * Thu Mar 13 2025 Benjamin A. Beasley - 0.63.0-2 - Stop depending on various compat packages * Mon Mar 03 2025 Michel Lind - 0.63.0-1 - Update to 0.63.0; Fixes: RHBZ#2333626 * Sun Jan 19 2025 Fedora Release Engineering - 0.61.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Thu Oct 24 2024 Michel Lind - 0.61.0-1 - Update to version 0.61.0; Fixes: RHBZ#2321385 * Tue Aug 20 2024 Michel Lind - 0.60.0-2 - Ship manpage * Mon Aug 19 2024 Michel Lind - 0.60.0-1 - Update to version 0.60.0; Fixes: RHBZ#2299055 * Fri Jul 19 2024 Fedora Release Engineering - 0.57.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu May 23 2024 Fabio Valentini - 0.57.0-2 - Rebuild with Rust 1.78 to fix incomplete debuginfo and backtraces * Mon Apr 22 2024 Michel Lind - 0.57.0-1 - Update to 0.57.0 (rhbz#2272600) * Fri Mar 08 2024 Michel Lind - 0.56.1-1 - Update to 0.56.1 (rhbz#2268044) * Tue Feb 06 2024 Michel Lind - 0.55.0-1 - Update to 0.55.0 (fixes: rhbz#2262305) * Fri Jan 26 2024 Fedora Release Engineering - 0.54.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Michel Lind - 0.54.0-1 - Update to 0.54.0 * Tue Dec 05 2023 Michel Lind - 0.53.1-1 - Update to 0.53.1 * Tue Aug 29 2023 Michel Lind - 0.51.1-1 - Update to 0.51.1 * Mon Aug 21 2023 Michel Alexandre Salim - 0.50.0-2 - Fix typo on License field * Mon Aug 21 2023 Michel Alexandre Salim - 0.50.0-1 - Update to 0.50.0 * Sat Aug 05 2023 Michel Alexandre Salim - 0.49.0-1 - Update to 0.49.0 * Fri Jul 21 2023 Fedora Release Engineering - 0.45.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Mon Mar 06 2023 Michel Alexandre Salim - 0.45.0-2 - Lower minimum version of assert_cmd to 2.0.4 (2.0.8 needs cargo2rpm, 2.0.5 was never packaged) - rebuild against libmimalloc-sys 0.1.30 * Sat Mar 04 2023 Michel Alexandre Salim - 0.45.0-1 - Update to 0.45.0 * Wed Feb 15 2023 Michel Alexandre Salim - 0.43.1-1 - Update to 0.43.1 * Sat Feb 04 2023 Fabio Valentini - 0.42.0-3 - Rebuild for fixed frame pointer compiler flags in Rust RPM macros * Fri Jan 20 2023 Fedora Release Engineering - 0.42.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Tue Jan 17 2023 Michel Alexandre Salim - 0.42.0-1 - Update to 0.42.0 * Thu Jan 05 2023 Michel Alexandre Salim - 0.39.0-1 - Initial Fedora package ## END: Generated by rpmautospec