diff --git a/.gitignore b/.gitignore index bc1e55c..cb49d58 100644 --- a/.gitignore +++ b/.gitignore @@ -36,3 +36,4 @@ /hyper-0.13.6.crate /hyper-0.13.7.crate /hyper-0.13.8.crate +/hyper-0.13.9.crate diff --git a/hyper-fix-metadata.diff b/hyper-fix-metadata.diff new file mode 100644 index 0000000..c8f19ca --- /dev/null +++ b/hyper-fix-metadata.diff @@ -0,0 +1,12 @@ +--- hyper-0.13.9/Cargo.toml 2020-11-02T23:21:15+00:00 ++++ hyper-0.13.9/Cargo.toml 2020-11-04T20:30:54.971408+00:00 +@@ -250,9 +250,7 @@ + version = "1.0" + + [features] +-__internal_happy_eyeballs_tests = [] + default = ["runtime", "stream"] +-nightly = [] + runtime = ["tcp", "tokio/rt-core"] + stream = [] + tcp = ["socket2", "tokio/blocking", "tokio/tcp", "tokio/time"] diff --git a/rust-hyper.spec b/rust-hyper.spec index 6d810b1..a086d27 100644 --- a/rust-hyper.spec +++ b/rust-hyper.spec @@ -1,11 +1,13 @@ -# Generated by rust2rpm 13 -%bcond_without check +# Generated by rust2rpm 15 +# * pnet is not packaged +# * examples and UI tests are not included in the crate +%bcond_with check %global debug_package %{nil} %global crate hyper Name: rust-%{crate} -Version: 0.13.8 +Version: 0.13.9 Release: 1%{?dist} Summary: Fast and correct HTTP library @@ -13,6 +15,9 @@ Summary: Fast and correct HTTP library License: MIT URL: https://crates.io/crates/hyper Source: %{crates_source} +# Initial patched metadata +# * remove nightly-only / internal features +Patch0: hyper-fix-metadata.diff ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build} @@ -51,30 +56,6 @@ which use "default" feature of "%{crate}" crate. %files -n %{name}+default-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml -%package -n %{name}+__internal_happy_eyeballs_tests-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+__internal_happy_eyeballs_tests-devel %{_description} - -This package contains library source intended for building other packages -which use "__internal_happy_eyeballs_tests" feature of "%{crate}" crate. - -%files -n %{name}+__internal_happy_eyeballs_tests-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml - -%package -n %{name}+nightly-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+nightly-devel %{_description} - -This package contains library source intended for building other packages -which use "nightly" feature of "%{crate}" crate. - -%files -n %{name}+nightly-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml - %package -n %{name}+runtime-devel Summary: %{summary} BuildArch: noarch @@ -138,11 +119,14 @@ which use "tcp" feature of "%{crate}" crate. %if %{with check} %check -# only run unit tests, examples are not shipped with the crate -%cargo_test -- --lib +%cargo_test %endif %changelog +* Wed Nov 04 2020 Fabio Valentini - 0.13.9-1 +- Update to version 0.13.9. +- Fixes RHBZ#1893917 + * Sun Sep 20 2020 Fabio Valentini - 0.13.8-1 - Update to version 0.13.8. diff --git a/sources b/sources index 94bfca3..b7623f9 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (hyper-0.13.8.crate) = 6cb97297374ffc2de46a0ffc4fda52b7076ee4f27dc8dbdd3709f24469049def3b09de76ed1185a52c4fa24f8ce2fc840f106cd01dba03e3094d5066eba3f4e2 +SHA512 (hyper-0.13.9.crate) = 6156a0fcbc22dfc753a6a3cb2872658fbe0682c9da037e9f9fffa8f584373ce8bbc125f9f166c397366f93a944ad84273110ca24711b5b0817061f0c7a2e6f23