From 442f554562b993939fe03b77ee6cfea8e1735d43 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Thu, 14 Apr 2022 19:36:19 +0200 Subject: [PATCH] Update to version 0.5.3; Fixes RHBZ#2005109 --- .gitignore | 1 + rust-memmap2.spec | 39 +++++++++++++++++++++++++-------------- sources | 2 +- 3 files changed, 27 insertions(+), 15 deletions(-) diff --git a/.gitignore b/.gitignore index c56d626..acc697f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /memmap2-0.1.0.crate /memmap2-0.3.0.crate /memmap2-0.3.1.crate +/memmap2-0.5.3.crate diff --git a/rust-memmap2.spec b/rust-memmap2.spec index 414f85a..1815589 100644 --- a/rust-memmap2.spec +++ b/rust-memmap2.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 18 +# Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} %global crate memmap2 Name: rust-%{crate} -Version: 0.3.1 +Version: 0.5.3 Release: %autorelease Summary: Cross-platform Rust API for memory-mapped file IO @@ -15,11 +15,8 @@ URL: https://crates.io/crates/memmap2 Source: %{crates_source} ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Cross-platform Rust API for memory-mapped file IO.} @@ -32,13 +29,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} @@ -46,11 +45,23 @@ 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}+stable_deref_trait-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+stable_deref_trait-devel %{_description} + +This package contains library source intended for building other packages which +use the "stable_deref_trait" feature of the "%{crate}" crate. + +%files -n %{name}+stable_deref_trait-devel +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/sources b/sources index f5696dc..01e57cf 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (memmap2-0.3.1.crate) = 1cf08cd046581d882fa78cc1e6efbb2e5814dada9ee866811732dcde776fd8c0cde2f03167010f32bb4984533e787536ef1954a1152a70d7f0278d5adfa96b28 +SHA512 (memmap2-0.5.3.crate) = b570f0ea37ba18a8eb22c9207dc952456864fdabf0296bac63c4741e0aec424ac7932fc0dbbd0292ad94406b1e6911826406fa00d11b7590c54816fb7898df5d