%define debug %nil %define debug_package %nil Name: difftastic Version: 0.47.0 Release: 1 Summary: A diff that understands syntax URL: https://difftastic.wilfred.me.uk Source0: https://github.com/Wilfred/difftastic/archive/%{version}/%{name}-%{version}.tar.gz Source1000: %{name}.rpmlintrc License: MIT Group: Development/Other Provides: difft BuildRequires: rust BuildRequires: cargo BuildRequires: git-core BuildRequires: upx %description Difftastic is an experimental diff tool that compares files based on their syntax. Difftastic supports the following languages: Bash C C++ C# Clojure Common Lisp CSS Dart Elixir Emacs Lisp Go Haskell Janet Java JavaScript (and JSX) JSON Lua Nix OCaml PHP Python Ruby Rust Scala TypeScript (and TSX) %prep %setup -q %build cargo build --release upx ./target/release/difft %install install -Dm0755 ./target/release/difft %{buildroot}%{_bindir}/difft %files %doc README.md LICENSE %{_bindir}/difft