From 0745326f32263f15760812e2f4ed4ec2ddab95f1 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sat, 2 Dec 2017 08:16:14 +0100 Subject: [PATCH] initial import Signed-off-by: Igor Gnatenko --- .gitignore | 1 + rust-stable_deref_trait.spec | 57 ++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 59 insertions(+) create mode 100644 .gitignore create mode 100644 rust-stable_deref_trait.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a4e2276 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/stable_deref_trait-1.0.0.crate diff --git a/rust-stable_deref_trait.spec b/rust-stable_deref_trait.spec new file mode 100644 index 0000000..11a18b9 --- /dev/null +++ b/rust-stable_deref_trait.spec @@ -0,0 +1,57 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate stable_deref_trait + +Name: rust-%{crate} +Version: 1.0.0 +Release: 1%{?dist} +Summary: Unsafe marker trait that dereference to a stable address even when moved + +License: MIT or ASL 2.0 +URL: https://crates.io/crates/stable_deref_trait +Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging + +%description +%{summary}. + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel +An unsafe marker trait for types like Box and Rc that dereference to a stable +address even when moved, and hence can be used with libraries such as +owning_ref and rental. + +This package contains library source intended for building other packages +which use %{crate} from crates.io. + +%prep +%autosetup -n %{crate}-%{version} -p1 +%cargo_prep + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%files devel +%license LICENSE-MIT LICENSE-APACHE +%doc README.md +%{cargo_registry}/%{crate}-%{version}/ + +%changelog +* Fri Dec 01 2017 Igor Gnatenko - 1.0.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..4027ccc --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (stable_deref_trait-1.0.0.crate) = 92179a12faa61148297bcf19f3742afb964c13506d0768346251b73c7a805e14980c65acdce379329bb3915cb3e570c43850882021b27b2fc5c587eb9087ef5f