From 6b9a685b0d06dc7157f095f562a2757bc2e19bea Mon Sep 17 00:00:00 2001 From: Davide Cavalca Date: Mon, 28 Jun 2021 10:39:37 -0700 Subject: [PATCH] import #1972869 --- .gitignore | 1 + rust-below-render.spec | 73 ++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 75 insertions(+) create mode 100644 .gitignore create mode 100644 rust-below-render.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..778ac84 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/below-render-0.2.0.crate diff --git a/rust-below-render.spec b/rust-below-render.spec new file mode 100644 index 0000000..6b60591 --- /dev/null +++ b/rust-below-render.spec @@ -0,0 +1,73 @@ +# Generated by rust2rpm 17 +%bcond_without check +%global debug_package %{nil} + +%global crate below-render + +Name: rust-%{crate} +Version: 0.2.0 +Release: 1%{?dist} +Summary: Render crate for below + +# Upstream license specification: Apache-2.0 +License: ASL 2.0 +URL: https://crates.io/crates/below-render +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Render crate for below.} + +%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 +%{cargo_registry}/%{crate}-%{version_no_tilde}/ + +%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_no_tilde}/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 +* Wed Jun 16 2021 Davide Cavalca - 0.2.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..865d860 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (below-render-0.2.0.crate) = 891c873f3f16977dfe97d9df21bcfe5bb05b8ce0054d55a7341e887f4c61d3fcf1ab08f79b555762937c1a758da15ea8d18c9679baa380559796460e2ba7782a