From 224cc668ac0db18597db32ea46560112df71f42a Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Mon, 4 Dec 2017 16:17:11 +0100 Subject: [PATCH] initial import Signed-off-by: Igor Gnatenko --- .gitignore | 1 + rust-owning_ref.spec | 57 ++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 59 insertions(+) create mode 100644 .gitignore create mode 100644 rust-owning_ref.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8b3eece --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/owning_ref-0.3.3.crate diff --git a/rust-owning_ref.spec b/rust-owning_ref.spec new file mode 100644 index 0000000..b38e339 --- /dev/null +++ b/rust-owning_ref.spec @@ -0,0 +1,57 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate owning_ref + +Name: rust-%{crate} +Version: 0.3.3 +Release: 1%{?dist} +Summary: Library for creating references that carry their owner with them + +License: MIT +URL: https://crates.io/crates/owning_ref +Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging +# [dependencies] +BuildRequires: (crate(stable_deref_trait) >= 1.0.0 with crate(stable_deref_trait) < 2.0.0) + +%description +%{summary}. + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel +A library for creating references that carry their owner with them. + +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 +%doc README.md +%{cargo_registry}/%{crate}-%{version}/ + +%changelog +* Sun Dec 03 2017 Igor Gnatenko - 0.3.3-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..13edf62 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (owning_ref-0.3.3.crate) = 260f3d77f23b092c5ca96dff6746d378caa1bac965745a71ca18eed30a12c6869af62259daafc91c8666baf95e04619ad0d8fe06b47d5e517688b35f0c59005a