From a0e3eb40d87e34630bd8fbebcf10855c1278e0fe Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Oct 23 2017 13:29:23 +0000 Subject: initial import Signed-off-by: Igor Gnatenko --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0b0c28a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/void-1.0.2.crate diff --git a/rust-void.spec b/rust-void.spec new file mode 100644 index 0000000..82c9e60 --- /dev/null +++ b/rust-void.spec @@ -0,0 +1,58 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate void + +Name: rust-%{crate} +Version: 1.0.2 +Release: 2%{?dist} +Summary: Uninhabited void type for use in statically impossible cases + +# https://github.com/reem/rust-void/issues/15 +License: MIT +URL: https://crates.io/crates/void +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 +The uninhabited void type for use in statically impossible cases. + +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 +%doc README.md +%{cargo_registry}/%{crate}-%{version}/ + +%changelog +* Wed Jun 14 2017 Igor Gnatenko - 1.0.2-2 +- Port to use rust-packaging + +* Sat Feb 18 2017 Igor Gnatenko - 1.0.2-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..e77c415 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (void-1.0.2.crate) = 1cc7d282600dc0164d7e410aa895d5dc99de1174991549c6733c94cc2027026517f66797751d737869eae58c560fa26edbf43f36b3015eb2fd99828fe40e0aa1