Initial Fedora package

Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
This commit is contained in:
Michel Alexandre Salim 2023-01-05 15:08:52 -06:00
parent 72ac8bc627
commit 724db30432
No known key found for this signature in database
GPG Key ID: 8B229D2F7CCC04F2
4 changed files with 74 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/difftastic-0.39.0.crate

View File

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

61
rust-difftastic.spec Normal file
View File

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

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (difftastic-0.39.0.crate) = 16acfa2d3b0002bf104dfcffa9c54294d22b2abd8748f3398004aa5b70a3995a5fd598a14ce287e3a1dd24f3d2790d77be7e909fabe4caa87cab8862a79e6da8