From 695a96617969f81249563d2d2ef86ecfc9b4e1b9 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Dec 04 2017 15:16:41 +0000 Subject: initial import Signed-off-by: Igor Gnatenko --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..29bf558 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/test-assembler-0.1.5.crate diff --git a/rust-test-assembler.spec b/rust-test-assembler.spec new file mode 100644 index 0000000..dea499a --- /dev/null +++ b/rust-test-assembler.spec @@ -0,0 +1,60 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate test-assembler + +Name: rust-%{crate} +Version: 0.1.5 +Release: 1%{?dist} +Summary: Set of types for building complex binary streams + +License: MIT +URL: https://crates.io/crates/test-assembler +Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate +# Initial patched metadata +# * Bump byteorder to 1, https://github.com/luser/rust-test-assembler/pull/7 +Patch0: test-assembler-0.1.5-fix-metadata.diff + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging +# [dependencies] +BuildRequires: (crate(byteorder) >= 1.0.0 with crate(byteorder) < 2.0.0) + +%description +%{summary}. + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel +A set of types for building complex binary streams. + +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.1.5-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..3880970 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (test-assembler-0.1.5.crate) = 7982da4fce56e50c75c163943454d2f6cb4438a2357c55baf2cf574ad7bdb5c4fb5f9be51a84ecdbfb3045ffc9be5318ba1ffb1e1a13dc8318851b335b0b235f diff --git a/test-assembler-0.1.5-fix-metadata.diff b/test-assembler-0.1.5-fix-metadata.diff new file mode 100644 index 0000000..b37f07a --- /dev/null +++ b/test-assembler-0.1.5-fix-metadata.diff @@ -0,0 +1,8 @@ +--- test-assembler-0.1.5/Cargo.toml 2016-09-12T23:02:38+02:00 ++++ test-assembler-0.1.5/Cargo.toml 2017-12-03T21:06:49.517005+01:00 +@@ -12,4 +12,4 @@ + ] + + [dependencies] +-byteorder = "0.5.0" ++byteorder = "1"