Imported from SRPM

This commit is contained in:
Sergey Zhemoytel 2022-09-18 10:34:52 +03:00
commit 28844adaee
3 changed files with 68 additions and 0 deletions

2
.abf.yml Normal file
View file

@ -0,0 +1,2 @@
sources:
difftastic-0.36.1.tar.gz: 83c181b2472a293c4695a949b0cfc42421b443bd

2
difftastic.rpmlintrc Normal file
View file

@ -0,0 +1,2 @@
addFilter("E: shared-lib-without-dependency-information")

64
difftastic.spec Normal file
View file

@ -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