From fa235b11f35f58f317abd428a83874890792e691 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Wed, 17 May 2023 11:30:10 +0200 Subject: [PATCH] Regenerate with rust2rpm v24 --- blobby-fix-metadata.diff | 2 +- rust-blobby0.1.spec | 35 +++++++++++++++-------------------- 2 files changed, 16 insertions(+), 21 deletions(-) diff --git a/blobby-fix-metadata.diff b/blobby-fix-metadata.diff index c3b4d2b..40a870f 100644 --- a/blobby-fix-metadata.diff +++ b/blobby-fix-metadata.diff @@ -1,5 +1,5 @@ --- blobby-0.1.2/Cargo.toml 1970-01-01T00:00:00+00:00 -+++ blobby-0.1.2/Cargo.toml 2020-10-21T12:53:49.645144+00:00 ++++ blobby-0.1.2/Cargo.toml 2023-05-17T09:29:18.940106+00:00 @@ -27,6 +27,6 @@ features = ["std"] diff --git a/rust-blobby0.1.spec b/rust-blobby0.1.spec index bb26084..d515079 100644 --- a/rust-blobby0.1.spec +++ b/rust-blobby0.1.spec @@ -1,28 +1,22 @@ -# Generated by rust2rpm 13 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate blobby -Name: rust-%{crate}0.1 +Name: rust-blobby0.1 Version: 0.1.2 Release: %autorelease Summary: Iterator over simple binary blob storage -# Upstream license specification: MIT OR Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/blobby Source: %{crates_source} -# Initial patched metadata -# * bump dev-dep on hex from 0.3 to 0.4 -Patch0: blobby-fix-metadata.diff +# Manually created patch for downstream crate metadata changes +# * bump hex dev-dependency from 0.3 to 0.4 +Patch: blobby-fix-metadata.diff -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Iterator over simple binary blob storage.} @@ -35,12 +29,13 @@ 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-APACHE LICENSE-MIT -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -48,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