commit 345317937160bb80be922f9fc34fae88f8d97c6e Author: MSVSphere Packaging Team Date: Fri Dec 20 15:10:52 2024 +0300 import rust-core2-0.4.0-2.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1dca82b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/core2-0.4.0.crate diff --git a/.rust-core2.metadata b/.rust-core2.metadata new file mode 100644 index 0000000..a8c773b --- /dev/null +++ b/.rust-core2.metadata @@ -0,0 +1 @@ +a6cc5c64808bc233dfd2a55bf0b1eed2388ba43a SOURCES/core2-0.4.0.crate diff --git a/SOURCES/README.md b/SOURCES/README.md new file mode 100644 index 0000000..771be62 --- /dev/null +++ b/SOURCES/README.md @@ -0,0 +1,3 @@ +# rust-core2 + +The rust-core2 package diff --git a/SOURCES/rust2rpm.toml b/SOURCES/rust2rpm.toml new file mode 100644 index 0000000..0dc84c9 --- /dev/null +++ b/SOURCES/rust2rpm.toml @@ -0,0 +1,2 @@ +[features] +hide = ["nightly"] diff --git a/SPECS/rust-core2.spec b/SPECS/rust-core2.spec new file mode 100644 index 0000000..e1a5ff5 --- /dev/null +++ b/SPECS/rust-core2.spec @@ -0,0 +1,113 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.2) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 2; + 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 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 +* Fri Dec 20 2024 MSVSphere Packaging Team - 0.4.0-2 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Fri Jul 19 2024 Fedora Release Engineering - 0.4.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Sun Apr 28 2024 Davide Cavalca - 0.4.0-1 +- Initial import; Fixes: RHBZ#2277577 +## END: Generated by rpmautospec