Initial import; Fixes: RHBZ#2277577

epel10
Davide Cavalca 9 months ago
parent d00ae98e77
commit c0ff8473cb

1
.gitignore vendored

@ -0,0 +1 @@
/core2-0.4.0.crate

@ -0,0 +1,94 @@
# Generated by rust2rpm 26
%bcond_without check
%global debug_package %{nil}
%global crate core2
Name: rust-core2
Version: 0.4.0
Release: %autorelease
Summary: Bare essentials of std::io for use in no_std. Alloc support is optional
License: Apache-2.0 OR MIT
URL: https://crates.io/crates/core2
Source: %{crates_source}
BuildRequires: cargo-rpm-macros >= 24
%global _description %{expand:
The bare essentials of std::io for use in no_std. Alloc support is
optional.}
%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}/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}+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
%cargo_test
%endif
%changelog
%autochangelog

@ -0,0 +1,2 @@
[features]
hide = ["nightly"]

@ -0,0 +1 @@
SHA512 (core2-0.4.0.crate) = 53c9d2599d87c37d8b6fc8b2293fc16928a97754240e35af770f7e969e4d91ffffe3afbb4e04312de828d1d43ca6c9b734e0725ac5ac9d74f252449ce296ab7b
Loading…
Cancel
Save