The package rpms/rust-warp0.2.git has added or updated architecture specific content in
its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/rust-warp0.2.git/commit/?id=a1db5....
Change:
+ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit a1db50c3317f6f4f48a7b234387bae9860d567b0
Author: Fabio Valentini <decathorpe(a)gmail.com>
Date: Sat Mar 27 18:57:14 2021 +0100
initial import (warp 0.2 compat package)
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..3a96f24
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+/results_*/
+/*.src.rpm
+
+/warp-0.2.5.crate
diff --git a/README.md b/README.md
deleted file mode 100644
index d70a248..0000000
--- a/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# rust-warp0.2
-
-The rust-warp0.2 package
diff --git a/rust-warp0.2.spec b/rust-warp0.2.spec
new file mode 100644
index 0000000..29c8605
--- /dev/null
+++ b/rust-warp0.2.spec
@@ -0,0 +1,116 @@
+# Generated by rust2rpm 16
+# tracing-log and tracing-subscriber are not packaged yet
+%bcond_with check
+%global debug_package %{nil}
+
+%global crate warp
+
+Name: rust-%{crate}0.2
+Version: 0.2.5
+Release: 1%{?dist}
+Summary: Serve the web at warp speeds
+
+# Upstream license specification: MIT
+License: MIT
+URL:
https://crates.io/crates/warp
+Source: %{crates_source}
+# Initial patched metadata
+# * drop optional TLS feature, Rustls dependencies are not packaged
+# * drop websockets feature, it's unused and depends on old crates
+Patch0: warp-fix-metadata.diff
+
+ExclusiveArch: %{rust_arches}
+%if %{__cargo_skip_build}
+BuildArch: noarch
+%endif
+
+BuildRequires: rust-packaging
+
+%global _description %{expand:
+Serve the web at warp speeds.}
+
+%description %{_description}
+
+%package devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description devel %{_description}
+
+This package contains library source intended for building other packages
+which use "%{crate}" crate.
+
+%files devel
+%license LICENSE
+%doc README.md CHANGELOG.md
+%{cargo_registry}/%{crate}-%{version_no_tilde}/
+
+%package -n %{name}+default-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+default-devel %{_description}
+
+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_no_tilde}/Cargo.toml
+
+%package -n %{name}+async-compression-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+async-compression-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "async-compression" feature of "%{crate}" crate.
+
+%files -n %{name}+async-compression-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+
+%package -n %{name}+compression-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+compression-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "compression" feature of "%{crate}" crate.
+
+%files -n %{name}+compression-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+
+%package -n %{name}+multipart-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+multipart-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "multipart" feature of "%{crate}" crate.
+
+%files -n %{name}+multipart-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+
+%prep
+%autosetup -n %{crate}-%{version_no_tilde} -p1
+%cargo_prep
+
+%generate_buildrequires
+%cargo_generate_buildrequires
+
+%build
+%cargo_build
+
+%install
+%cargo_install
+
+%if %{with check}
+%check
+%cargo_test
+%endif
+
+%changelog
+* Sat Mar 27 2021 Fabio Valentini <decathorpe(a)gmail.com> - 0.2.5-1
+- Initial compat package for warp 0.2
diff --git a/sources b/sources
new file mode 100644
index 0000000..2733542
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (warp-0.2.5.crate) =
7f3d7a2c014b34405abf89dd04b4d38434b2f95db809cb30acbacf3cec4341051857ca870d92a42489b9489e56b8030e59192954ebd98ab36adea58b8af3b406
diff --git a/warp-fix-metadata.diff b/warp-fix-metadata.diff
new file mode 100644
index 0000000..e30e6c1
--- /dev/null
+++ b/warp-fix-metadata.diff
@@ -0,0 +1,50 @@
+--- warp-0.2.5/Cargo.toml 2020-08-31T19:57:25+00:00
++++ warp-0.2.5/Cargo.toml 2021-03-27T17:50:34.705889+00:00
+@@ -43,23 +43,12 @@
+ required-features = ["tokio/uds"]
+
+ [[example]]
+-name = "websockets"
+-required-features = ["websocket"]
+-
+-[[example]]
+-name = "websockets_chat"
+-required-features = ["websocket"]
+-
+-[[example]]
+ name = "query_string"
+
+ [[test]]
+ name = "multipart"
+ required-features = ["multipart"]
+
+-[[test]]
+-name = "ws"
+-required-features = ["websocket"]
+ [dependencies.async-compression]
+ version = "0.3.1"
+ features = ["brotli", "deflate", "gzip",
"stream"]
+@@ -117,15 +106,6 @@
+ version = "0.2"
+ features = ["fs", "stream", "sync", "time"]
+
+-[dependencies.tokio-rustls]
+-version = "0.14"
+-optional = true
+-
+-[dependencies.tokio-tungstenite]
+-version = "0.11"
+-optional = true
+-default-features = false
+-
+ [dependencies.tower-service]
+ version = "0.3"
+
+@@ -165,6 +145,4 @@
+
+ [features]
+ compression = ["async-compression"]
+-default = ["multipart", "websocket"]
+-tls = ["tokio-rustls"]
+-websocket = ["tokio-tungstenite"]
++default = ["multipart"]