From 2e9355e1abe7ca14b0907361bf91c8c26f89f916 Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Thu, 19 Jan 2023 17:05:15 -0600 Subject: [PATCH] Update to 0.6.1 Signed-off-by: Michel Alexandre Salim --- .gitignore | 1 + rust-cursive_buffered_backend.spec | 40 ++++++++++++++++-------------- sources | 2 +- 3 files changed, 23 insertions(+), 20 deletions(-) diff --git a/.gitignore b/.gitignore index c693b1e..15be4a6 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /cursive_buffered_backend-0.5.0.crate +/cursive_buffered_backend-0.6.1.crate diff --git a/rust-cursive_buffered_backend.spec b/rust-cursive_buffered_backend.spec index 7d961fc..2d65e36 100644 --- a/rust-cursive_buffered_backend.spec +++ b/rust-cursive_buffered_backend.spec @@ -1,25 +1,19 @@ -# Generated by rust2rpm 17 +# Generated by rust2rpm 23 %bcond_without check %global debug_package %{nil} %global crate cursive_buffered_backend -Name: rust-%{crate} -Version: 0.5.0 +Name: rust-cursive_buffered_backend +Version: 0.6.1 Release: %autorelease Summary: Buffering backend for any Cursive backend -# Upstream license specification: MIT License: MIT URL: https://crates.io/crates/cursive_buffered_backend Source: %{crates_source} -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 BuildRequires: sed %global _description %{expand: @@ -33,13 +27,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 -%doc README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE +%doc %{crate_instdir}/CHANGELOG.md +%doc %{crate_instdir}/README.md +%doc %{crate_instdir}/ReleaseInstructions.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -47,17 +43,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 %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep # Fix end of line encoding -sed -i 's/\r$//' README.md +for f in CHANGELOG.md LICENSE README.md ReleaseInstructions.md; +do + touch -r $f ${f}.tstamp + sed -i 's/\r$//' $f + touch -r ${f}.tstamp $f + rm ${f}.tstamp +done %generate_buildrequires %cargo_generate_buildrequires diff --git a/sources b/sources index 8f3963d..d845c05 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (cursive_buffered_backend-0.5.0.crate) = 5128c6cc87aacbfe72cc3bf68b02e7b970367f10b3f2609523d1fea5012f9bc06e639ef9d7c9381b3f26ee254295042b0a5cad858461524502ece962490827d6 +SHA512 (cursive_buffered_backend-0.6.1.crate) = 71d3e1512e8999b5d384a838f9f6b8b7779163b9e14232b2fa86737b475ad387e86672ed7445776cd26e0f8ca8d58666be259b59db0cfb292243f1d16226a7dd