Notification time stamped 2022-05-31 22:45:46 UTC
From 71ea9ff09f0bc70c088078b56cc9f207c312c554 Mon Sep 17 00:00:00 2001
From: Fabio Valentini <decathorpe(a)gmail.com>
Date: May 31 2022 22:36:29 +0000
Subject: Update to version 4.0.1; Fixes RHBZ#2048855
---
diff --git a/.gitignore b/.gitignore
index 8b28186..ada6a51 100644
--- a/.gitignore
+++ b/.gitignore
@@ -18,3 +18,4 @@
/actix-web-3.3.0.crate
/actix-web-3.3.1.crate
/actix-web-3.3.2.crate
+/actix-web-4.0.1.crate
diff --git a/.rust2rpm.conf b/.rust2rpm.conf
index 135a88f..b926617 100644
--- a/.rust2rpm.conf
+++ b/.rust2rpm.conf
@@ -1,4 +1,4 @@
[DEFAULT]
unwanted-features =
+ experimental-io-uring
rustls
- rust-tls
diff --git a/actix-web-fix-metadata.diff b/actix-web-fix-metadata.diff
deleted file mode 100644
index d2e826b..0000000
--- a/actix-web-fix-metadata.diff
+++ /dev/null
@@ -1,34 +0,0 @@
---- actix-web-3.3.2/Cargo.toml 2020-12-01T23:34:30+00:00
-+++ actix-web-3.3.2/Cargo.toml 2020-12-02T14:56:04.708262+00:00
-@@ -172,6 +172,31 @@
- [dependencies.url]
- version = "2.1"
-
-+[dev-dependencies.actix]
-+version = "0.10.0"
-+
-+[dev-dependencies.actix-http]
-+version = "2.1.0"
-+features = ["actors"]
-+
-+[dev-dependencies.rand]
-+version = "0.7"
-+
-+[dev-dependencies.env_logger]
-+version = "0.8"
-+
-+[dev-dependencies.serde_derive]
-+version = "1.0"
-+
-+[dev-dependencies.brotli2]
-+version = "0.3.2"
-+
-+[dev-dependencies.flate2]
-+version = "1.0.13"
-+
-+[dev-dependencies.criterion]
-+version = "0.3"
-+
- [features]
- compress = ["actix-http/compress", "awc/compress"]
- default = ["compress"]
diff --git a/rust-actix-web.spec b/rust-actix-web.spec
index 18762a1..29f141a 100644
--- a/rust-actix-web.spec
+++ b/rust-actix-web.spec
@@ -1,11 +1,12 @@
-# Generated by rust2rpm 16
-%bcond_without check
+# Generated by rust2rpm 21
+# * tests can only be run in-tree
+%bcond_with check
%global debug_package %{nil}
%global crate actix-web
Name: rust-%{crate}
-Version: 3.3.2
+Version: 4.0.1
Release: %autorelease
Summary: Powerful, pragmatic, and extremely fast web framework for Rust
@@ -13,16 +14,10 @@ Summary: Powerful, pragmatic, and extremely fast web framework
for Rust
License: MIT or ASL 2.0
URL:
https://crates.io/crates/actix-web
Source: %{crates_source}
-# Initial patched metadata
-# * add missing test dependencies (missing from processed Cargo.toml)
-Patch0: actix-web-fix-metadata.diff
ExclusiveArch: %{rust_arches}
-%if %{__cargo_skip_build}
-BuildArch: noarch
-%endif
-BuildRequires: rust-packaging
+BuildRequires: rust-packaging >= 21
%global _description %{expand:
Actix Web is a powerful, pragmatic, and extremely fast web framework for Rust.}
@@ -35,13 +30,20 @@ BuildArch: noarch
%description devel %{_description}
-This package contains library source intended for building other packages
-which use "%{crate}" crate.
+This package contains library source intended for building other packages which
+use the "%{crate}" crate.
%files devel
-%license LICENSE-MIT LICENSE-APACHE
-%doc README.md CHANGES.md MIGRATION.md
-%{cargo_registry}/%{crate}-%{version_no_tilde}/
+%license %{crate_instdir}/LICENSE-APACHE
+%license %{crate_instdir}/LICENSE-MIT
+%doc %{crate_instdir}/CHANGES.md
+%doc %{crate_instdir}/MIGRATION-0.x.md
+%doc %{crate_instdir}/MIGRATION-1.0.md
+%doc %{crate_instdir}/MIGRATION-2.0.md
+%doc %{crate_instdir}/MIGRATION-3.0.md
+%doc %{crate_instdir}/MIGRATION-4.0.md
+%doc %{crate_instdir}/README.md
+%{crate_instdir}/
%package -n %{name}+default-devel
Summary: %{summary}
@@ -49,35 +51,131 @@ 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.
+This package contains library source intended for building other packages which
+use the "default" feature of the "%{crate}" crate.
%files -n %{name}+default-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+%ghost %{crate_instdir}/Cargo.toml
+
+%package -n %{name}+__compress-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+__compress-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "__compress" feature of the "%{crate}" crate.
+
+%files -n %{name}+__compress-devel
+%ghost %{crate_instdir}/Cargo.toml
+
+%package -n %{name}+actix-macros-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+actix-macros-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "actix-macros" feature of the "%{crate}" crate.
+
+%files -n %{name}+actix-macros-devel
+%ghost %{crate_instdir}/Cargo.toml
+
+%package -n %{name}+actix-tls-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+actix-tls-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "actix-tls" feature of the "%{crate}" crate.
+
+%files -n %{name}+actix-tls-devel
+%ghost %{crate_instdir}/Cargo.toml
+
+%package -n %{name}+actix-web-codegen-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+actix-web-codegen-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "actix-web-codegen" feature of the "%{crate}" crate.
+
+%files -n %{name}+actix-web-codegen-devel
+%ghost %{crate_instdir}/Cargo.toml
+
+%package -n %{name}+compress-brotli-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+compress-brotli-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "compress-brotli" feature of the "%{crate}" crate.
+
+%files -n %{name}+compress-brotli-devel
+%ghost %{crate_instdir}/Cargo.toml
+
+%package -n %{name}+compress-gzip-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+compress-gzip-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "compress-gzip" feature of the "%{crate}" crate.
+
+%files -n %{name}+compress-gzip-devel
+%ghost %{crate_instdir}/Cargo.toml
+
+%package -n %{name}+compress-zstd-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+compress-zstd-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "compress-zstd" feature of the "%{crate}" crate.
+
+%files -n %{name}+compress-zstd-devel
+%ghost %{crate_instdir}/Cargo.toml
+
+%package -n %{name}+cookie-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+cookie-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "cookie" feature of the "%{crate}" crate.
+
+%files -n %{name}+cookie-devel
+%ghost %{crate_instdir}/Cargo.toml
-%package -n %{name}+compress-devel
+%package -n %{name}+cookies-devel
Summary: %{summary}
BuildArch: noarch
-%description -n %{name}+compress-devel %{_description}
+%description -n %{name}+cookies-devel %{_description}
-This package contains library source intended for building other packages
-which use "compress" feature of "%{crate}" crate.
+This package contains library source intended for building other packages which
+use the "cookies" feature of the "%{crate}" crate.
-%files -n %{name}+compress-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+%files -n %{name}+cookies-devel
+%ghost %{crate_instdir}/Cargo.toml
-%package -n %{name}+open-ssl-devel
+%package -n %{name}+macros-devel
Summary: %{summary}
BuildArch: noarch
-%description -n %{name}+open-ssl-devel %{_description}
+%description -n %{name}+macros-devel %{_description}
-This package contains library source intended for building other packages
-which use "open-ssl" feature of "%{crate}" crate.
+This package contains library source intended for building other packages which
+use the "macros" feature of the "%{crate}" crate.
-%files -n %{name}+open-ssl-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+%files -n %{name}+macros-devel
+%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+openssl-devel
Summary: %{summary}
@@ -85,11 +183,11 @@ BuildArch: noarch
%description -n %{name}+openssl-devel %{_description}
-This package contains library source intended for building other packages
-which use "openssl" feature of "%{crate}" crate.
+This package contains library source intended for building other packages which
+use the "openssl" feature of the "%{crate}" crate.
%files -n %{name}+openssl-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+secure-cookies-devel
Summary: %{summary}
@@ -97,17 +195,15 @@ BuildArch: noarch
%description -n %{name}+secure-cookies-devel %{_description}
-This package contains library source intended for building other packages
-which use "secure-cookies" feature of "%{crate}" crate.
+This package contains library source intended for building other packages which
+use the "secure-cookies" feature of the "%{crate}" crate.
%files -n %{name}+secure-cookies-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+%ghost %{crate_instdir}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep
-# drop unnecessary debuginfo generation to fix armv7hl OOM problems
-sed -i "s/debuginfo=2/debuginfo=0/" .cargo/config
%generate_buildrequires
%cargo_generate_buildrequires
diff --git a/sources b/sources
index a88b57c..d8795da 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (actix-web-3.3.2.crate) =
505978796b1086016fedc21ebbe1be8a2e360c2985111c9b54c8ad828cfc102a24d697a0fa9d3b0358e65e638a054c4c3dcf57db0c710efa934d0cd4bffe4e10
+SHA512 (actix-web-4.0.1.crate) =
7e24e7212a14e0eb7c1c584c5c619a376a9fc855411c2306a2f6f332269c5e267bdafe4261dd5758ec5b9f7ee3b343c8725fdd50442cfba418c5db53ae253d93
https://src.fedoraproject.org/rpms/rust-actix-web/c/71ea9ff09f0bc70c08807...