diff --git a/.gitignore b/.gitignore index 452277f..90efef7 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /derive_builder-0.10.2.crate /derive_builder-0.11.2.crate /derive_builder-0.12.0.crate +/derive_builder-0.20.0.crate diff --git a/derive_builder-fix-metadata-auto.diff b/derive_builder-fix-metadata-auto.diff index c511c15..769888b 100644 --- a/derive_builder-fix-metadata-auto.diff +++ b/derive_builder-fix-metadata-auto.diff @@ -1,8 +1,8 @@ ---- derive_builder-0.12.0/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ derive_builder-0.12.0/Cargo.toml 2023-05-25T16:44:31.340112+00:00 -@@ -56,5 +56,3 @@ +--- derive_builder-0.20.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ derive_builder-0.20.0/Cargo.toml 2024-03-18T14:54:32.810266+00:00 +@@ -58,5 +58,3 @@ default = ["std"] - std = [] + std = ["derive_builder_macro/lib_has_std"] -[target."cfg(compiletests)".dev-dependencies.trybuild] -version = "1.0.38" diff --git a/rust-derive_builder.spec b/rust-derive_builder.spec index 8530a17..e023b4a 100644 --- a/rust-derive_builder.spec +++ b/rust-derive_builder.spec @@ -1,22 +1,21 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 26 %bcond_without check %global debug_package %{nil} %global crate derive_builder Name: rust-derive_builder -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 Source: %{crates_source} -# Automatically generated patch to strip foreign dependencies +# Automatically generated patch to strip dependencies and normalize metadata Patch: derive_builder-fix-metadata-auto.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Rust macro to automatically implement the builder pattern for arbitrary @@ -52,6 +51,18 @@ 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}+std-devel Summary: %{summary} BuildArch: noarch @@ -65,7 +76,7 @@ use the "std" 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 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 6479d06..bfe8eec 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (derive_builder-0.12.0.crate) = 3ba06c1d53f69ffca5a56edcd1173e9b5d67b9a5b00025c36fef04fa06a3046188ed503e1c0c8d56b26411b5199c3a152f284965f13ad8b346b6750ca9e00f0f +SHA512 (derive_builder-0.20.0.crate) = 3fb085259b8219d07c88a233c1aa0e586f6c6ec31c302896c3d2900a062a2e27b4211023f544bf139df3f4f6157773f192a96d9f1e980bf1bb7bd2125d5a7605