From 9488d91f7c7cf00dfdbb5bb5317935caee71b518 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert-Andr=C3=A9=20Mauchin?= Date: Fri, 13 Dec 2019 23:30:40 +0100 Subject: [PATCH] Initial import MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Robert-André Mauchin --- .gitignore | 1 + futures-util-fix-metadata.diff | 41 ---- rust-futures-util.spec | 351 +++++++++++++++++++++++++++++---- sources | 2 +- 4 files changed, 315 insertions(+), 80 deletions(-) delete mode 100644 futures-util-fix-metadata.diff diff --git a/.gitignore b/.gitignore index 6956572..2c9595d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /futures-util-0.2.1.crate /futures-util-0.2.2.crate +/futures-util-0.3.1.crate diff --git a/futures-util-fix-metadata.diff b/futures-util-fix-metadata.diff deleted file mode 100644 index 4a29df0..0000000 --- a/futures-util-fix-metadata.diff +++ /dev/null @@ -1,41 +0,0 @@ ---- futures-util-preview-0.2.2/Cargo.toml 1970-01-01T01:00:00+01:00 -+++ futures-util-preview-0.2.2/Cargo.toml 2018-09-11T07:23:42.837228+02:00 -@@ -11,7 +11,7 @@ - # will likely look very different (and much more reasonable) - - [package] --name = "futures-util-preview" -+name = "futures-util" - version = "0.2.2" - authors = ["Alex Crichton "] - description = "Common utilities and extension traits for the futures-rs library.\n" -@@ -26,23 +26,23 @@ - version = "1.4" - default-features = false - --[dependencies.futures-channel-preview] -+[dependencies.futures-channel] - version = "0.2.2" - default-features = false - --[dependencies.futures-core-preview] -+[dependencies.futures-core] - version = "0.2.2" - default-features = false - --[dependencies.futures-io-preview] -+[dependencies.futures-io] - version = "0.2.2" - default-features = false - --[dependencies.futures-sink-preview] -+[dependencies.futures-sink] - version = "0.2.2" - default-features = false - - [features] - bench = [] --default = ["std", "futures-core-preview/either", "futures-sink-preview/either"] --std = ["futures-core-preview/std", "futures-io-preview/std", "futures-sink-preview/std", "either/use_std"] -+default = ["std", "futures-core/either", "futures-sink/either"] -+std = ["futures-core/std", "futures-io/std", "futures-sink/std", "either/use_std"] diff --git a/rust-futures-util.spec b/rust-futures-util.spec index 8ea7174..d2cf895 100644 --- a/rust-futures-util.spec +++ b/rust-futures-util.spec @@ -1,52 +1,340 @@ -# Generated by rust2rpm -# * Tests do not work out of the tree -# https://github.com/rust-lang-nursery/futures-rs/issues/1019 +# Generated by rust2rpm 12 +# Cyclic dependency on futures %bcond_with check %global debug_package %{nil} %global crate futures-util -%global real_crate futures-util-preview Name: rust-%{crate} -Version: 0.2.2 -Release: 2%{?dist} +Version: 0.3.1 +Release: 1%{?dist} Summary: Common utilities and extension traits for the futures-rs library -# Upstream license specification: MIT/Apache-2.0 +# Upstream license specification: MIT OR Apache-2.0 License: MIT or ASL 2.0 -URL: https://crates.io/crates/futures-util-preview -Source0: https://crates.io/api/v1/crates/%{real_crate}/%{version}/download#/%{crate}-%{version}.crate -# Initial patched metadata -# * Remove -preview suffix -Patch0: futures-util-fix-metadata.diff +URL: https://crates.io/crates/futures-util +Source: %{crates_source} ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif BuildRequires: rust-packaging -# [dependencies] -BuildRequires: (crate(either) >= 1.4.0 with crate(either) < 2.0.0) -BuildRequires: (crate(futures-channel) >= 0.2.2 with crate(futures-channel) < 0.3.0) -BuildRequires: (crate(futures-core) >= 0.2.2 with crate(futures-core) < 0.3.0) -BuildRequires: (crate(futures-io) >= 0.2.2 with crate(futures-io) < 0.3.0) -BuildRequires: (crate(futures-sink) >= 0.2.2 with crate(futures-sink) < 0.3.0) -%description -%{summary}. +%global _description %{expand: +Common utilities and extension traits for the futures-rs library.} + +%description %{_description} %package devel Summary: %{summary} BuildArch: noarch -%description devel -Common utilities and extension traits for the futures-rs library. +%description devel %{_description} + +This package contains library source intended for building other packages +which use "%{crate}" crate. + +%files devel +%license LICENSE-APACHE LICENSE-MIT +%{cargo_registry}/%{crate}-%{version_no_tilde}/ + +%package -n %{name}+default-devel +Summary: %{summary} +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. + +%files -n %{name}+default-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+alloc-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+alloc-devel %{_description} + +This package contains library source intended for building other packages +which use "alloc" feature of "%{crate}" crate. + +%files -n %{name}+alloc-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+async-await-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+async-await-devel %{_description} + +This package contains library source intended for building other packages +which use "async-await" feature of "%{crate}" crate. + +%files -n %{name}+async-await-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+async-await-macro-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+async-await-macro-devel %{_description} + +This package contains library source intended for building other packages +which use "async-await-macro" feature of "%{crate}" crate. + +%files -n %{name}+async-await-macro-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+bilock-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+bilock-devel %{_description} + +This package contains library source intended for building other packages +which use "bilock" feature of "%{crate}" crate. + +%files -n %{name}+bilock-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+cfg-target-has-atomic-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+cfg-target-has-atomic-devel %{_description} + +This package contains library source intended for building other packages +which use "cfg-target-has-atomic" feature of "%{crate}" crate. + +%files -n %{name}+cfg-target-has-atomic-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+channel-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+channel-devel %{_description} This package contains library source intended for building other packages -which use %{crate} from crates.io. +which use "channel" feature of "%{crate}" crate. + +%files -n %{name}+channel-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+compat-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+compat-devel %{_description} + +This package contains library source intended for building other packages +which use "compat" feature of "%{crate}" crate. + +%files -n %{name}+compat-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+futures-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+futures-devel %{_description} + +This package contains library source intended for building other packages +which use "futures" feature of "%{crate}" crate. + +%files -n %{name}+futures-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+futures-channel-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+futures-channel-devel %{_description} + +This package contains library source intended for building other packages +which use "futures-channel" feature of "%{crate}" crate. + +%files -n %{name}+futures-channel-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+futures-io-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+futures-io-devel %{_description} + +This package contains library source intended for building other packages +which use "futures-io" feature of "%{crate}" crate. + +%files -n %{name}+futures-io-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+futures-macro-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+futures-macro-devel %{_description} + +This package contains library source intended for building other packages +which use "futures-macro" feature of "%{crate}" crate. + +%files -n %{name}+futures-macro-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+futures-sink-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+futures-sink-devel %{_description} + +This package contains library source intended for building other packages +which use "futures-sink" feature of "%{crate}" crate. + +%files -n %{name}+futures-sink-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+io-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+io-devel %{_description} + +This package contains library source intended for building other packages +which use "io" feature of "%{crate}" crate. + +%files -n %{name}+io-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+io-compat-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+io-compat-devel %{_description} + +This package contains library source intended for building other packages +which use "io-compat" feature of "%{crate}" crate. + +%files -n %{name}+io-compat-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+memchr-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+memchr-devel %{_description} + +This package contains library source intended for building other packages +which use "memchr" feature of "%{crate}" crate. + +%files -n %{name}+memchr-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+proc-macro-hack-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+proc-macro-hack-devel %{_description} + +This package contains library source intended for building other packages +which use "proc-macro-hack" feature of "%{crate}" crate. + +%files -n %{name}+proc-macro-hack-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+proc-macro-nested-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+proc-macro-nested-devel %{_description} + +This package contains library source intended for building other packages +which use "proc-macro-nested" feature of "%{crate}" crate. + +%files -n %{name}+proc-macro-nested-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+read-initializer-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+read-initializer-devel %{_description} + +This package contains library source intended for building other packages +which use "read-initializer" feature of "%{crate}" crate. + +%files -n %{name}+read-initializer-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+sink-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+sink-devel %{_description} + +This package contains library source intended for building other packages +which use "sink" feature of "%{crate}" crate. + +%files -n %{name}+sink-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+slab-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+slab-devel %{_description} + +This package contains library source intended for building other packages +which use "slab" feature of "%{crate}" crate. + +%files -n %{name}+slab-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+std-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+std-devel %{_description} + +This package contains library source intended for building other packages +which use "std" feature of "%{crate}" crate. + +%files -n %{name}+std-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+tokio-io-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+tokio-io-devel %{_description} + +This package contains library source intended for building other packages +which use "tokio-io" feature of "%{crate}" crate. + +%files -n %{name}+tokio-io-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+unstable-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+unstable-devel %{_description} + +This package contains library source intended for building other packages +which use "unstable" feature of "%{crate}" crate. + +%files -n %{name}+unstable-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %prep -%autosetup -n %{real_crate}-%{version} -p1 +%autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep +%generate_buildrequires +%cargo_generate_buildrequires + %build %cargo_build @@ -58,19 +346,6 @@ which use %{crate} from crates.io. %cargo_test %endif -%files devel -%license LICENSE-MIT LICENSE-APACHE -%{cargo_registry}/%{crate}-%{version}/ - %changelog -* Sat Feb 02 2019 Fedora Release Engineering - 0.2.2-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - -* Tue Sep 11 2018 Igor Gnatenko - 0.2.2-1 -- Update to 0.2.2 - -* Sat Jul 14 2018 Fedora Release Engineering - 0.2.1-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Mon May 21 2018 Igor Gnatenko - 0.2.1-1 +* Fri Dec 13 22:50:30 CET 2019 Robert-André Mauchin - 0.3.1-1 - Initial package diff --git a/sources b/sources index 6e4b8b6..ce48b66 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (futures-util-0.2.2.crate) = 8bc674653415e0ac3458db682d2ecfa836a9a5b18db45bc1e9d5129e9da25645b18e8c92cbd2280e49502af5c7d7b50574c471dc2863fa1f314a3f57b2aa647e +SHA512 (futures-util-0.3.1.crate) = 1f3582175b741679a870bf9c9b174a6a4b9bdf07c93bf6e191765e54421cfba310a053e11caef58a2a129aa8e981787ffc2a5682c329a943240cda4010ffa0e7