diff --git a/.gitignore b/.gitignore index be4dd11..93d3e31 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /hyper-tls-0.4.1.crate /hyper-tls-0.4.3.crate /hyper-tls-0.5.0.crate +/hyper-tls-0.6.0.crate diff --git a/hyper-tls-fix-metadata.diff b/hyper-tls-fix-metadata.diff index e9f3685..024a3bc 100644 --- a/hyper-tls-fix-metadata.diff +++ b/hyper-tls-fix-metadata.diff @@ -1,9 +1,7 @@ ---- hyper-tls-0.5.0/Cargo.toml 1970-01-01T00:00:00+00:00 -+++ hyper-tls-0.5.0/Cargo.toml 2023-05-20T14:18:54.945213+00:00 -@@ -45,6 +45,3 @@ - [dev-dependencies.tokio] - version = "1.0.0" - features = ["io-std", "macros", "io-util"] -- --[features] +--- hyper-tls-0.6.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ hyper-tls-0.6.0/Cargo.toml 2024-04-17T21:22:06.966246+00:00 +@@ -70,4 +70,3 @@ + + [features] + alpn = ["native-tls/alpn"] -vendored = ["native-tls/vendored"] diff --git a/rust-hyper-tls.spec b/rust-hyper-tls.spec index fd58c7b..6d156ed 100644 --- a/rust-hyper-tls.spec +++ b/rust-hyper-tls.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 26 %bcond_without check %global debug_package %{nil} %global crate hyper-tls Name: rust-hyper-tls -Version: 0.5.0 +Version: 0.6.0 Release: %autorelease Summary: Default TLS implementation for use with hyper @@ -17,7 +17,7 @@ Source: %{crates_source} # * drop feature for using a vendored TLS backend Patch: hyper-tls-fix-metadata.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Default TLS implementation for use with hyper.} @@ -51,8 +51,20 @@ use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+alpn-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+alpn-devel %{_description} + +This package contains library source intended for building other packages which +use the "alpn" feature of the "%{crate}" crate. + +%files -n %{name}+alpn-devel +%ghost %{crate_instdir}/Cargo.toml + %prep -%autosetup -n %{crate}-%{version_no_tilde} -p1 +%autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires diff --git a/sources b/sources index a8d7899..e8a4400 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (hyper-tls-0.5.0.crate) = 45dc16cc9ce48706e0b3575dca35ba1b6b3084dda8c2cc489d126e1c4f0bb96a9b2baa860d09f68c5e0a48c2a69e3eaf62f4f0406fffc4efefcd79d26c82896e +SHA512 (hyper-tls-0.6.0.crate) = 6b99b08669e689005a27f2ca70a12aa51298a6a4226de072cd84fb15275339dde8e2054838541096484d732a1d2d913bfa945ff3003054eb62ac4c2d0a8ecbd8