commit c8bfc62c6ef1d1b461148e8e019b4134f07397ec Author: tigro Date: Mon Nov 20 11:37:29 2023 +0300 import rust-allocator-api2-0.2.16-1.el9 diff --git a/.rust-allocator-api2.metadata b/.rust-allocator-api2.metadata new file mode 100644 index 0000000..e69de29 diff --git a/SOURCES/allocator-api2-0.2.16.crate b/SOURCES/allocator-api2-0.2.16.crate new file mode 100644 index 0000000..53591b9 Binary files /dev/null and b/SOURCES/allocator-api2-0.2.16.crate differ diff --git a/SPECS/rust-allocator-api2.spec b/SPECS/rust-allocator-api2.spec new file mode 100644 index 0000000..27353b8 --- /dev/null +++ b/SPECS/rust-allocator-api2.spec @@ -0,0 +1,137 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.3.5) +## 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 24 +%bcond_without check +%global debug_package %{nil} + +%global crate allocator-api2 + +Name: rust-allocator-api2 +Version: 0.2.16 +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 +* Mon Nov 20 2023 Arkady L. Shane - 0.2.16-1 +- Rebuilt for MSVSphere 9.2 + +* 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)