From 7cd048dbd12d684c002b6e429a7c06511c46fa98 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Thu, 14 Mar 2019 09:40:17 +0100 Subject: [PATCH] Do not pull optional dependencies Signed-off-by: Igor Gnatenko --- rust-digest.spec | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/rust-digest.spec b/rust-digest.spec index 01f4561..c2e9d09 100644 --- a/rust-digest.spec +++ b/rust-digest.spec @@ -7,7 +7,7 @@ Name: rust-%{crate} Version: 0.8.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Traits for cryptographic hash functions # Upstream license specification: MIT OR Apache-2.0 @@ -18,7 +18,6 @@ Source: %{crates_source} ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging -BuildRequires: (crate(blobby/default) >= 0.1.0 with crate(blobby/default) < 0.2.0) BuildRequires: (crate(generic-array/default) >= 0.12.0 with crate(generic-array/default) < 0.13.0) %global _description \ @@ -51,6 +50,30 @@ which use "default" feature of "%{crate}" crate. %files -n %{name}+default-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml +%package -n %{name}+blobby-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+blobby-devel %{_description} + +This package contains library source intended for building other packages +which use "blobby" feature of "%{crate}" crate. + +%files -n %{name}+blobby-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+dev-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+dev-devel %{_description} + +This package contains library source intended for building other packages +which use "dev" feature of "%{crate}" crate. + +%files -n %{name}+dev-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + %package -n %{name}+std-devel Summary: %{summary} BuildArch: noarch @@ -79,6 +102,9 @@ which use "std" feature of "%{crate}" crate. %endif %changelog +* Thu Mar 14 2019 Igor Gnatenko - 0.8.0-3 +- Do not pull optional dependencies + * Sat Feb 02 2019 Fedora Release Engineering - 0.8.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild