diff --git a/.gitignore b/.gitignore index 20333dc..7aa2771 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ /awc-2.0.1.crate /awc-2.0.2.crate /awc-2.0.3.crate +/awc-3.0.0.crate diff --git a/.rust2rpm.conf b/.rust2rpm.conf index 8c1fa6f..3b058e6 100644 --- a/.rust2rpm.conf +++ b/.rust2rpm.conf @@ -1,4 +1,4 @@ [DEFAULT] unwanted-features = - rust-tls rustls + tls-rustls diff --git a/rust-awc.spec b/rust-awc.spec index 440d025..6ee6769 100644 --- a/rust-awc.spec +++ b/rust-awc.spec @@ -1,14 +1,14 @@ -# Generated by rust2rpm 16 -# * Missing webpki +# Generated by rust2rpm 21 +# * tests can only be run in-tree %bcond_with check %global debug_package %{nil} %global crate awc Name: rust-%{crate} -Version: 2.0.3 +Version: 3.0.0 Release: %autorelease -Summary: Async HTTP client library that uses the Actix runtime +Summary: Async HTTP and WebSocket client library # Upstream license specification: MIT OR Apache-2.0 License: MIT or ASL 2.0 @@ -16,14 +16,11 @@ URL: https://crates.io/crates/awc Source: %{crates_source} ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: -Async HTTP and WebSocket client library built on the Actix ecosystem.} +Async HTTP and WebSocket client library.} %description %{_description} @@ -33,13 +30,15 @@ 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 -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/CHANGES.md +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -47,35 +46,95 @@ 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}+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. -%package -n %{name}+compress-devel +%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}+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}+dangerous-h2c-devel Summary: %{summary} BuildArch: noarch -%description -n %{name}+open-ssl-devel %{_description} +%description -n %{name}+dangerous-h2c-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 "dangerous-h2c" feature of the "%{crate}" crate. -%files -n %{name}+open-ssl-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%files -n %{name}+dangerous-h2c-devel +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+openssl-devel Summary: %{summary} @@ -83,11 +142,47 @@ 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}+tls-openssl-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+tls-openssl-devel %{_description} + +This package contains library source intended for building other packages which +use the "tls-openssl" feature of the "%{crate}" crate. + +%files -n %{name}+tls-openssl-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+trust-dns-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+trust-dns-devel %{_description} + +This package contains library source intended for building other packages which +use the "trust-dns" feature of the "%{crate}" crate. + +%files -n %{name}+trust-dns-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+trust-dns-resolver-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+trust-dns-resolver-devel %{_description} + +This package contains library source intended for building other packages which +use the "trust-dns-resolver" feature of the "%{crate}" crate. + +%files -n %{name}+trust-dns-resolver-devel +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/sources b/sources index 2e0ee70..ae45e5f 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (awc-2.0.3.crate) = 3fa5aa5d90858467bc0be1d1ef1cf55a8a9941cae33eabc5aa0f1dbcf5bb2dfe60740c515fbf03d7657aeb7b4f631e7bf19b7883d26dffb6566b8c7fcd4dd342 +SHA512 (awc-3.0.0.crate) = 435ec55eda5796fdfebc63d0a7990a78b99bdb6f7644d0e9a7c5ead114f995f6b2d40b8e8029fa055b05f06c5db4dbd39f5ba6f2987a75b423c16064cd4416ed