From 16e0ca726b8d022c429b8a661beb15d5a625b8e2 Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Sat, 2 May 2020 12:12:26 +0200 Subject: [PATCH] Initial import Signed-off-by: Igor Raits --- .gitignore | 1 + git-delta-fix-metadata.diff | 11 ++++++ rust-git-delta.spec | 76 +++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 89 insertions(+) create mode 100644 .gitignore create mode 100644 git-delta-fix-metadata.diff create mode 100644 rust-git-delta.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d4abc2f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/git-delta-0.1.1.crate diff --git a/git-delta-fix-metadata.diff b/git-delta-fix-metadata.diff new file mode 100644 index 0000000..d3c1947 --- /dev/null +++ b/git-delta-fix-metadata.diff @@ -0,0 +1,11 @@ +--- git-delta-0.1.1/Cargo.toml 2020-04-27T00:06:03+00:00 ++++ git-delta-0.1.1/Cargo.toml 2020-05-02T08:50:26.849017+00:00 +@@ -39,7 +39,7 @@ + version = "0.1.2" + + [dependencies.console] +-version = "0.7.7" ++version = "0.11.2" + + [dependencies.dirs] + version = "2.0" diff --git a/rust-git-delta.spec b/rust-git-delta.spec new file mode 100644 index 0000000..eb16cad --- /dev/null +++ b/rust-git-delta.spec @@ -0,0 +1,76 @@ +# Generated by rust2rpm 13 +%bcond_without check +%global __cargo_skip_build 0 + +%global crate git-delta + +Name: rust-%{crate} +Version: 0.1.1 +Release: 1%{?dist} +Summary: Syntax-highlighting pager for git + +# Upstream license specification: MIT +License: MIT +URL: https://crates.io/crates/git-delta +Source: %{crates_source} +# Initial patched metadata +# * Update console to 0.11, https://github.com/dandavison/delta/pull/143 +Patch0: git-delta-fix-metadata.diff + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging + +%global _description %{expand: +Syntax-highlighting pager for git.} + +%description %{_description} + +%package -n %{crate} +Summary: %{summary} +# Install all deps (without check), grab their licenses and make it simple +# * ASL 2.0 +# * ASL 2.0 or Boost +# * ASL 2.0 or MIT +# * BSD +# * ISC +# * LGPLv3+ +# * MIT +# * MIT or ASL 2.0 +# * Unlicense or MIT +# * zlib +License: MIT and ASL 2.0 and BSD and ISC and LGPLv3+ and zlib + +%description -n %{crate} %{_description} + +%files -n %{crate} +%license LICENSE +%doc README.md +%{_bindir}/delta +%dir %{_datadir}/bash-completion +%dir %{_datadir}/bash-completion/completions +%{_datadir}/bash-completion/completions/delta.bash + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install +install -Dpm0644 completion/bash/completion.sh \ + -T %{buildroot}%{_datadir}/bash-completion/completions/delta.bash + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Sat May 02 10:50:26 CEST 2020 Igor Raits - 0.1.1-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..988c22d --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (git-delta-0.1.1.crate) = 505eb9d8bc031d62d57a905f2733dcdf3aeff06f8057f5fe92542f415575ffb8a566b34d72a81feda704791915649b4ecbbc5d015a91f104d3a91f249de53bb8