diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c1f145c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/object-0.32.2.crate diff --git a/.rust-object.metadata b/.rust-object.metadata index e69de29..17de4c1 100644 --- a/.rust-object.metadata +++ b/.rust-object.metadata @@ -0,0 +1 @@ +4388411dd3fdb0cfdc8a197c321a03490691fabd SOURCES/object-0.32.2.crate diff --git a/SOURCES/object-0.30.3.crate b/SOURCES/object-0.30.3.crate deleted file mode 100644 index 673a25b..0000000 Binary files a/SOURCES/object-0.30.3.crate and /dev/null differ diff --git a/SOURCES/object-fix-metadata.diff b/SOURCES/object-fix-metadata.diff index 4ad9cb1..6f92b75 100644 --- a/SOURCES/object-fix-metadata.diff +++ b/SOURCES/object-fix-metadata.diff @@ -1,11 +1,11 @@ ---- object-0.30.3/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ object-0.30.3/Cargo.toml 2023-03-30T18:31:27.154876+00:00 -@@ -70,17 +70,12 @@ - version = "2.4.1" - default-features = false +--- object-0.32.2/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ object-0.32.2/Cargo.toml 2023-12-27T19:50:43.679682+00:00 +@@ -76,17 +76,12 @@ + version = "0.5.0" + optional = true -[dependencies.wasmparser] --version = "0.57" +-version = "0.118.0" -optional = true - [features] @@ -18,19 +18,19 @@ ] archive = [] cargo-all = [] -@@ -103,7 +98,6 @@ +@@ -110,7 +105,6 @@ "elf", "macho", "pe", - "wasm", + "xcoff", ] elf = [] - macho = [] -@@ -132,7 +126,6 @@ +@@ -140,7 +134,6 @@ + "all", "unstable", - "xcoff", ] --wasm = ["wasmparser"] +-wasm = ["dep:wasmparser"] write = [ "write_std", "coff", diff --git a/SOURCES/rust2rpm.toml b/SOURCES/rust2rpm.toml new file mode 100644 index 0000000..325a8ec --- /dev/null +++ b/SOURCES/rust2rpm.toml @@ -0,0 +1,13 @@ +[features] +hide = [ + "alloc", + "compiler_builtins", + "core", + "rustc-dep-of-std", +] + +[tests] +skip = ["read::coff::coff_extended_relocations"] +skip-exact = true +comments = ["skip tests that require files which are not included in published crates"] + diff --git a/SPECS/rust-object.spec b/SPECS/rust-object.spec index 4a6d7d5..89fbc1f 100644 --- a/SPECS/rust-object.spec +++ b/SPECS/rust-object.spec @@ -8,14 +8,14 @@ }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec -# Generated by rust2rpm 24 +# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate object Name: rust-object -Version: 0.30.3 +Version: 0.32.2 Release: %autorelease Summary: Unified interface for reading and writing object file formats @@ -23,10 +23,11 @@ License: Apache-2.0 OR MIT URL: https://crates.io/crates/object Source: %{crates_source} # Manually created patch for downstream crate metadata changes -# * disable WASM support (wasmparser dependency is very outdated) +# * bump ruzstd dependency from 0.4 to 0.5 +# * disable unused WASM support Patch: object-fix-metadata.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: A unified interface for reading and writing object file formats.} @@ -121,18 +122,6 @@ use the "compression" feature of the "%{crate}" crate. %files -n %{name}+compression-devel %ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+crc32fast-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+crc32fast-devel %{_description} - -This package contains library source intended for building other packages which -use the "crc32fast" feature of the "%{crate}" crate. - -%files -n %{name}+crc32fast-devel -%ghost %{crate_instdir}/Cargo.toml - %package -n %{name}+doc-devel Summary: %{summary} BuildArch: noarch @@ -157,42 +146,6 @@ use the "elf" feature of the "%{crate}" crate. %files -n %{name}+elf-devel %ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+flate2-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+flate2-devel %{_description} - -This package contains library source intended for building other packages which -use the "flate2" feature of the "%{crate}" crate. - -%files -n %{name}+flate2-devel -%ghost %{crate_instdir}/Cargo.toml - -%package -n %{name}+hashbrown-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+hashbrown-devel %{_description} - -This package contains library source intended for building other packages which -use the "hashbrown" feature of the "%{crate}" crate. - -%files -n %{name}+hashbrown-devel -%ghost %{crate_instdir}/Cargo.toml - -%package -n %{name}+indexmap-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+indexmap-devel %{_description} - -This package contains library source intended for building other packages which -use the "indexmap" feature of the "%{crate}" crate. - -%files -n %{name}+indexmap-devel -%ghost %{crate_instdir}/Cargo.toml - %package -n %{name}+macho-devel Summary: %{summary} BuildArch: noarch @@ -338,7 +291,7 @@ use the "xcoff" feature of the "%{crate}" crate. %ghost %{crate_instdir}/Cargo.toml %prep -%autosetup -n %{crate}-%{version_no_tilde} -p1 +%autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires @@ -353,13 +306,22 @@ use the "xcoff" feature of the "%{crate}" crate. %if %{with check} %check # * skip tests that require files which are not included in published crates -%cargo_test -- -- --skip read::coff::coff_extended_relocations +%cargo_test -- -- --exact --skip read::coff::coff_extended_relocations %endif %changelog -* Mon Nov 20 2023 Arkady L. Shane - 0.30.3-1 +* Wed Dec 27 2023 Fabio Valentini - 0.32.2-1 +- Update to version 0.32.2; Fixes RHBZ#2255736 + +* Wed Nov 29 2023 Fabio Valentini - 0.32.1-1 +- Update to version 0.32.1; Fixes RHBZ#2186956 + +* Mon Nov 20 2023 Arkady L. Shane - 0.30.3-2 - Rebuilt for MSVSphere 9.2 +* Fri Jul 21 2023 Fedora Release Engineering - 0.30.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + * Thu Mar 30 2023 Fabio Valentini - 0.30.3-1 - Update to version 0.30.3; Fixes RHBZ#2144698