From 29558f820fd13017b901d332772f5679f99f129d Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Nov 16 2017 13:33:48 +0000 Subject: initial import Signed-off-by: Igor Gnatenko --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..54d76a4 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/base100-0.4.1.crate diff --git a/base100-0.4.1-fix-metadata.diff b/base100-0.4.1-fix-metadata.diff new file mode 100644 index 0000000..0edbc69 --- /dev/null +++ b/base100-0.4.1-fix-metadata.diff @@ -0,0 +1,12 @@ +--- base100-0.4.1/Cargo.toml 1970-01-01T01:00:00+01:00 ++++ base100-0.4.1/Cargo.toml 2017-11-16T10:17:39.334783+01:00 +@@ -33,9 +33,4 @@ + version = "2.19" + features = ["yaml"] + +-[dependencies.stdsimd] +-version = "0.0.3" +-optional = true +- + [features] +-simd = ["stdsimd"] diff --git a/rust-base100.spec b/rust-base100.spec new file mode 100644 index 0000000..21a3454 --- /dev/null +++ b/rust-base100.spec @@ -0,0 +1,59 @@ +# Generated by rust2rpm +# Tests require nightly compiler +%bcond_with check + +%global crate base100 + +Name: rust-%{crate} +Version: 0.4.1 +Release: 1%{?dist} +Summary: Encode your data into emoji + +License: AGPLv3+ +URL: https://crates.io/crates/base100 +Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate +# Initial patched metadata +# * No simd +Patch0: base100-0.4.1-fix-metadata.diff + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging +# [dependencies] +BuildRequires: ((crate(clap) >= 2.19.0 with crate(clap) < 3.0.0) with crate(clap/yaml)) + +%description +%{summary}. + +%package -n %{crate} +Summary: %{summary} + +%description -n %{crate} +%{summary}. + +%prep +%autosetup -n %{crate}-%{version} -p1 +%cargo_prep + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%files -n %{crate} +%license LICENSE +%doc README.md +%{_bindir}/base100 + +%changelog +* Thu Nov 16 2017 Igor Gnatenko - 0.4.1-1 +- Update to 0.4.1 + +* Fri Oct 06 2017 Igor Gnatenko - 0.2.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..3269c5c --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (base100-0.4.1.crate) = a6079bf885b6107ab6811f5c086abff262d75715f137535bde02ccde1218a8e14c84070f28553b51b535db86a16a8874146462d8fc70795e9bc6142843bcb246