From 2fbe12ad98a07c4f9679e84e6c5c6d75710bf93a Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Mon, 8 Apr 2024 17:20:16 +0200 Subject: [PATCH] Update to version 1.0.0; Fixes RHBZ#2249876 --- .gitignore | 1 + LICENSE | 25 +++++++++++++++++++++++++ rust-http-body.spec | 11 +++++++---- sources | 2 +- 4 files changed, 34 insertions(+), 5 deletions(-) create mode 100644 LICENSE diff --git a/.gitignore b/.gitignore index 9108950..f913632 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ /http-body-0.4.3.crate /http-body-0.4.4.crate /http-body-0.4.5.crate +/http-body-1.0.0.crate diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..27b08f2 --- /dev/null +++ b/LICENSE @@ -0,0 +1,25 @@ +Copyright (c) 2019 Hyper Contributors + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. diff --git a/rust-http-body.spec b/rust-http-body.spec index 21fa9a2..bd87cef 100644 --- a/rust-http-body.spec +++ b/rust-http-body.spec @@ -1,19 +1,21 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 26 %bcond_without check %global debug_package %{nil} %global crate http-body Name: rust-http-body -Version: 0.4.5 +Version: 1.0.0 Release: %autorelease Summary: Trait representing an asynchronous, streaming, HTTP request or response body License: MIT URL: https://crates.io/crates/http-body Source: %{crates_source} +# https://github.com/hyperium/http-body/pull/118 +Source: https://github.com/hyperium/http-body/raw/v%{version}/LICENSE -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Trait representing an asynchronous, streaming, HTTP request or response @@ -49,8 +51,9 @@ use the "default" feature of the "%{crate}" crate. %ghost %{crate_instdir}/Cargo.toml %prep -%autosetup -n %{crate}-%{version_no_tilde} -p1 +%autosetup -n %{crate}-%{version} -p1 %cargo_prep +cp -pav %{SOURCE1} . %generate_buildrequires %cargo_generate_buildrequires diff --git a/sources b/sources index 75d3e93..a31acba 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (http-body-0.4.5.crate) = d01de0747155283331086f2849d1dccc0387feda576f60d84cdd1bc8817ac82ae131c294b5cf9ddabb7ac91bfdef67bc2ea5fcbbb04f41b473d4c5f5b2ac13d5 +SHA512 (http-body-1.0.0.crate) = b351df7a2ec991787a57232229f80a29a648433de25efc1db2c9453d5a09b75c2e8b0101268b6753251c686a2af9ce346e08bd016f4e93891534f428c1d80183