From 7fb55049264593aecbdc091e8fa97b69ad60c05b Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Thu, 6 Jul 2023 01:16:59 +0200 Subject: [PATCH] Initial import (#2219911) --- .gitignore | 1 + README.md | 3 - rust-allocator-api2.spec | 120 +++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 122 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-allocator-api2.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5748427 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/allocator-api2-0.2.15.crate diff --git a/README.md b/README.md deleted file mode 100644 index accac7d..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-allocator-api2 - -The rust-allocator-api2 package diff --git a/rust-allocator-api2.spec b/rust-allocator-api2.spec new file mode 100644 index 0000000..59820de --- /dev/null +++ b/rust-allocator-api2.spec @@ -0,0 +1,120 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate allocator-api2 + +Name: rust-allocator-api2 +Version: 0.2.15 +Release: %autorelease +Summary: Mirror of Rust's allocator API + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/allocator-api2 +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Mirror of Rust's allocator API.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages which +use the "%{crate}" crate. + +%files devel +%license %{crate_instdir}/COPYING +%license %{crate_instdir}/license/APACHE +%license %{crate_instdir}/license/MIT +%doc %{crate_instdir}/CHANGELOG.md +%doc %{crate_instdir}/README.md +%{crate_instdir}/ + +%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 the "default" feature of the "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+alloc-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+alloc-devel %{_description} + +This package contains library source intended for building other packages which +use the "alloc" feature of the "%{crate}" crate. + +%files -n %{name}+alloc-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+nightly-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+nightly-devel %{_description} + +This package contains library source intended for building other packages which +use the "nightly" feature of the "%{crate}" crate. + +%files -n %{name}+nightly-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+serde-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+serde-devel %{_description} + +This package contains library source intended for building other packages which +use the "serde" feature of the "%{crate}" crate. + +%files -n %{name}+serde-devel +%ghost %{crate_instdir}/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 %{crate_instdir}/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 +# * skip doctests which don't compile on stable Rust +%cargo_test -- -- --skip "src/stable/vec/mod.rs" +%endif + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..dbf8f25 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (allocator-api2-0.2.15.crate) = 5ea76c2351f751f86226e39971c6229cdf22c471184ebdf9189b7fb36081f8471ab9227a06d09d1aba4d3cc2eec0cb18c34cae178e7293128958b514a332b0f9