From 33c0309a33ac955676d9890e963e2c33090d0dd9 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Mar 18 2024 15:33:19 +0000 Subject: Update to version 0.20.0; Fixes RHBZ#2259682 --- diff --git a/.gitignore b/.gitignore index 9016bde..9cbe532 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /derive_builder_macro-0.10.2.crate /derive_builder_macro-0.11.2.crate /derive_builder_macro-0.12.0.crate +/derive_builder_macro-0.20.0.crate diff --git a/rust-derive_builder_macro.spec b/rust-derive_builder_macro.spec index ba8504e..bb423b3 100644 --- a/rust-derive_builder_macro.spec +++ b/rust-derive_builder_macro.spec @@ -1,20 +1,19 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 26 %bcond_without check %global debug_package %{nil} %global crate derive_builder_macro Name: rust-derive_builder_macro -Version: 0.12.0 +Version: 0.20.0 Release: %autorelease Summary: Rust macro to automatically implement the builder pattern for arbitrary structs -# Upstream license specification: MIT/Apache-2.0 License: MIT OR Apache-2.0 URL: https://crates.io/crates/derive_builder_macro Source: %{crates_source} -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Rust macro to automatically implement the builder pattern for arbitrary @@ -49,8 +48,32 @@ use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+alloc-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+alloc-devel %{_description} + +This package contains library source intended for building other packages which +use the "alloc" feature of the "%{crate}" crate. + +%files -n %{name}+alloc-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+lib_has_std-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+lib_has_std-devel %{_description} + +This package contains library source intended for building other packages which +use the "lib_has_std" feature of the "%{crate}" crate. + +%files -n %{name}+lib_has_std-devel +%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 0cbbfda..0000000 --- a/rust2rpm.conf +++ /dev/null @@ -1,3 +0,0 @@ -[DEFAULT] -unwanted-features = - clippy diff --git a/rust2rpm.toml b/rust2rpm.toml new file mode 100644 index 0000000..7d1fbb7 --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,3 @@ +[features] +hide = ["clippy"] + diff --git a/sources b/sources index 9b9f7af..bdc45ec 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (derive_builder_macro-0.12.0.crate) = cb4a71f49c66ff91dc5a459053102e1aab7956d6003998270ac9bc94c2259b824a77689f209ff0104261ff829e54dd0900ec76c2cc1b8d3c52092961ffd072e8 +SHA512 (derive_builder_macro-0.20.0.crate) = 1239bccd3f752c641782aa99d14de0ee92431f46be8b98861cc416e304b03dd18ec875f592d94093189b571592d9fb10b322f7dd205f90b84574e37d38869a1c