From 246439a71834fb19c361a4a8160b5cf5d4dd8be9 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sun, 12 Feb 2023 16:21:31 +0100 Subject: [PATCH] Update to version 0.2.7; Fixes RHBZ#2137246 --- .gitignore | 2 ++ rust-time-macros.spec | 47 ++++++++++++++++++++++++++++++++++++------- sources | 2 +- 3 files changed, 43 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index 3e546f9..4626f3c 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,5 @@ /time-macros-0.1.1.crate /time-macros-0.2.3.crate /time-macros-0.2.4.crate +/time-macros-0.2.6.crate +/time-macros-0.2.7.crate diff --git a/rust-time-macros.spec b/rust-time-macros.spec index f8e4d79..e2e6f99 100644 --- a/rust-time-macros.spec +++ b/rust-time-macros.spec @@ -1,21 +1,18 @@ -# Generated by rust2rpm 21 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate time-macros -Name: rust-%{crate} -Version: 0.2.4 +Name: rust-time-macros +Version: 0.2.7 Release: %autorelease Summary: Procedural macros for the time crate -# Upstream license specification: MIT OR Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/time-macros Source: %{crates_source} -ExclusiveArch: %{rust_arches} - BuildRequires: rust-packaging >= 21 %global _description %{expand: @@ -49,6 +46,18 @@ use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+formatting-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+formatting-devel %{_description} + +This package contains library source intended for building other packages which +use the "formatting" feature of the "%{crate}" crate. + +%files -n %{name}+formatting-devel +%ghost %{crate_instdir}/Cargo.toml + %package -n %{name}+large-dates-devel Summary: %{summary} BuildArch: noarch @@ -61,6 +70,30 @@ use the "large-dates" feature of the "%{crate}" crate. %files -n %{name}+large-dates-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+parsing-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+parsing-devel %{_description} + +This package contains library source intended for building other packages which +use the "parsing" feature of the "%{crate}" crate. + +%files -n %{name}+parsing-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+serde-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+serde-devel %{_description} + +This package contains library source intended for building other packages which +use the "serde" feature of the "%{crate}" crate. + +%files -n %{name}+serde-devel +%ghost %{crate_instdir}/Cargo.toml + %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep diff --git a/sources b/sources index 13e0286..b0db124 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (time-macros-0.2.4.crate) = f3887ce839db40d13c143a9f11bea804fe4760ab2655df68cbba9029cfff7d0476135608fbfdba6cdec1f9b0753b2de0e3ce0161b40c5d2b9596980d9deaae59 +SHA512 (time-macros-0.2.7.crate) = 98b6877fd83cfa72e6c91c607ae12028a8f736b5c68e7a4a5d6e0dc27411118041f33a8b7408a831611634cef63b54148d1d7a9a55c73ec0ff285cdeaf10b8ee