From 7258e3c199c7d149589f630c3f6614a875ee8f8a Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Nov 08 2020 21:31:57 +0000 Subject: drop optional features with broken dependencies --- diff --git a/rust-twoway.spec b/rust-twoway.spec index 7120268..75e7d2f 100644 --- a/rust-twoway.spec +++ b/rust-twoway.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 10 +# Generated by rust2rpm 15 %bcond_with check %global debug_package %{nil} @@ -6,13 +6,16 @@ Name: rust-%{crate} Version: 0.2.1 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Fast substring search for strings and byte strings # Upstream license specification: MIT/Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/twoway Source: %{crates_source} +# Initial patched metadata +# * drop optional features with broken dependencies +Patch0: twoway-fix-metadata.diff ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build} @@ -42,7 +45,7 @@ which use "%{crate}" crate. %files devel %doc README.rst %license LICENSE-APACHE LICENSE-MIT -%{cargo_registry}/%{crate}-%{version}/ +%{cargo_registry}/%{crate}-%{version_no_tilde}/ %package -n %{name}+default-devel Summary: %{summary} @@ -54,55 +57,7 @@ This package contains library source intended for building other packages which use "default" feature of "%{crate}" crate. %files -n %{name}+default-devel -%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml - -%package -n %{name}+all-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+all-devel %{_description} - -This package contains library source intended for building other packages -which use "all" feature of "%{crate}" crate. - -%files -n %{name}+all-devel -%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml - -%package -n %{name}+benchmarks-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+benchmarks-devel %{_description} - -This package contains library source intended for building other packages -which use "benchmarks" feature of "%{crate}" crate. - -%files -n %{name}+benchmarks-devel -%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml - -%package -n %{name}+galil-seiferas-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+galil-seiferas-devel %{_description} - -This package contains library source intended for building other packages -which use "galil-seiferas" feature of "%{crate}" crate. - -%files -n %{name}+galil-seiferas-devel -%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml - -%package -n %{name}+jetscii-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+jetscii-devel %{_description} - -This package contains library source intended for building other packages -which use "jetscii" feature of "%{crate}" crate. - -%files -n %{name}+jetscii-devel -%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+pattern-devel Summary: %{summary} @@ -114,7 +69,7 @@ This package contains library source intended for building other packages which use "pattern" feature of "%{crate}" crate. %files -n %{name}+pattern-devel -%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+use_std-devel Summary: %{summary} @@ -126,7 +81,7 @@ This package contains library source intended for building other packages which use "use_std" feature of "%{crate}" crate. %files -n %{name}+use_std-devel -%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 @@ -147,6 +102,9 @@ which use "use_std" feature of "%{crate}" crate. %endif %changelog +* Sun Nov 8 2020 Fabio Valentini - 0.2.1-4 +- Drop optional features with broken dependencies. + * Wed Jul 29 2020 Fedora Release Engineering - 0.2.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild diff --git a/twoway-fix-metadata.diff b/twoway-fix-metadata.diff new file mode 100644 index 0000000..d15ab55 --- /dev/null +++ b/twoway-fix-metadata.diff @@ -0,0 +1,26 @@ +--- twoway-0.2.1/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ twoway-0.2.1/Cargo.toml 2020-11-08T21:28:38.102205+00:00 +@@ -23,14 +23,6 @@ + [package.metadata.release] + no-dev-version = true + tag-name = "{{version}}" +-[dependencies.galil-seiferas] +-version = "0.1.1" +-optional = true +- +-[dependencies.jetscii] +-version = "0.3" +-features = ["unstable"] +-optional = true + + [dependencies.memchr] + version = "2.0" +@@ -59,8 +51,6 @@ + version = "0.6" + + [features] +-all = ["jetscii", "pattern"] +-benchmarks = ["galil-seiferas", "pattern"] + default = ["use_std"] + pattern = [] + use_std = ["memchr/use_std"]