Drop optional dependencies that are not packaged for Fedora

epel9
Fabio Valentini 3 years ago
parent 1e2d72bc5a
commit 5af9182bd6
No known key found for this signature in database
GPG Key ID: 5AC5F572E5D410AF

@ -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"

@ -13,6 +13,9 @@ Summary: Utilities for converting between byte sequences and platform-nat
License: MIT or ASL 2.0 License: MIT or ASL 2.0
URL: https://crates.io/crates/os_str_bytes URL: https://crates.io/crates/os_str_bytes
Source: %{crates_source} 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} ExclusiveArch: %{rust_arches}
%if %{__cargo_skip_build} %if %{__cargo_skip_build}
@ -76,18 +79,6 @@ which use "memchr" feature of "%{crate}" crate.
%files -n %{name}+memchr-devel %files -n %{name}+memchr-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %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 %package -n %{name}+raw_os_str-devel
Summary: %{summary} Summary: %{summary}
BuildArch: noarch BuildArch: noarch
@ -100,18 +91,6 @@ which use "raw_os_str" feature of "%{crate}" crate.
%files -n %{name}+raw_os_str-devel %files -n %{name}+raw_os_str-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %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 %prep
%autosetup -n %{crate}-%{version_no_tilde} -p1 %autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep %cargo_prep

Loading…
Cancel
Save