From e69b105097fadf1b2f903892b69dfc5d7768cb51 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Tue, 27 Nov 2018 12:28:52 -0800 Subject: [PATCH] Update to 0.11.0 --- .gitignore | 1 + object-fix-metadata.diff | 21 --------------- rust-object.spec | 57 +++++++++++++++++++++++++++++----------- sources | 2 +- 4 files changed, 43 insertions(+), 38 deletions(-) delete mode 100644 object-fix-metadata.diff diff --git a/.gitignore b/.gitignore index 8477a43..2bdc485 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /object-0.7.0.crate /object-0.9.0.crate /object-0.10.0.crate +/object-0.11.0.crate diff --git a/object-fix-metadata.diff b/object-fix-metadata.diff deleted file mode 100644 index 992a4d2..0000000 --- a/object-fix-metadata.diff +++ /dev/null @@ -1,21 +0,0 @@ ---- object-0.10.0/Cargo.toml 1969-12-31T16:00:00-08:00 -+++ object-0.10.0/Cargo.toml 2018-10-02T10:14:40.393495-07:00 -@@ -28,10 +28,6 @@ - features = ["endian_fd", "elf32", "elf64", "mach32", "mach64", "pe32", "pe64", "archive"] - default-features = false - --[dependencies.parity-wasm] --version = "0.31.0" --optional = true -- - [dependencies.scroll] - version = "0.9" - default-features = false -@@ -44,6 +40,5 @@ - - [features] - compression = ["flate2"] --default = ["std", "compression", "wasm"] -+default = ["std", "compression"] - std = ["goblin/std"] --wasm = ["std", "parity-wasm"] diff --git a/rust-object.spec b/rust-object.spec index 547eec2..3768b6d 100644 --- a/rust-object.spec +++ b/rust-object.spec @@ -5,35 +5,33 @@ %global crate object Name: rust-%{crate} -Version: 0.10.0 -Release: 2%{?dist} +Version: 0.11.0 +Release: 1%{?dist} Summary: Unified interface for parsing object file formats # Upstream license specification: Apache-2.0/MIT License: ASL 2.0 or MIT URL: https://crates.io/crates/object Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate -# Initial patched metadata -# * parity-wasm is not packaged yet -Patch0: object-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging BuildRequires: (crate(flate2/default) >= 1.0.0 with crate(flate2/default) < 2.0.0) -BuildRequires: (crate(goblin/archive) >= 0.0.17 with crate(goblin/archive) < 0.0.18) -BuildRequires: (crate(goblin/elf32) >= 0.0.17 with crate(goblin/elf32) < 0.0.18) -BuildRequires: (crate(goblin/elf64) >= 0.0.17 with crate(goblin/elf64) < 0.0.18) -BuildRequires: (crate(goblin/endian_fd) >= 0.0.17 with crate(goblin/endian_fd) < 0.0.18) -BuildRequires: (crate(goblin/mach32) >= 0.0.17 with crate(goblin/mach32) < 0.0.18) -BuildRequires: (crate(goblin/mach64) >= 0.0.17 with crate(goblin/mach64) < 0.0.18) -BuildRequires: (crate(goblin/pe32) >= 0.0.17 with crate(goblin/pe32) < 0.0.18) -BuildRequires: (crate(goblin/pe64) >= 0.0.17 with crate(goblin/pe64) < 0.0.18) -BuildRequires: (crate(goblin/std) >= 0.0.17 with crate(goblin/std) < 0.0.18) +BuildRequires: (crate(goblin/archive) >= 0.0.19 with crate(goblin/archive) < 0.0.20) +BuildRequires: (crate(goblin/elf32) >= 0.0.19 with crate(goblin/elf32) < 0.0.20) +BuildRequires: (crate(goblin/elf64) >= 0.0.19 with crate(goblin/elf64) < 0.0.20) +BuildRequires: (crate(goblin/endian_fd) >= 0.0.19 with crate(goblin/endian_fd) < 0.0.20) +BuildRequires: (crate(goblin/mach32) >= 0.0.19 with crate(goblin/mach32) < 0.0.20) +BuildRequires: (crate(goblin/mach64) >= 0.0.19 with crate(goblin/mach64) < 0.0.20) +BuildRequires: (crate(goblin/pe32) >= 0.0.19 with crate(goblin/pe32) < 0.0.20) +BuildRequires: (crate(goblin/pe64) >= 0.0.19 with crate(goblin/pe64) < 0.0.20) +BuildRequires: (crate(goblin/std) >= 0.0.19 with crate(goblin/std) < 0.0.20) +BuildRequires: (crate(parity-wasm/default) >= 0.35.0 with crate(parity-wasm/default) < 0.36.0) BuildRequires: (crate(scroll) >= 0.9.0 with crate(scroll) < 0.10.0) -BuildRequires: (crate(uuid) >= 0.6.0 with crate(uuid) < 0.7.0) +BuildRequires: (crate(uuid) >= 0.7.0 with crate(uuid) < 0.8.0) %if %{with check} -BuildRequires: (crate(memmap/default) >= 0.6.0 with crate(memmap/default) < 0.7.0) +BuildRequires: (crate(memmap/default) >= 0.7.0 with crate(memmap/default) < 0.8.0) %endif %global _description \ @@ -92,6 +90,18 @@ which use "flate2" feature of "%{crate}" crate. %files -n %{name}+flate2-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml +%package -n %{name}+parity-wasm-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+parity-wasm-devel %{_description} + +This package contains library source intended for building other packages +which use "parity-wasm" feature of "%{crate}" crate. + +%files -n %{name}+parity-wasm-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + %package -n %{name}+std-devel Summary: %{summary} BuildArch: noarch @@ -104,6 +114,18 @@ which use "std" feature of "%{crate}" crate. %files -n %{name}+std-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml +%package -n %{name}+wasm-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+wasm-devel %{_description} + +This package contains library source intended for building other packages +which use "wasm" feature of "%{crate}" crate. + +%files -n %{name}+wasm-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep @@ -120,6 +142,9 @@ which use "std" feature of "%{crate}" crate. %endif %changelog +* Tue Nov 27 2018 Josh Stone - 0.11.0-1 +- Update to 0.11.0 + * Tue Nov 13 2018 Josh Stone - 0.10.0-2 - Adapt to new packaging diff --git a/sources b/sources index bca2521..94bdc60 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (object-0.10.0.crate) = 0545d2d8e49b21d61b1acde09670db43c2832eaa8d857b89f05cf8f07d75f114d980f964b8f6b66a3877def89c0aed59abdcc4cdf58a1bf6afba36d00916ebc3 +SHA512 (object-0.11.0.crate) = 059d75a7c0c617c04b84c2186b31aa3888ddbd342e5300a1833f412f94090b97e9d8118d516ebc672e23fc2182e881d5161e84520327db646521ed25c1d86a9d