diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b710166 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/core2-0.4.0.crate diff --git a/rust-core2.spec b/rust-core2.spec new file mode 100644 index 0000000..9c365bd --- /dev/null +++ b/rust-core2.spec @@ -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 diff --git a/rust2rpm.toml b/rust2rpm.toml new file mode 100644 index 0000000..0dc84c9 --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,2 @@ +[features] +hide = ["nightly"] diff --git a/sources b/sources new file mode 100644 index 0000000..469d1af --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (core2-0.4.0.crate) = 53c9d2599d87c37d8b6fc8b2293fc16928a97754240e35af770f7e969e4d91ffffe3afbb4e04312de828d1d43ca6c9b734e0725ac5ac9d74f252449ce296ab7b