From 28844adaee63832dcb94aa5b6fa83570e5adf5c6 Mon Sep 17 00:00:00 2001 From: Sergey Zhemoytel Date: Sun, 18 Sep 2022 10:34:52 +0300 Subject: [PATCH] Imported from SRPM --- .abf.yml | 2 ++ difftastic.rpmlintrc | 2 ++ difftastic.spec | 64 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 68 insertions(+) create mode 100644 .abf.yml create mode 100644 difftastic.rpmlintrc create mode 100644 difftastic.spec diff --git a/.abf.yml b/.abf.yml new file mode 100644 index 0000000..4873ffd --- /dev/null +++ b/.abf.yml @@ -0,0 +1,2 @@ +sources: + difftastic-0.36.1.tar.gz: 83c181b2472a293c4695a949b0cfc42421b443bd diff --git a/difftastic.rpmlintrc b/difftastic.rpmlintrc new file mode 100644 index 0000000..00b1e15 --- /dev/null +++ b/difftastic.rpmlintrc @@ -0,0 +1,2 @@ +addFilter("E: shared-lib-without-dependency-information") + diff --git a/difftastic.spec b/difftastic.spec new file mode 100644 index 0000000..3e9ff6c --- /dev/null +++ b/difftastic.spec @@ -0,0 +1,64 @@ +%define debug %nil +%define debug_package %nil + +Name: difftastic +Version: 0.36.1 +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 +