parent
72ac8bc627
commit
724db30432
@ -0,0 +1 @@
|
||||
/difftastic-0.39.0.crate
|
@ -0,0 +1,11 @@
|
||||
--- difftastic-0.39.0/Cargo.toml 1970-01-01T00:00:01+00:00
|
||||
+++ difftastic-0.39.0/Cargo.toml 2022-12-21T21:12:30.563928+00:00
|
||||
@@ -55,7 +55,7 @@
|
||||
version = "0.2.108"
|
||||
|
||||
[dependencies.libmimalloc-sys]
|
||||
-version = "=0.1.24"
|
||||
+version = "0.1"
|
||||
|
||||
[dependencies.log]
|
||||
version = "0.4.14"
|
@ -0,0 +1,61 @@
|
||||
# Generated by rust2rpm 23
|
||||
%bcond_without check
|
||||
|
||||
%global crate difftastic
|
||||
|
||||
Name: rust-difftastic
|
||||
Version: 0.39.0
|
||||
Release: %autorelease
|
||||
Summary: Structural diff that understands syntax
|
||||
|
||||
License: MIT
|
||||
URL: https://crates.io/crates/difftastic
|
||||
Source: %{crates_source}
|
||||
# Manually created patch for downstream crate metadata changes
|
||||
Patch: difftastic-fix-metadata.diff
|
||||
|
||||
BuildRequires: rust-packaging >= 21
|
||||
|
||||
%global _description %{expand:
|
||||
Structural diff that understands syntax.}
|
||||
|
||||
%description %{_description}
|
||||
|
||||
%package -n %{crate}
|
||||
Summary: %{summary}
|
||||
License: (Apache-2.0 OR MIT) AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception OR MIT) AND MIT AND (MIT OR Unlicense) AND Zlib
|
||||
# LICENSE.dependencies contains a full license breakdown
|
||||
|
||||
%description -n %{crate} %{_description}
|
||||
|
||||
%files -n %{crate}
|
||||
%license LICENSE
|
||||
%if 0%{?fedora}
|
||||
%license LICENSE.dependencies
|
||||
%endif
|
||||
%doc README.md
|
||||
%{_bindir}/difft
|
||||
|
||||
%prep
|
||||
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
||||
%cargo_prep
|
||||
|
||||
%generate_buildrequires
|
||||
%cargo_generate_buildrequires
|
||||
|
||||
%build
|
||||
%cargo_build
|
||||
%if 0%{?fedora}
|
||||
%{cargo_license} > LICENSE.dependencies
|
||||
%endif
|
||||
|
||||
%install
|
||||
%cargo_install
|
||||
|
||||
%if %{with check}
|
||||
%check
|
||||
%cargo_test
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
%autochangelog
|
Loading…
Reference in new issue