From d4921b1ef18baad3c7c0bc22b39558d6725ab173 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Tue, 7 Nov 2017 18:21:24 +0100 Subject: [PATCH] initial import Signed-off-by: Igor Gnatenko --- .gitignore | 1 + rust-data-encoding.spec | 58 +++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 60 insertions(+) create mode 100644 .gitignore create mode 100644 rust-data-encoding.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..575edff --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/data-encoding-2.0.0.crate diff --git a/rust-data-encoding.spec b/rust-data-encoding.spec new file mode 100644 index 0000000..5ee10fd --- /dev/null +++ b/rust-data-encoding.spec @@ -0,0 +1,58 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate data-encoding + +Name: rust-%{crate} +Version: 2.0.0 +Release: 1%{?dist} +Summary: Efficient and customizable data-encoding functions + +# https://github.com/ia0/data-encoding/issues/12 +License: MIT +URL: https://crates.io/crates/data-encoding +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 +Efficient and customizable data-encoding functions. + +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 +* Tue Nov 07 2017 Igor Gnatenko - 2.0.0-1 +- Update to 2.0.0 + +* Fri Jun 16 2017 Igor Gnatenko - 1.2.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..bb35b4c --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (data-encoding-2.0.0.crate) = 21c33727ee1599f4e957fb679cdb94c439217984a4190e54c89ff976bee39e31ab49d5ade621cd088fde16a60b78f86d560b299b9b41047201588badcccf88aa