From 9de744d5217c8a3c554df4b31465aadcc359cb19 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Fri, 22 Jul 2022 14:35:29 +0200 Subject: [PATCH] Update to version 0.11.0; Fixes RHBZ#2036529 --- .gitignore | 1 + rust-scroll.spec | 53 ++++++++++++++++++++++-------------------------- sources | 2 +- 3 files changed, 26 insertions(+), 30 deletions(-) diff --git a/.gitignore b/.gitignore index 4b46548..ff50a74 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ /scroll-0.9.2.crate /scroll-0.10.1.crate /scroll-0.10.2.crate +/scroll-0.11.0.crate diff --git a/rust-scroll.spec b/rust-scroll.spec index eeaba2f..645ecd8 100644 --- a/rust-scroll.spec +++ b/rust-scroll.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 15 +# Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} %global crate scroll Name: rust-%{crate} -Version: 0.10.2 +Version: 0.11.0 Release: %autorelease Summary: Powerful, extensible, generic, endian-aware Read/Write traits for byte buffers @@ -15,11 +15,8 @@ URL: https://crates.io/crates/scroll Source: %{crates_source} ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Suite of powerful, extensible, generic, endian-aware Read/Write traits for byte @@ -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 -%doc README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE +%doc %{crate_instdir}/CHANGELOG.md +%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 %package -n %{name}+derive-devel Summary: %{summary} @@ -59,11 +57,11 @@ BuildArch: noarch %description -n %{name}+derive-devel %{_description} -This package contains library source intended for building other packages -which use "derive" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "derive" feature of the "%{crate}" crate. %files -n %{name}+derive-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+scroll_derive-devel Summary: %{summary} @@ -71,11 +69,11 @@ BuildArch: noarch %description -n %{name}+scroll_derive-devel %{_description} -This package contains library source intended for building other packages -which use "scroll_derive" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "scroll_derive" feature of the "%{crate}" crate. %files -n %{name}+scroll_derive-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} @@ -83,11 +81,11 @@ BuildArch: noarch %description -n %{name}+std-devel %{_description} -This package contains library source intended for building other packages -which use "std" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "std" feature of the "%{crate}" crate. %files -n %{name}+std-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 @@ -104,14 +102,11 @@ which use "std" feature of "%{crate}" crate. %if %{with check} %check -%ifnarch s390x -%cargo_test -a -%else -# one doc test is broken on s390x / big-endian -# https://github.com/m4b/scroll/issues/77 +# * readme doctests fail to compile +# * one doc test is broken on s390x / big-endian +# https://github.com/m4b/scroll/issues/77 %cargo_test -a -- --lib %endif -%endif %changelog %autochangelog diff --git a/sources b/sources index 02aed5f..68abdd4 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (scroll-0.10.2.crate) = 70d4f17d4af5be439bfd0a2114eac6eb8b13860e30d5b092aea0cf62bcf817d29ef7d68c5d7488abc8f90f7ca99d4cf2cf44799e6541058f2f4d0c0d99ca5764 +SHA512 (scroll-0.11.0.crate) = 84a9b1eb8a10c2bb14b718984ebdbac4a02620a65d6ced24f5346a762d92cc22a69fd204de1ed97044076d098a5ff9b7e20f7f00deca2b1302eb0910934265af