From 6347808c6ffba3b596f7add9361bcfad8a4b1358 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Tue, 6 Dec 2022 15:55:47 +0100 Subject: [PATCH] Update to version 0.11.2 --- .gitignore | 1 + derive_builder_core-fix-metadata.diff | 9 ------- rust-derive_builder_core.spec | 36 +++++++++++---------------- rust2rpm.conf | 3 +++ sources | 2 +- 5 files changed, 20 insertions(+), 31 deletions(-) delete mode 100644 derive_builder_core-fix-metadata.diff create mode 100644 rust2rpm.conf diff --git a/.gitignore b/.gitignore index 5c888a1..b0766d4 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /derive_builder_core-0.5.0.crate /derive_builder_core-0.9.0.crate /derive_builder_core-0.10.2.crate +/derive_builder_core-0.11.2.crate diff --git a/derive_builder_core-fix-metadata.diff b/derive_builder_core-fix-metadata.diff deleted file mode 100644 index 05471d2..0000000 --- a/derive_builder_core-fix-metadata.diff +++ /dev/null @@ -1,9 +0,0 @@ ---- derive_builder_core-0.10.2/Cargo.toml 1970-01-01T00:00:00+00:00 -+++ derive_builder_core-0.10.2/Cargo.toml 2021-05-03T22:21:35.074877+00:00 -@@ -33,6 +33,3 @@ - features = ["full", "extra-traits"] - [dev-dependencies.pretty_assertions] - version = "0.6.1" -- --[features] --clippy = [] diff --git a/rust-derive_builder_core.spec b/rust-derive_builder_core.spec index b190dbb..ce0334c 100644 --- a/rust-derive_builder_core.spec +++ b/rust-derive_builder_core.spec @@ -1,28 +1,20 @@ -# Generated by rust2rpm 17 +# Generated by rust2rpm 23 %bcond_without check %global debug_package %{nil} %global crate derive_builder_core -Name: rust-%{crate} -Version: 0.10.2 +Name: rust-derive_builder_core +Version: 0.11.2 Release: %autorelease Summary: Internal helper library for the derive_builder crate # Upstream license specification: MIT/Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/derive_builder_core Source: %{crates_source} -# Initial patched metadata -# * drop optional clippy feature (clippy is not packaged as a crate) -Patch0: derive_builder_core-fix-metadata.diff -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Internal helper library for the derive_builder crate.} @@ -35,13 +27,15 @@ BuildArch: noarch %description devel %{_description} -This package contains library source intended for building other packages -which use "%{crate}" crate. +This package contains library source intended for building other packages which +use the "%{crate}" crate. %files devel -%license LICENSE-MIT LICENSE-APACHE -%doc README.md CHANGELOG.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/CHANGELOG.md +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -49,11 +43,11 @@ BuildArch: noarch %description -n %{name}+default-devel %{_description} -This package contains library source intended for building other packages -which use "default" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/rust2rpm.conf b/rust2rpm.conf new file mode 100644 index 0000000..0cbbfda --- /dev/null +++ b/rust2rpm.conf @@ -0,0 +1,3 @@ +[DEFAULT] +unwanted-features = + clippy diff --git a/sources b/sources index 99bf8ff..5ef4bdd 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (derive_builder_core-0.10.2.crate) = 4037d4dff2f2ade95135e28f05c0bfd792acd0faf4edb8bcc6f04b4032f222bbe9251910b79735b162101445f5f17264b8e8b9318a30aeb65c9a7ae1b178cc07 +SHA512 (derive_builder_core-0.11.2.crate) = 4c77830fe455a826eb566418ff52831997764e3b09a6fb39dc7c351ff7d5d95dabad04f84359d6c8944371f6a44f787f6502dd3a25477d297014d19cfd0b79c3