From b03e59a55c0d17f544fb24ba1887b2723b5e5c7c Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sat, 5 Mar 2022 22:06:03 +0100 Subject: [PATCH] Update to version 1.0.4; Fixes RHBZ#2055966 --- .gitignore | 1 + rust-indoc.spec | 26 ++++++++++++-------------- sources | 2 +- 3 files changed, 14 insertions(+), 15 deletions(-) diff --git a/.gitignore b/.gitignore index f5d59b3..b2e6242 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /indoc-1.0.3.crate +/indoc-1.0.4.crate diff --git a/rust-indoc.spec b/rust-indoc.spec index e8ef16e..7755ebd 100644 --- a/rust-indoc.spec +++ b/rust-indoc.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 16 +# Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} %global crate indoc Name: rust-%{crate} -Version: 1.0.3 +Version: 1.0.4 Release: %autorelease Summary: Indented document literals @@ -15,11 +15,8 @@ URL: https://crates.io/crates/indoc Source: %{crates_source} ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Indented document literals.} @@ -32,13 +29,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-MIT LICENSE-APACHE -%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} @@ -46,11 +44,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 8a569e5..fe947dd 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (indoc-1.0.3.crate) = 7567c260678386226a3fa6839a7a4d603091096a8df19039584c296b4953cc333ec1dca0a13d1192ea6433743d5ff44ab78b4e8a89414f6ae93d5401d3d2e3f1 +SHA512 (indoc-1.0.4.crate) = b2d90f074f9a34e330d7d6e6313bd569cd857c791b8ff79191a70f19064fa53ea2ede30bbd16587fb438e69ccce4c3e2fbb127610ba8e470daf076d7373f0213