From c1a838ad6f997d6e77830de341c59adc6a838d7d Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Fri, 22 Jul 2022 14:35:58 +0200 Subject: [PATCH] Update to version 0.11.0; Fixes RHBZ#2036528 --- .gitignore | 1 + rust-scroll_derive.spec | 30 ++++++++++++++---------------- sources | 2 +- 3 files changed, 16 insertions(+), 17 deletions(-) diff --git a/.gitignore b/.gitignore index 129dd4e..d258e4c 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ /scroll_derive-0.10.2.crate /scroll_derive-0.10.4.crate /scroll_derive-0.10.5.crate +/scroll_derive-0.11.0.crate diff --git a/rust-scroll_derive.spec b/rust-scroll_derive.spec index 9a5c8a3..c5c5f26 100644 --- a/rust-scroll_derive.spec +++ b/rust-scroll_derive.spec @@ -1,13 +1,14 @@ -# Generated by rust2rpm 16 -%bcond_without check +# Generated by rust2rpm 21 +# * resolve dependency loop with scroll +%bcond_with check %global debug_package %{nil} %global crate scroll_derive Name: rust-%{crate} -Version: 0.10.5 +Version: 0.11.0 Release: %autorelease -Summary: Derive implementation for Pread and Pwrite traits +Summary: Derive implementation for scroll::Pread and scroll::Pwrite traits # Upstream license specification: MIT License: MIT @@ -15,11 +16,8 @@ URL: https://crates.io/crates/scroll_derive Source: %{crates_source} ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Macros 1.1 derive implementation for Pread and Pwrite traits from the scroll @@ -33,13 +31,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 -%doc README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE +%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 f2eaf40..44fe6b0 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (scroll_derive-0.10.5.crate) = 029e024921d558c14113f16b6c406c766e9065d37b6e0a43dacf4da6845eadb780580a7e0e9d5c78cea02859e2acd842e23855cee193b1a533183550f2d595cc +SHA512 (scroll_derive-0.11.0.crate) = 71cea55a78cceaea15147eb71f463c4a3cc6137a499a7712b61e1c3a340e72f5dd438e49433ba9e73e5a3e9d23515a0e81b2abd2ce1f426aabf1930f7d251ff4