From 73edf33d068284a2a3cc6dbad3a331452715f4a6 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Thu, 12 May 2022 15:18:31 +0200 Subject: [PATCH] Update to version 0.1.8; Fixes RHBZ#2080670 --- .gitignore | 1 + rust-serde_repr.spec | 26 ++++++++++++-------------- sources | 2 +- 3 files changed, 14 insertions(+), 15 deletions(-) diff --git a/.gitignore b/.gitignore index 1683a07..e0a1bb9 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /serde_repr-0.1.5.crate /serde_repr-0.1.6.crate /serde_repr-0.1.7.crate +/serde_repr-0.1.8.crate diff --git a/rust-serde_repr.spec b/rust-serde_repr.spec index da7e9e6..e9eea00 100644 --- a/rust-serde_repr.spec +++ b/rust-serde_repr.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 17 +# Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} %global crate serde_repr Name: rust-%{crate} -Version: 0.1.7 +Version: 0.1.8 Release: %autorelease Summary: Derive Serialize and Deserialize for C-like enums @@ -15,11 +15,8 @@ URL: https://crates.io/crates/serde_repr Source: %{crates_source} ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Derive Serialize and Deserialize that delegates to the underlying repr of a @@ -33,13 +30,14 @@ 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 -%doc README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -47,11 +45,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/sources b/sources index 5c80f27..12a2d47 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (serde_repr-0.1.7.crate) = 4e3e87b1c97ee587e88be56d67f287e43252de474a3becdefb4b768eda661db5d78f665d7d93720a40d9f5bd27fd9ab6213d66713ec89bcc2063092b16625a18 +SHA512 (serde_repr-0.1.8.crate) = 6554814bc6cac332c8d5cc94241c224d8ca532719703b1fad19963db5f4793db7e2a5d195df6a1a534d1edafbb4223a63bae55dc928cafb3fbe69dce76d8547e