From 3533f5899464299c516ea15cdfd566d45362e326 Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Fri, 20 Dec 2024 14:42:14 +0300 Subject: [PATCH] import rust-allocator-api2-0.2.19-1.el10 --- .gitignore | 1 + .rust-allocator-api2.metadata | 1 + SOURCES/rust2rpm.toml | 9 ++ SPECS/rust-allocator-api2.spec | 153 +++++++++++++++++++++++++++++++++ 4 files changed, 164 insertions(+) create mode 100644 .gitignore create mode 100644 .rust-allocator-api2.metadata create mode 100644 SOURCES/rust2rpm.toml create mode 100644 SPECS/rust-allocator-api2.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..21367b5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/allocator-api2-0.2.19.crate diff --git a/.rust-allocator-api2.metadata b/.rust-allocator-api2.metadata new file mode 100644 index 0000000..66a8115 --- /dev/null +++ b/.rust-allocator-api2.metadata @@ -0,0 +1 @@ +ab1a219ddd97bd30aeb0ea4d19a80482e196c8e2 SOURCES/allocator-api2-0.2.19.crate diff --git a/SOURCES/rust2rpm.toml b/SOURCES/rust2rpm.toml new file mode 100644 index 0000000..42e4a38 --- /dev/null +++ b/SOURCES/rust2rpm.toml @@ -0,0 +1,9 @@ +[tests] +skip = [ + "\"src/stable/boxed.rs\"", + "\"src/stable/vec/mod.rs\"", +] +comments = [ + "skip doctests which don't compile on stable Rust with RUSTC_BOOTSTRAP=1", +] + diff --git a/SPECS/rust-allocator-api2.spec b/SPECS/rust-allocator-api2.spec new file mode 100644 index 0000000..229cefd --- /dev/null +++ b/SPECS/rust-allocator-api2.spec @@ -0,0 +1,153 @@ +## 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 allocator-api2 + +Name: rust-allocator-api2 +Version: 0.2.19 +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: cargo-rpm-macros >= 24 + +%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}/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} -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 with RUSTC_BOOTSTRAP=1 +%cargo_test -- -- --skip "src/stable/boxed.rs" --skip "src/stable/vec/mod.rs" +%endif + +%changelog +* Fri Dec 20 2024 MSVSphere Packaging Team - 0.2.19-1 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Sat Nov 09 2024 Fabio Valentini - 0.2.19-1 +- Update to version 0.2.19; Fixes RHBZ#2324787 + +* Fri Jul 19 2024 Fedora Release Engineering - 0.2.18-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Tue Apr 16 2024 Fabio Valentini - 0.2.18-1 +- Update to version 0.2.18; Fixes RHBZ#2274712 + +* Fri Jan 26 2024 Fedora Release Engineering - 0.2.16-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 0.2.16-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Sat Jul 15 2023 Fabio Valentini - 0.2.16-1 +- Update to version 0.2.16; Fixes RHBZ#2222886 + +* Wed Jul 05 2023 Fabio Valentini - 0.2.15-1 +- Initial import (#2219911) +## END: Generated by rpmautospec