From 5a3cfe404fc29637415f391ccbad2867d9927293 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Thu, 14 Apr 2022 22:25:22 +0200 Subject: [PATCH] Initial import (typed-arena 1 compat package) --- .gitignore | 1 + README.md | 3 -- rust-typed-arena1.spec | 87 +++++++++++++++++++++++++++++++++++ sources | 1 + typed-arena-fix-metadata.diff | 16 +++++++ 5 files changed, 105 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-typed-arena1.spec create mode 100644 sources create mode 100644 typed-arena-fix-metadata.diff diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..804ad73 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/typed-arena-1.7.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index dd20ce9..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-typed-arena1 - -The rust-typed-arena1 package diff --git a/rust-typed-arena1.spec b/rust-typed-arena1.spec new file mode 100644 index 0000000..25eaaa4 --- /dev/null +++ b/rust-typed-arena1.spec @@ -0,0 +1,87 @@ +# Generated by rust2rpm 21 +%bcond_without check +%global debug_package %{nil} + +%global crate typed-arena + +Name: rust-%{crate}1 +Version: 1.7.0 +Release: %autorelease +Summary: Arena, a fast but limited type of allocator + +# Upstream license specification: MIT +License: MIT +URL: https://crates.io/crates/typed-arena +Source: %{crates_source} +# Initial patched metadata +# * drop unused, benchmark-only criterion dev-dependency to speed up builds +Patch0: typed-arena-fix-metadata.diff + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Arena, a fast but limited type of allocator.} + +%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}/LICENSE +%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}+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 +%cargo_test +%endif + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..59f6b3c --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (typed-arena-1.7.0.crate) = 506a90a11576e5a4135b46c5c4705db461a8ec1bba980c9ea65e8c4399bcc85898b7f81312acf4bc0b24a29d1b940d8dfe0352ad59985153743948616da5ed8e diff --git a/typed-arena-fix-metadata.diff b/typed-arena-fix-metadata.diff new file mode 100644 index 0000000..d442871 --- /dev/null +++ b/typed-arena-fix-metadata.diff @@ -0,0 +1,16 @@ +--- typed-arena-1.7.0/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ typed-arena-1.7.0/Cargo.toml 2022-04-14T19:53:26.130065+00:00 +@@ -28,13 +28,6 @@ + name = "typed_arena" + path = "src/lib.rs" + +-[[bench]] +-name = "benches" +-path = "benches/benches.rs" +-harness = false +-[dev-dependencies.criterion] +-version = "0.3" +- + [features] + default = ["std"] + std = []