diff --git a/.gitignore b/.gitignore index ad2a6e6..8477a43 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /object-0.6.0.crate /object-0.7.0.crate /object-0.9.0.crate +/object-0.10.0.crate diff --git a/0001-deps-update-goblin-to-0.0.17.patch b/0001-deps-update-goblin-to-0.0.17.patch deleted file mode 100644 index 5200983..0000000 --- a/0001-deps-update-goblin-to-0.0.17.patch +++ /dev/null @@ -1,27 +0,0 @@ -From fddbb92505268aa4892180e159828976c98088dc Mon Sep 17 00:00:00 2001 -From: Igor Gnatenko -Date: Sat, 28 Jul 2018 17:37:57 +0200 -Subject: [PATCH] deps: update goblin to 0.0.17 - -Fixes: https://github.com/gimli-rs/object/issues/62 -Signed-off-by: Igor Gnatenko ---- - src/pe.rs | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/src/pe.rs b/src/pe.rs -index dba3bfc..77e0aa4 100644 ---- a/src/pe.rs -+++ b/src/pe.rs -@@ -269,7 +269,7 @@ impl<'data, 'file> Iterator for PeSymbolIterator<'data, 'file> { - kind: SymbolKind::Unknown, - section_kind: Some(SectionKind::Unknown), - global: true, -- name: Some(export.name), -+ name: export.name, - address: export.rva as u64, - size: 0, - }); --- -2.18.0 - diff --git a/object-0.9.0-fix-metadata.diff b/object-fix-metadata.diff similarity index 62% rename from object-0.9.0-fix-metadata.diff rename to object-fix-metadata.diff index 9e8cd3d..992a4d2 100644 --- a/object-0.9.0-fix-metadata.diff +++ b/object-fix-metadata.diff @@ -1,21 +1,17 @@ ---- object-0.9.0/Cargo.toml 1970-01-01T01:00:00+01:00 -+++ object-0.9.0/Cargo.toml 2018-07-28T17:39:05.114833+02:00 -@@ -23,13 +23,9 @@ - optional = true - - [dependencies.goblin] --version = "0.0.15" -+version = "0.0.17" +--- 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" -@@ -43,6 +39,5 @@ + default-features = false +@@ -44,6 +40,5 @@ [features] compression = ["flate2"] diff --git a/rust-object.spec b/rust-object.spec index 0a0de90..29bfa0f 100644 --- a/rust-object.spec +++ b/rust-object.spec @@ -5,19 +5,17 @@ %global crate object Name: rust-%{crate} -Version: 0.9.0 -Release: 2%{?dist} +Version: 0.10.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 -# * Bump goblin to 0.0.17, https://github.com/gimli-rs/object/pull/63 -Patch0: object-0.9.0-fix-metadata.diff -# Make it work with new goblin -Patch0001: 0001-deps-update-goblin-to-0.0.17.patch +Patch0: object-fix-metadata.diff ExclusiveArch: %{rust_arches} @@ -67,6 +65,9 @@ which use %{crate} from crates.io. %exclude %{cargo_registry}/%{crate}-%{version}/coverage %changelog +* Tue Oct 02 2018 Josh Stone - 0.10.0-1 +- Update to 0.10.0 + * Sat Jul 28 2018 Igor Gnatenko - 0.9.0-2 - Bump goblin to 0.0.17 diff --git a/sources b/sources index 893ca34..bca2521 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (object-0.9.0.crate) = f46143332b869cb6668cf2c7b8ac8a280accb3ca996cc13cbaf8e8a26d68cf4c2082473b63819aeb3b9954e6efe292d444176a8427fe77ec32bbd7f68a2db81f +SHA512 (object-0.10.0.crate) = 0545d2d8e49b21d61b1acde09670db43c2832eaa8d857b89f05cf8f07d75f114d980f964b8f6b66a3877def89c0aed59abdcc4cdf58a1bf6afba36d00916ebc3