diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..449cce2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +/fallible_collections-0.4.2.crate +/fallible_collections-0.4.3.crate +/fallible_collections-0.4.4.crate diff --git a/README.md b/README.md new file mode 100644 index 0000000..1de3a10 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# rust-fallible_collections + +The rust-fallible_collections package diff --git a/changelog b/changelog new file mode 100644 index 0000000..df2c36b --- /dev/null +++ b/changelog @@ -0,0 +1,2 @@ +* Fri Jun 25 2021 RĂ©mi Lauzier - 0.4.2-1 +- Initial package diff --git a/dead.package b/dead.package deleted file mode 100644 index c7912ba..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -no longer needed diff --git a/rust-fallible_collections.spec b/rust-fallible_collections.spec new file mode 100644 index 0000000..56767e9 --- /dev/null +++ b/rust-fallible_collections.spec @@ -0,0 +1,119 @@ +# Generated by rust2rpm 20 +%bcond_without check +%global debug_package %{nil} + +%global crate fallible_collections + +Name: rust-%{crate} +Version: 0.4.4 +Release: %autorelease +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} + +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}+rust_1_57-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+rust_1_57-devel %{_description} + +This package contains library source intended for building other packages which +use the "rust_1_57" feature of the "%{crate}" crate. + +%files -n %{name}+rust_1_57-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+std-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+std-devel %{_description} + +This package contains library source intended for building other packages which +use the "std" feature of the "%{crate}" crate. + +%files -n %{name}+std-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 +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..4bff5e3 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (fallible_collections-0.4.4.crate) = 1d91ee35dac5de7d80a57c30342f60cc99b5e5109a93c4b86d97eef99d96855282ad1756c3d65f9a275c0ee6e596d1eb589bd9f3c53135f3b4dbcea57cce1424