diff --git a/.gitignore b/.gitignore index 8170266..2847aa5 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,4 @@ /addr2line-0.17.0.crate /addr2line-0.18.0.crate /addr2line-0.19.0.crate +/addr2line-0.21.0.crate diff --git a/addr2line-fix-metadata.diff b/addr2line-fix-metadata.diff index 6ce282d..eaebc46 100644 --- a/addr2line-fix-metadata.diff +++ b/addr2line-fix-metadata.diff @@ -1,6 +1,6 @@ ---- addr2line-0.19.0/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ addr2line-0.19.0/Cargo.toml 2023-03-30T18:29:34.834497+00:00 -@@ -16,6 +16,10 @@ +--- addr2line-0.21.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ addr2line-0.21.0/Cargo.toml 2023-11-29T18:39:59.278241+00:00 +@@ -18,6 +18,10 @@ "/benches/*", "/fixtures/*", ".github", diff --git a/rust-addr2line.spec b/rust-addr2line.spec index c5e6dfd..36c1dd2 100644 --- a/rust-addr2line.spec +++ b/rust-addr2line.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 25 # * resolve circular dependency with backtrace %bcond_with check %global debug_package %{nil} @@ -6,7 +6,7 @@ %global crate addr2line Name: rust-addr2line -Version: 0.19.0 +Version: 0.21.0 Release: %autorelease Summary: Cross-platform symbolication library written in Rust, using gimli @@ -17,7 +17,7 @@ Source: %{crates_source} # * exclude files that are only useful for upstream development Patch: addr2line-fix-metadata.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: A cross-platform symbolication library written in Rust, using `gimli`.} @@ -76,6 +76,18 @@ use the "fallible-iterator" feature of the "%{crate}" crate. %files -n %{name}+fallible-iterator-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+memmap2-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+memmap2-devel %{_description} + +This package contains library source intended for building other packages which +use the "memmap2" feature of the "%{crate}" crate. + +%files -n %{name}+memmap2-devel +%ghost %{crate_instdir}/Cargo.toml + %package -n %{name}+object-devel Summary: %{summary} BuildArch: noarch @@ -137,7 +149,7 @@ use the "std-object" 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 diff --git a/rust2rpm.conf b/rust2rpm.conf deleted file mode 100644 index 86bc300..0000000 --- a/rust2rpm.conf +++ /dev/null @@ -1,6 +0,0 @@ -[DEFAULT] -unwanted-features = - alloc - compiler_builtins - core - rustc-dep-of-std diff --git a/rust2rpm.toml b/rust2rpm.toml new file mode 100644 index 0000000..e618580 --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,12 @@ +[features] +hide = [ + "alloc", + "compiler_builtins", + "core", + "rustc-dep-of-std", +] + +[tests] +run = ["none"] +comments = ["resolve circular dependency with backtrace"] + diff --git a/sources b/sources index 8b2c0f8..f1dfc95 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (addr2line-0.19.0.crate) = 18da72e412bb89028e2ccb838192330535e45300f6fd8edc7d1d64397792a3db12418aa24a3312730c5414e2a1b1d65e6b9d5691ba234c9142b5d885523a5e94 +SHA512 (addr2line-0.21.0.crate) = afde7660dda30dee240e79df1fb5b92d4572520bf17a134ef3765e2a077af9e13713952d52e27fae420109b40f6e24dbce1056687dbcbead858ffc21cc7dc69b