commit 7407f3b8254011816181c4524fc5fc51d84d7a33 Author: MSVSphere Packaging Team Date: Fri Dec 20 14:59:39 2024 +0300 import rust-bytecheck0.6-0.6.12-1.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4589f99 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/bytecheck-0.6.12.crate diff --git a/.rust-bytecheck0.6.metadata b/.rust-bytecheck0.6.metadata new file mode 100644 index 0000000..7438ff3 --- /dev/null +++ b/.rust-bytecheck0.6.metadata @@ -0,0 +1 @@ +52fd03fdb0efac6686e71c2e3ba8d74aded1baad SOURCES/bytecheck-0.6.12.crate diff --git a/SPECS/rust-bytecheck0.6.spec b/SPECS/rust-bytecheck0.6.spec new file mode 100644 index 0000000..1c22094 --- /dev/null +++ b/SPECS/rust-bytecheck0.6.spec @@ -0,0 +1,135 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.3) +## 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 26 +%bcond_without check +%global debug_package %{nil} + +%global crate bytecheck + +Name: rust-bytecheck0.6 +Version: 0.6.12 +Release: %autorelease +Summary: Derive macro for bytecheck + +License: MIT +URL: https://crates.io/crates/bytecheck +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Derive macro for bytecheck.} + +%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 +%doc %{crate_instdir}/README.md +%doc %{crate_instdir}/crates-io.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}+simdutf8-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+simdutf8-devel %{_description} + +This package contains library source intended for building other packages which +use the "simdutf8" feature of the "%{crate}" crate. + +%files -n %{name}+simdutf8-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 + +%package -n %{name}+uuid-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+uuid-devel %{_description} + +This package contains library source intended for building other packages which +use the "uuid" feature of the "%{crate}" crate. + +%files -n %{name}+uuid-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+verbose-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+verbose-devel %{_description} + +This package contains library source intended for building other packages which +use the "verbose" feature of the "%{crate}" crate. + +%files -n %{name}+verbose-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 +# * skip tests that fail with Rust 1.71: +# https://github.com/rkyv/bytecheck/issues/32 +%cargo_test -- -- --skip "src/lib.rs" +%endif + +%changelog +* Fri Dec 20 2024 MSVSphere Packaging Team - 0.6.12-1 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Tue Oct 08 2024 Fabio Valentini - 0.6.12-1 +- Initial import (bytecheck 0.6 compat package) +## END: Generated by rpmautospec