From b0939085435e19497aa828065af08fdaf5ee16be Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Fri, 21 Jul 2023 15:49:32 +0200 Subject: [PATCH] Enable feature for using optimized assembly implementations --- rust-sha2.spec | 36 ++++++++++++++++++++++++++++++++++++ rust2rpm.conf | 4 ---- 2 files changed, 36 insertions(+), 4 deletions(-) diff --git a/rust-sha2.spec b/rust-sha2.spec index 14f1276..a97a9e1 100644 --- a/rust-sha2.spec +++ b/rust-sha2.spec @@ -49,6 +49,30 @@ use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+asm-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+asm-devel %{_description} + +This package contains library source intended for building other packages which +use the "asm" feature of the "%{crate}" crate. + +%files -n %{name}+asm-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+asm-aarch64-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+asm-aarch64-devel %{_description} + +This package contains library source intended for building other packages which +use the "asm-aarch64" feature of the "%{crate}" crate. + +%files -n %{name}+asm-aarch64-devel +%ghost %{crate_instdir}/Cargo.toml + %package -n %{name}+compress-devel Summary: %{summary} BuildArch: noarch @@ -85,6 +109,18 @@ use the "oid" feature of the "%{crate}" crate. %files -n %{name}+oid-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+sha2-asm-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+sha2-asm-devel %{_description} + +This package contains library source intended for building other packages which +use the "sha2-asm" feature of the "%{crate}" crate. + +%files -n %{name}+sha2-asm-devel +%ghost %{crate_instdir}/Cargo.toml + %package -n %{name}+std-devel Summary: %{summary} BuildArch: noarch diff --git a/rust2rpm.conf b/rust2rpm.conf index aef0842..0b10f36 100644 --- a/rust2rpm.conf +++ b/rust2rpm.conf @@ -1,6 +1,2 @@ [DEFAULT] summary = Pure Rust implementation of the SHA-2 hash function family -unwanted-features = - asm - asm-aarch64 - sha2-asm