From 1ddcc33c35938adbe923a955166b2142af031bfe Mon Sep 17 00:00:00 2001 From: Robert Fairley Date: Apr 30 2020 15:35:38 +0000 Subject: Initial package Signed-off-by: Robert Fairley --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9f21ef3 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/vmw_backdoor-0.1.2.crate diff --git a/rust-vmw_backdoor.spec b/rust-vmw_backdoor.spec new file mode 100644 index 0000000..7255d4c --- /dev/null +++ b/rust-vmw_backdoor.spec @@ -0,0 +1,75 @@ +# Generated by rust2rpm 13 +%bcond_without check +%global debug_package %{nil} + +%global crate vmw_backdoor + +Name: rust-%{crate} +Version: 0.1.2 +Release: 1%{?dist} +Summary: Pure-Rust library for VMware host-guest protocol ("VMXh backdoor") + +# Upstream license specification: MIT/Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/vmw_backdoor +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Pure-Rust library for VMware host-guest protocol ("VMXh backdoor").} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages +which use "%{crate}" crate. + +%files devel +%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%doc README.md +%license COPYRIGHT LICENSE-APACHE-2.0 LICENSE-MIT + +%package -n %{name}+default-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+default-devel %{_description} + +This package contains library source intended for building other packages +which use "default" feature of "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%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 +* Sat Apr 25 15:45:50 UTC 2020 Robert Fairley - 0.1.2-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..c4de930 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (vmw_backdoor-0.1.2.crate) = 67bc4e9dab4e9db4f2c0e3ead4448d1ecbbdbcae383172c889059a3f8f1ad96c01b8e192f668ce81f38f11326f599313aeb2df711ebbd937d82fac8163a6fb6a