From 5af9182bd64fd9f0128e271295e6904d1506dfc7 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Tue, 23 Nov 2021 14:52:21 +0100 Subject: [PATCH] Drop optional dependencies that are not packaged for Fedora --- os_str_bytes-fix-metadata.diff | 16 ++++++++++++++++ rust-os_str_bytes.spec | 27 +++------------------------ 2 files changed, 19 insertions(+), 24 deletions(-) create mode 100644 os_str_bytes-fix-metadata.diff diff --git a/os_str_bytes-fix-metadata.diff b/os_str_bytes-fix-metadata.diff new file mode 100644 index 0000000..4015927 --- /dev/null +++ b/os_str_bytes-fix-metadata.diff @@ -0,0 +1,16 @@ +--- os_str_bytes-5.0.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ os_str_bytes-5.0.0/Cargo.toml 2021-11-23T13:51:48.444589+00:00 +@@ -30,13 +30,6 @@ + version = "2.4" + optional = true + +-[dependencies.print_bytes] +-version = "0.5" +-optional = true +- +-[dependencies.uniquote] +-version = "3.0" +-optional = true + [dev-dependencies.getrandom] + version = "0.2" + diff --git a/rust-os_str_bytes.spec b/rust-os_str_bytes.spec index fc07b6e..a8389cc 100644 --- a/rust-os_str_bytes.spec +++ b/rust-os_str_bytes.spec @@ -13,6 +13,9 @@ Summary: Utilities for converting between byte sequences and platform-nat License: MIT or ASL 2.0 URL: https://crates.io/crates/os_str_bytes Source: %{crates_source} +# Initial patched metadata +# * drop optional dependencies that are not packaged for Fedora +Patch0: os_str_bytes-fix-metadata.diff ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build} @@ -76,18 +79,6 @@ which use "memchr" feature of "%{crate}" crate. %files -n %{name}+memchr-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml -%package -n %{name}+print_bytes-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+print_bytes-devel %{_description} - -This package contains library source intended for building other packages -which use "print_bytes" feature of "%{crate}" crate. - -%files -n %{name}+print_bytes-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml - %package -n %{name}+raw_os_str-devel Summary: %{summary} BuildArch: noarch @@ -100,18 +91,6 @@ which use "raw_os_str" feature of "%{crate}" crate. %files -n %{name}+raw_os_str-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml -%package -n %{name}+uniquote-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+uniquote-devel %{_description} - -This package contains library source intended for building other packages -which use "uniquote" feature of "%{crate}" crate. - -%files -n %{name}+uniquote-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml - %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep