From c7a095b084a7cb7a1ebab91ec9922efed3489447 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert-Andr=C3=A9=20Mauchin?= Date: Fri, 20 Dec 2019 21:20:53 +0100 Subject: [PATCH] Initial import (#1780694) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Robert-André Mauchin --- .gitignore | 1 + rust-arbitrary.spec | 78 +++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 80 insertions(+) create mode 100644 .gitignore create mode 100644 rust-arbitrary.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..65a1478 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/arbitrary-0.2.0.crate diff --git a/rust-arbitrary.spec b/rust-arbitrary.spec new file mode 100644 index 0000000..28a13ed --- /dev/null +++ b/rust-arbitrary.spec @@ -0,0 +1,78 @@ +# Generated by rust2rpm 10 +# https://github.com/rust-fuzz/rust_arbitrary/issues/10 +%if 0%{?__isa_bits} != 32 +%bcond_without check +%endif +%global debug_package %{nil} + +%global crate arbitrary + +Name: rust-%{crate} +Version: 0.2.0 +Release: 1%{?dist} +Summary: Arbitrary trait for generating structured data from unstructured data + +# Upstream license specification: MIT/Apache-2.0 +# https://github.com/rust-fuzz/rust_arbitrary/issues/9 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/arbitrary +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Arbitrary trait for generating structured data from unstructured data.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages +which use "%{crate}" crate. + +%files devel +%doc README.md +%{cargo_registry}/%{crate}-%{version}/ + +%package -n %{name}+default-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+default-devel %{_description} + +This package contains library source intended for building other packages +which use "default" feature of "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Fri Dec 06 17:02:50 CET 2019 Robert-André Mauchin - 0.2.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..2025d22 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (arbitrary-0.2.0.crate) = 995e99bdea49ccd2bc153569cfc24c0e936e719a1cbd32471abbaf9d2a148daa76b735576c5dc802c6eb6eb0b913ddb6a1431e8b1d05eac4674786be07435677