From 2ff3302bd79d6dbef89ea29a66b6b9176de7329e Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Mon, 10 Jan 2022 21:01:44 +0100 Subject: [PATCH] Initial import (spin 0.5 compat package) --- .gitignore | 4 +++ README.md | 3 -- rust-spin0.5.spec | 72 +++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 77 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-spin0.5.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2e1f28b --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/results_*/ +/*.src.rpm + +/spin-0.5.2.crate diff --git a/README.md b/README.md deleted file mode 100644 index fcb532a..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-spin0.5 - -The rust-spin0.5 package diff --git a/rust-spin0.5.spec b/rust-spin0.5.spec new file mode 100644 index 0000000..c228622 --- /dev/null +++ b/rust-spin0.5.spec @@ -0,0 +1,72 @@ +# Generated by rust2rpm 20 +%bcond_without check +%global debug_package %{nil} + +%global crate spin + +Name: rust-%{crate}0.5 +Version: 0.5.2 +Release: %autorelease +Summary: Synchronization primitives based on spinning + +# Upstream license specification: MIT +License: MIT +URL: https://crates.io/crates/spin +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging + +%global _description %{expand: +Synchronization primitives based on spinning. They may contain data, are usable +without `std`, and static initializers are available.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages which +use the "%{crate}" crate. + +%files devel +%license LICENSE +%doc README.md +%{cargo_registry}/%{crate}-%{version_no_tilde}/ + +%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 the "default" feature of the "%{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 +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..19bf8c0 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (spin-0.5.2.crate) = fc57f7906da2b7a298c5f89215e881e8827b4d9f934dbf138338e0ee30122d8459483be566268fa374b41d63d8dbf65d42e0b322535ba35c827d7edb2176f267