commit 1f0e6dbbcea51efdafd4862d1fa120186ac6e7ff Author: MSVSphere Packaging Team Date: Fri Dec 20 16:54:35 2024 +0300 import rust-rend0.4-0.4.2-1.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..38bbf71 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/rend-0.4.2.crate diff --git a/.rust-rend0.4.metadata b/.rust-rend0.4.metadata new file mode 100644 index 0000000..2228725 --- /dev/null +++ b/.rust-rend0.4.metadata @@ -0,0 +1 @@ +30ec0d0d5f900258ae6cbc9a3fe1a3abd8079ef8 SOURCES/rend-0.4.2.crate diff --git a/SPECS/rust-rend0.4.spec b/SPECS/rust-rend0.4.spec new file mode 100644 index 0000000..ad7a02c --- /dev/null +++ b/SPECS/rust-rend0.4.spec @@ -0,0 +1,133 @@ +## 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 rend + +Name: rust-rend0.4 +Version: 0.4.2 +Release: %autorelease +Summary: Endian-aware primitives for Rust + +License: MIT +URL: https://crates.io/crates/rend +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Endian-aware primitives for Rust.} + +%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}+bytecheck-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+bytecheck-devel %{_description} + +This package contains library source intended for building other packages which +use the "bytecheck" feature of the "%{crate}" crate. + +%files -n %{name}+bytecheck-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+bytemuck-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+bytemuck-devel %{_description} + +This package contains library source intended for building other packages which +use the "bytemuck" feature of the "%{crate}" crate. + +%files -n %{name}+bytemuck-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}+validation-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+validation-devel %{_description} + +This package contains library source intended for building other packages which +use the "validation" feature of the "%{crate}" crate. + +%files -n %{name}+validation-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.2-1 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Tue Oct 08 2024 Fabio Valentini - 0.4.2-1 +- Initial import (rend 0.4 compat package) +## END: Generated by rpmautospec