From 0b363bacf3f3e9e03dd4ac40c010b43ba030789c Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Wed, 1 Jun 2022 00:55:37 +0200 Subject: [PATCH 2/3] Update to version 0.2.4; Fixes RHBZ#2066975 --- .gitignore | 1 + rust-time-macros.spec | 30 ++++++++++++++---------------- sources | 2 +- 3 files changed, 16 insertions(+), 17 deletions(-) diff --git a/.gitignore b/.gitignore index f033f5d..3e546f9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /time-macros-0.1.0.crate /time-macros-0.1.1.crate /time-macros-0.2.3.crate +/time-macros-0.2.4.crate diff --git a/rust-time-macros.spec b/rust-time-macros.spec index 4af9a54..f8e4d79 100644 --- a/rust-time-macros.spec +++ b/rust-time-macros.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 18 +# Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} %global crate time-macros Name: rust-%{crate} -Version: 0.2.3 +Version: 0.2.4 Release: %autorelease Summary: Procedural macros for the time crate @@ -15,11 +15,8 @@ URL: https://crates.io/crates/time-macros Source: %{crates_source} ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Procedural macros for the time crate.} @@ -32,12 +29,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-Apache LICENSE-MIT -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-Apache +%license %{crate_instdir}/LICENSE-MIT +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -45,11 +43,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}+large-dates-devel Summary: %{summary} @@ -57,11 +55,11 @@ BuildArch: noarch %description -n %{name}+large-dates-devel %{_description} -This package contains library source intended for building other packages -which use "large-dates" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "large-dates" feature of the "%{crate}" crate. %files -n %{name}+large-dates-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 f8dd2f0..13e0286 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (time-macros-0.2.3.crate) = 07f19f3660de094fd49404c730ba08023d0801098178760a0f24663d4e4128a93838933b8d110d77aa5fd4a3585ce2ec1b0dabcf1e1d569dc9f4d0a3c6e101d8 +SHA512 (time-macros-0.2.4.crate) = f3887ce839db40d13c143a9f11bea804fe4760ab2655df68cbba9029cfff7d0476135608fbfdba6cdec1f9b0753b2de0e3ce0161b40c5d2b9596980d9deaae59