From 7c33043dbfaad44b785393c30dae1197346ff3bf Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Thu, 20 Jul 2023 15:58:33 +0200 Subject: [PATCH] Enable feature for using optimized assembly implementations --- README.md | 3 --- rust-sha1.spec | 28 +++++++++++++++++++++++++--- rust2rpm.conf | 4 ---- 3 files changed, 25 insertions(+), 10 deletions(-) delete mode 100644 README.md delete mode 100644 rust2rpm.conf diff --git a/README.md b/README.md deleted file mode 100644 index 15fe312..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-sha1 - -The rust-sha1 package \ No newline at end of file diff --git a/rust-sha1.spec b/rust-sha1.spec index f7f2e4f..c7b8939 100644 --- a/rust-sha1.spec +++ b/rust-sha1.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 22 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} @@ -13,8 +13,6 @@ License: MIT OR Apache-2.0 URL: https://crates.io/crates/sha1 Source: %{crates_source} -ExclusiveArch: %{rust_arches} - BuildRequires: rust-packaging >= 21 %global _description %{expand: @@ -50,6 +48,18 @@ 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}+compress-devel Summary: %{summary} BuildArch: noarch @@ -86,6 +96,18 @@ use the "oid" feature of the "%{crate}" crate. %files -n %{name}+oid-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+sha1-asm-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+sha1-asm-devel %{_description} + +This package contains library source intended for building other packages which +use the "sha1-asm" feature of the "%{crate}" crate. + +%files -n %{name}+sha1-asm-devel +%ghost %{crate_instdir}/Cargo.toml + %package -n %{name}+std-devel Summary: %{summary} BuildArch: noarch diff --git a/rust2rpm.conf b/rust2rpm.conf deleted file mode 100644 index 5f210cf..0000000 --- a/rust2rpm.conf +++ /dev/null @@ -1,4 +0,0 @@ -[DEFAULT] -unwanted-features = - asm - sha1-asm