diff --git a/grep-fix-metadata.diff b/grep-fix-metadata.diff new file mode 100644 index 0000000..f8f1e76 --- /dev/null +++ b/grep-fix-metadata.diff @@ -0,0 +1,9 @@ +--- grep-0.2.7/Cargo.toml 2020-05-29T13:17:24+00:00 ++++ grep-0.2.7/Cargo.toml 2020-11-23T15:54:42.993446+00:00 +@@ -46,6 +46,4 @@ + version = "2.2.7" + + [features] +-avx-accel = [] + pcre2 = ["grep-pcre2"] +-simd-accel = ["grep-searcher/simd-accel"] diff --git a/rust-grep.spec b/rust-grep.spec index f189f81..16f55d5 100644 --- a/rust-grep.spec +++ b/rust-grep.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 15 +# Generated by rust2rpm 16 %bcond_without check %global debug_package %{nil} @@ -6,13 +6,17 @@ Name: rust-%{crate} Version: 0.2.7 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Fast line oriented regex searching as a library # Upstream license specification: Unlicense/MIT License: Unlicense or MIT URL: https://crates.io/crates/grep Source: %{crates_source} +# Initial patched metadata +# * remove simd-accel feature with broken dependencies +# * remove deprecated avx-accel feature +Patch0: grep-fix-metadata.diff ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build} @@ -52,18 +56,6 @@ which use "default" feature of "%{crate}" crate. %files -n %{name}+default-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml -%package -n %{name}+avx-accel-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+avx-accel-devel %{_description} - -This package contains library source intended for building other packages -which use "avx-accel" feature of "%{crate}" crate. - -%files -n %{name}+avx-accel-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml - %package -n %{name}+grep-pcre2-devel Summary: %{summary} BuildArch: noarch @@ -88,18 +80,6 @@ which use "pcre2" feature of "%{crate}" crate. %files -n %{name}+pcre2-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml -%package -n %{name}+simd-accel-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+simd-accel-devel %{_description} - -This package contains library source intended for building other packages -which use "simd-accel" feature of "%{crate}" crate. - -%files -n %{name}+simd-accel-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml - %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep @@ -119,6 +99,9 @@ which use "simd-accel" feature of "%{crate}" crate. %endif %changelog +* Mon Nov 23 2020 Fabio Valentini - 0.2.7-3 +- Remove unused broken features. + * Wed Jul 29 2020 Fedora Release Engineering - 0.2.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild