From ed1b3636fac10e2ea0233d2aeedc12faff41f743 Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Fri, 20 Dec 2024 15:51:47 +0300 Subject: [PATCH] import rust-hashbrown0.14-0.14.5-1.el10 --- .gitignore | 1 + .rust-hashbrown0.14.metadata | 1 + SOURCES/rust2rpm.toml | 9 ++ SPECS/rust-hashbrown0.14.spec | 182 ++++++++++++++++++++++++++++++++++ 4 files changed, 193 insertions(+) create mode 100644 .gitignore create mode 100644 .rust-hashbrown0.14.metadata create mode 100644 SOURCES/rust2rpm.toml create mode 100644 SPECS/rust-hashbrown0.14.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..653a6dc --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/hashbrown-0.14.5.crate diff --git a/.rust-hashbrown0.14.metadata b/.rust-hashbrown0.14.metadata new file mode 100644 index 0000000..d77fa71 --- /dev/null +++ b/.rust-hashbrown0.14.metadata @@ -0,0 +1 @@ +5a4550ec64c62d022965fcd6c3c03fd488822c13 SOURCES/hashbrown-0.14.5.crate diff --git a/SOURCES/rust2rpm.toml b/SOURCES/rust2rpm.toml new file mode 100644 index 0000000..6f5748f --- /dev/null +++ b/SOURCES/rust2rpm.toml @@ -0,0 +1,9 @@ +[features] +hide = [ + "alloc", + "compiler_builtins", + "core", + "nightly", + "rustc-dep-of-std", + "rustc-internal-api", +] diff --git a/SPECS/rust-hashbrown0.14.spec b/SPECS/rust-hashbrown0.14.spec new file mode 100644 index 0000000..00d6fff --- /dev/null +++ b/SPECS/rust-hashbrown0.14.spec @@ -0,0 +1,182 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.3) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 1; + base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); + print(release_number + base_release_number - 1); +}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} +## END: Set by rpmautospec + +# Generated by rust2rpm 26 +%bcond_without check +%global debug_package %{nil} + +%global crate hashbrown + +Name: rust-hashbrown0.14 +Version: 0.14.5 +Release: %autorelease +Summary: Rust port of Google's SwissTable hash map + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/hashbrown +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +A Rust port of Google's SwissTable hash map.} + +%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-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}+ahash-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+ahash-devel %{_description} + +This package contains library source intended for building other packages which +use the "ahash" feature of the "%{crate}" crate. + +%files -n %{name}+ahash-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+allocator-api2-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+allocator-api2-devel %{_description} + +This package contains library source intended for building other packages which +use the "allocator-api2" feature of the "%{crate}" crate. + +%files -n %{name}+allocator-api2-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+equivalent-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+equivalent-devel %{_description} + +This package contains library source intended for building other packages which +use the "equivalent" feature of the "%{crate}" crate. + +%files -n %{name}+equivalent-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+inline-more-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+inline-more-devel %{_description} + +This package contains library source intended for building other packages which +use the "inline-more" feature of the "%{crate}" crate. + +%files -n %{name}+inline-more-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+raw-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+raw-devel %{_description} + +This package contains library source intended for building other packages which +use the "raw" feature of the "%{crate}" crate. + +%files -n %{name}+raw-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+rayon-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+rayon-devel %{_description} + +This package contains library source intended for building other packages which +use the "rayon" feature of the "%{crate}" crate. + +%files -n %{name}+rayon-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+rkyv-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+rkyv-devel %{_description} + +This package contains library source intended for building other packages which +use the "rkyv" feature of the "%{crate}" crate. + +%files -n %{name}+rkyv-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 + +%prep +%autosetup -n %{crate}-%{version} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Fri Dec 20 2024 MSVSphere Packaging Team - 0.14.5-1 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Fri Oct 18 2024 Fabio Valentini - 0.14.5-1 +- Initial import (hashbrown 0.14 compat package) +## END: Generated by rpmautospec