From d2e8f323e9ba079767589479d0b3b127dcacfca4 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Tue, 11 Sep 2018 00:17:49 +0200 Subject: [PATCH] Update to 0.2.3 Signed-off-by: Igor Gnatenko --- .gitignore | 1 + futures-core-fix-metadata.diff | 11 +++++++++++ rust-futures-core.spec | 20 ++++++++++++++------ sources | 2 +- 4 files changed, 27 insertions(+), 7 deletions(-) create mode 100644 futures-core-fix-metadata.diff diff --git a/.gitignore b/.gitignore index 902afa6..48b35f4 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /futures-core-0.2.1.crate +/futures-core-0.2.3.crate diff --git a/futures-core-fix-metadata.diff b/futures-core-fix-metadata.diff new file mode 100644 index 0000000..ba5e801 --- /dev/null +++ b/futures-core-fix-metadata.diff @@ -0,0 +1,11 @@ +--- futures-core-preview-0.2.3/Cargo.toml 1970-01-01T01:00:00+01:00 ++++ futures-core-preview-0.2.3/Cargo.toml 2018-09-11T00:16:55.597479+02:00 +@@ -11,7 +11,7 @@ + # will likely look very different (and much more reasonable) + + [package] +-name = "futures-core-preview" ++name = "futures-core" + version = "0.2.3" + authors = ["Alex Crichton "] + description = "The core traits and types in for the `futures` library.\n" diff --git a/rust-futures-core.spec b/rust-futures-core.spec index 498ebb6..c4fecae 100644 --- a/rust-futures-core.spec +++ b/rust-futures-core.spec @@ -3,16 +3,20 @@ %global debug_package %{nil} %global crate futures-core +%global real_crate futures-core-preview Name: rust-%{crate} -Version: 0.2.1 -Release: 2%{?dist} +Version: 0.2.3 +Release: 1%{?dist} Summary: Core traits and types in for the `futures` library -# https://github.com/rust-lang-nursery/futures-rs/issues/1015 +# Upstream license specification: MIT/Apache-2.0 License: MIT or ASL 2.0 -URL: https://crates.io/crates/futures-core -Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate +URL: https://crates.io/crates/futures-core-preview +Source0: https://crates.io/api/v1/crates/%{real_crate}/%{version}/download#/%{crate}-%{version}.crate +# Initial patched metadata +# * Remove -preview suffix +Patch0: futures-core-fix-metadata.diff ExclusiveArch: %{rust_arches} @@ -34,7 +38,7 @@ This package contains library source intended for building other packages which use %{crate} from crates.io. %prep -%autosetup -n %{crate}-%{version} -p1 +%autosetup -n %{real_crate}-%{version} -p1 %cargo_prep %build @@ -49,9 +53,13 @@ which use %{crate} from crates.io. %endif %files devel +%license LICENSE-MIT LICENSE-APACHE %{cargo_registry}/%{crate}-%{version}/ %changelog +* Tue Sep 11 2018 Igor Gnatenko - 0.2.3-1 +- Update to 0.2.3 + * Sat Jul 14 2018 Fedora Release Engineering - 0.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild diff --git a/sources b/sources index 71b1b4d..1f2552a 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (futures-core-0.2.1.crate) = a0678970628214cc8c36e87661080934e13bbf720e5c303eb7bdaa4f53115f8ecfa68f958c6a5149e565004be0f84abdff37f2e3579044e6422e09efac2ad853 +SHA512 (futures-core-0.2.3.crate) = b5363d72bbf65513a8324e8371a64353bd9934d5f5fd7b9697fcd4a6fa7216ad4f9249fc472d3190d8e02b1d179d144d972e1548dd0935031166056d6a2e3ed5