From 5e788dd24f60e4edc8d47dd8cb4c4acca6386f52 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Oct 13 2020 14:07:32 +0000 Subject: initial import (#1886137) --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7341d0b --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/results_*/ +/*.src.rpm + +/tinyvec_macros-0.1.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index 2fe29c4..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-tinyvec_macros - -The rust-tinyvec_macros package diff --git a/rust-tinyvec_macros.spec b/rust-tinyvec_macros.spec new file mode 100644 index 0000000..d574560 --- /dev/null +++ b/rust-tinyvec_macros.spec @@ -0,0 +1,75 @@ +# Generated by rust2rpm 13 +%bcond_without check +%global debug_package %{nil} + +%global crate tinyvec_macros + +Name: rust-%{crate} +Version: 0.1.0 +Release: 1%{?dist} +Summary: Some macros for tiny containers + +# Upstream license specification: MIT OR Apache-2.0 OR Zlib +# https://github.com/Soveu/tinyvec_macros/issues/1 +License: MIT or ASL 2.0 or zlib +URL: https://crates.io/crates/tinyvec_macros +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Some macros for tiny containers.} + +%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 +%license LICENSE +%{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 Oct 07 2020 Fabio Valentini - 0.1.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..ed7307d --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (tinyvec_macros-0.1.0.crate) = d6afc83a3c70cde916a6ff599e2772588e4bbfa7a5b1c7e5c8aa0f4a8a5c9426182497a644e4a88194ece986d38fa64b6c8eda9eb1630441c8e65a8741a45873