From 6012190f941e328ac3f285053d743e5ce622c86e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Lauzier?= Date: Wed, 7 Jul 2021 16:12:15 -0400 Subject: [PATCH] Initial import --- .gitignore | 1 + rust-fallible_collections.spec | 99 ++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 101 insertions(+) create mode 100644 .gitignore create mode 100644 rust-fallible_collections.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2439ff8 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/fallible_collections-0.4.2.crate diff --git a/rust-fallible_collections.spec b/rust-fallible_collections.spec new file mode 100644 index 0000000..e386f84 --- /dev/null +++ b/rust-fallible_collections.spec @@ -0,0 +1,99 @@ +# Generated by rust2rpm 17 +%bcond_without check +%global debug_package %{nil} + +%global crate fallible_collections + +Name: rust-%{crate} +Version: 0.4.2 +Release: 1%{?dist} +Summary: Crate which adds fallible allocation api to std collections + +# Upstream license specification: MIT/Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/fallible_collections +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Crate which adds fallible allocation api to std collections.} + +%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-APACHE LICENSE-MIT +%doc README.md +%{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 + +%package -n %{name}+std_io-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+std_io-devel %{_description} + +This package contains library source intended for building other packages +which use "std_io" feature of "%{crate}" crate. + +%files -n %{name}+std_io-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+unstable-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+unstable-devel %{_description} + +This package contains library source intended for building other packages +which use "unstable" feature of "%{crate}" crate. + +%files -n %{name}+unstable-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 +* Fri Jun 25 01:13:51 EDT 2021 RĂ©mi Lauzier - 0.4.2-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..6ee061b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (fallible_collections-0.4.2.crate) = 6cde9b3b78dd7a816d70295bfb33a8a76786771acfef0804f2c0c302c826121532e0a3dd3abbd3c41f81e89950a924fe8d78c29618c29f1427d90645863da4f3