From b0956a3c7c34ad1917d1aad7abea821a83bca4c2 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sat, 7 Nov 2020 15:15:14 +0100 Subject: [PATCH] update to version 0.22.0 --- .gitignore | 1 + object-fix-metadata.diff | 34 +++++++++++++++++++++++++++------- rust-object.spec | 28 ++++++++++++++++++++++------ sources | 2 +- 4 files changed, 51 insertions(+), 14 deletions(-) diff --git a/.gitignore b/.gitignore index acaa865..8e18320 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ /object-0.18.0.crate /object-0.19.0.crate /object-0.20.0.crate +/object-0.22.0.crate diff --git a/object-fix-metadata.diff b/object-fix-metadata.diff index c34239b..34f2359 100644 --- a/object-fix-metadata.diff +++ b/object-fix-metadata.diff @@ -1,6 +1,26 @@ ---- object-0.20.0/Cargo.toml 2020-06-15T05:48:59+00:00 -+++ object-0.20.0/Cargo.toml 2020-06-15T23:11:31.787560+00:00 -@@ -60,9 +60,6 @@ +--- object-0.22.0/Cargo.toml 2020-10-27T03:03:10+00:00 ++++ object-0.22.0/Cargo.toml 2020-11-07T14:10:27.632126+00:00 +@@ -42,19 +42,6 @@ + [[example]] + name = "objectmap" + required-features = ["read_core"] +-[dependencies.alloc] +-version = "1.0.0" +-optional = true +-package = "rustc-std-workspace-alloc" +- +-[dependencies.compiler_builtins] +-version = "0.1.2" +-optional = true +- +-[dependencies.core] +-version = "1.0.0" +-optional = true +-package = "rustc-std-workspace-core" + + [dependencies.crc32fast] + version = "1.2" +@@ -68,9 +55,6 @@ version = "1.1" optional = true @@ -10,14 +30,14 @@ [dev-dependencies.memmap] version = "0.7" -@@ -75,11 +72,10 @@ +@@ -84,11 +68,9 @@ elf = [] macho = [] pe = ["coff"] --read = ["read_core", "coff", "elf", "macho", "pe", "wasm", "unaligned"] -+read = ["read_core", "coff", "elf", "macho", "pe", "unaligned"] +-read = ["read_core", "archive", "coff", "elf", "macho", "pe", "wasm", "unaligned"] ++read = ["read_core", "archive", "coff", "elf", "macho", "pe", "unaligned"] read_core = [] - rustc-dep-of-std = ["core", "compiler_builtins", "alloc"] +-rustc-dep-of-std = ["core", "compiler_builtins", "alloc"] std = [] unaligned = [] -wasm = ["wasmparser"] diff --git a/rust-object.spec b/rust-object.spec index 2c29059..b64b5c1 100644 --- a/rust-object.spec +++ b/rust-object.spec @@ -1,12 +1,12 @@ -# Generated by rust2rpm 13 -%bcond_with check +# Generated by rust2rpm 15 +%bcond_without check %global debug_package %{nil} %global crate object Name: rust-%{crate} -Version: 0.20.0 -Release: 2%{?dist} +Version: 0.22.0 +Release: 1%{?dist} Summary: Unified interface for reading and writing object file formats # Upstream license specification: Apache-2.0/MIT @@ -15,6 +15,7 @@ URL: https://crates.io/crates/object Source: %{crates_source} # Initial patched metadata # * Remove wasm deps +# * Drop dependencies on compiler internals Patch0: object-fix-metadata.diff ExclusiveArch: %{rust_arches} @@ -25,7 +26,7 @@ BuildArch: noarch BuildRequires: rust-packaging %global _description %{expand: -A unified interface for reading and writing object file formats.} +Unified interface for reading and writing object file formats.} %description %{_description} @@ -42,7 +43,6 @@ which use "%{crate}" crate. %license LICENSE-APACHE LICENSE-MIT %doc README.md %{cargo_registry}/%{crate}-%{version_no_tilde}/ -%exclude %{cargo_registry}/%{crate}-%{version_no_tilde}/coverage %package -n %{name}+default-devel Summary: %{summary} @@ -68,6 +68,18 @@ which use "all" feature of "%{crate}" crate. %files -n %{name}+all-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%package -n %{name}+archive-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+archive-devel %{_description} + +This package contains library source intended for building other packages +which use "archive" feature of "%{crate}" crate. + +%files -n %{name}+archive-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + %package -n %{name}+cargo-all-devel Summary: %{summary} BuildArch: noarch @@ -267,6 +279,10 @@ which use "write_core" feature of "%{crate}" crate. %endif %changelog +* Sat Nov 07 2020 Fabio Valentini - 0.22.0-1 +- Update to version 0.22.0. +- Fixes RHBZ#1868548 + * Wed Jul 29 2020 Fedora Release Engineering - 0.20.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild diff --git a/sources b/sources index 1c62c0c..0204aaf 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (object-0.20.0.crate) = 9d766227e9f04ca436d12a527bd1ce4babf3f930a4815c5176b1c42c5c2dccf0c9fe31a8130db2e58bd9fbe54dd9cb4427d684c698078329b95948b8c6ab18c6 +SHA512 (object-0.22.0.crate) = 9491319361ff42d19f0e3dc72186dfa2a21e28090516a0a1be5bfa78a267fc5447e1be73b16f25709586113a78ba5d49d8d6c72243c9adee3d3e4d7aa2f268e6