Initial import (#2219911)

epel9
Fabio Valentini 2 years ago
parent 7119ef73dc
commit 7fb5504926
No known key found for this signature in database
GPG Key ID: 5AC5F572E5D410AF

1
.gitignore vendored

@ -0,0 +1 @@
/allocator-api2-0.2.15.crate

@ -1,3 +0,0 @@
# rust-allocator-api2
The rust-allocator-api2 package

@ -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

@ -0,0 +1 @@
SHA512 (allocator-api2-0.2.15.crate) = 5ea76c2351f751f86226e39971c6229cdf22c471184ebdf9189b7fb36081f8471ab9227a06d09d1aba4d3cc2eec0cb18c34cae178e7293128958b514a332b0f9
Loading…
Cancel
Save