From 2530ade7e8795032241a6367c52121d6ea105ff6 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Mon, 6 Nov 2017 17:15:27 +0100 Subject: [PATCH] initial import Signed-off-by: Igor Gnatenko --- .gitignore | 1 + rust-fnv.spec | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 60 insertions(+) create mode 100644 .gitignore create mode 100644 rust-fnv.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a1c2566 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/fnv-1.0.5.crate diff --git a/rust-fnv.spec b/rust-fnv.spec new file mode 100644 index 0000000..c3b9770 --- /dev/null +++ b/rust-fnv.spec @@ -0,0 +1,58 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate fnv + +Name: rust-%{crate} +Version: 1.0.5 +Release: 2%{?dist} +Summary: Fowler–Noll–Vo hash function + +# https://github.com/servo/rust-fnv/issues/13 +License: ASL 2.0 or MIT +URL: https://crates.io/crates/fnv +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 +Fowler–Noll–Vo hash function. + +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.5-2 +- Port to use rust-packaging + +* Sat Feb 25 2017 Igor Gnatenko - 1.0.5-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..90b4d10 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (fnv-1.0.5.crate) = a851ed060bf49224436acb1b5cc3125d30a3b527be9d7abd09f4170eee6243de8067b0bae5b136e62fdb8ee026e42a150109e90fcdf4cc4258f4de045d6069a8