From c8a904b8e59764462406e1db1a57b0b77747ead0 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Nov 01 2020 21:30:45 +0000 Subject: remove features with unpackaged dependencies --- diff --git a/actix-server-config-fix-metadata.diff b/actix-server-config-fix-metadata.diff new file mode 100644 index 0000000..9bf3585 --- /dev/null +++ b/actix-server-config-fix-metadata.diff @@ -0,0 +1,31 @@ +--- actix-server-config-0.2.0/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ actix-server-config-0.2.0/Cargo.toml 2020-11-01T21:28:14.323110+00:00 +@@ -28,20 +28,8 @@ + [dependencies.futures] + version = "0.1.25" + +-[dependencies.rustls] +-version = "0.16.0" +-optional = true +- + [dependencies.tokio-io] + version = "0.1.12" +- +-[dependencies.tokio-openssl] +-version = "0.3.0" +-optional = true +- +-[dependencies.tokio-rustls] +-version = "0.10.0" +-optional = true + + [dependencies.tokio-tcp] + version = "0.1" +@@ -52,6 +40,5 @@ + + [features] + default = [] +-rust-tls = ["rustls", "tokio-rustls"] +-ssl = ["tokio-openssl"] + uds = ["tokio-uds"] ++ diff --git a/rust-actix-server-config.spec b/rust-actix-server-config.spec index bad4c62..aa5a63b 100644 --- a/rust-actix-server-config.spec +++ b/rust-actix-server-config.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 10 +# Generated by rust2rpm 15 %bcond_without check %global debug_package %{nil} @@ -6,13 +6,16 @@ Name: rust-%{crate} Version: 0.2.0 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Actix server config utils # Upstream license specification: MIT/Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/actix-server-config Source: %{crates_source} +# Initial patched metadata +# * remove features with unpackaged dependencies +Patch0: actix-server-config-fix-metadata.diff ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build} @@ -38,7 +41,7 @@ which use "%{crate}" crate. %files devel %license LICENSE-MIT LICENSE-APACHE %doc changes.md -%{cargo_registry}/%{crate}-%{version}/ +%{cargo_registry}/%{crate}-%{version_no_tilde}/ %package -n %{name}+default-devel Summary: %{summary} @@ -50,67 +53,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}+rust-tls-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+rust-tls-devel %{_description} - -This package contains library source intended for building other packages -which use "rust-tls" feature of "%{crate}" crate. - -%files -n %{name}+rust-tls-devel -%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml - -%package -n %{name}+rustls-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+rustls-devel %{_description} - -This package contains library source intended for building other packages -which use "rustls" feature of "%{crate}" crate. - -%files -n %{name}+rustls-devel -%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml - -%package -n %{name}+ssl-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+ssl-devel %{_description} - -This package contains library source intended for building other packages -which use "ssl" feature of "%{crate}" crate. - -%files -n %{name}+ssl-devel -%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml - -%package -n %{name}+tokio-openssl-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+tokio-openssl-devel %{_description} - -This package contains library source intended for building other packages -which use "tokio-openssl" feature of "%{crate}" crate. - -%files -n %{name}+tokio-openssl-devel -%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml - -%package -n %{name}+tokio-rustls-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+tokio-rustls-devel %{_description} - -This package contains library source intended for building other packages -which use "tokio-rustls" feature of "%{crate}" crate. - -%files -n %{name}+tokio-rustls-devel -%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+tokio-uds-devel Summary: %{summary} @@ -122,7 +65,7 @@ This package contains library source intended for building other packages which use "tokio-uds" feature of "%{crate}" crate. %files -n %{name}+tokio-uds-devel -%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+uds-devel Summary: %{summary} @@ -134,7 +77,7 @@ This package contains library source intended for building other packages which use "uds" feature of "%{crate}" crate. %files -n %{name}+uds-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 @@ -155,6 +98,9 @@ which use "uds" feature of "%{crate}" crate. %endif %changelog +* Sun Nov 01 2020 Fabio Valentini - 0.2.0-4 +- Remove features with unpackaged dependencies. + * Wed Jul 29 2020 Fedora Release Engineering - 0.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild