From eb69dc5dd349e08145cd17c30a8b3b4fa75bdc01 Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Thu, 14 May 2020 15:46:32 +0200 Subject: [PATCH] Initial import Signed-off-by: Igor Raits --- .gitignore | 1 + rust-zoxide.spec | 62 ++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 64 insertions(+) create mode 100644 .gitignore create mode 100644 rust-zoxide.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2599719 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/zoxide-0.4.0.crate diff --git a/rust-zoxide.spec b/rust-zoxide.spec new file mode 100644 index 0000000..7ef8407 --- /dev/null +++ b/rust-zoxide.spec @@ -0,0 +1,62 @@ +# Generated by rust2rpm 13 +%bcond_without check +%global __cargo_skip_build 0 + +%global crate zoxide + +Name: rust-%{crate} +Version: 0.4.0 +Release: 1%{?dist} +Summary: Faster way to navigate your filesystem + +# Upstream license specification: MIT +License: MIT +URL: https://crates.io/crates/zoxide +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging + +%global _description %{expand: +Faster way to navigate your filesystem.} + +%description %{_description} + +%package -n %{crate} +Summary: %{summary} +# * ASL 2.0 or MIT +# * CC0 +# * MIT +# * MIT or ASL 2.0 +# * Unlicense or MIT +License: MIT and CC0 + +%description -n %{crate} %{_description} + +%files -n %{crate} +%license LICENSE +%doc README.md CHANGELOG.md +%{_bindir}/zoxide + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Thu May 14 15:19:09 CEST 2020 Igor Raits - 0.4.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..b3b28f5 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (zoxide-0.4.0.crate) = d78bf65e292bb87167ca03c4cb7f855affb25627d9f10026d4fb857ce33d9ca966f341f932e1c8ccfc10aa241d761fd950ec1aaa199023fd47eae4a80cb237a8