From e2f286fadb0546e97f30e12a4530a732252106ab Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Fri, 30 Apr 2021 13:19:26 +0200 Subject: [PATCH] update to version 0.5.2 --- .gitignore | 1 + datetime-fix-metadata.diff | 8 ++++---- rust-datetime.spec | 27 +++++++++++---------------- sources | 2 +- 4 files changed, 17 insertions(+), 21 deletions(-) diff --git a/.gitignore b/.gitignore index a6b11bc..ea0c4d5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /datetime-0.4.7.crate /datetime-0.5.0.crate /datetime-0.5.1.crate +/datetime-0.5.2.crate diff --git a/datetime-fix-metadata.diff b/datetime-fix-metadata.diff index b9cc8ac..ee81203 100644 --- a/datetime-fix-metadata.diff +++ b/datetime-fix-metadata.diff @@ -1,5 +1,5 @@ ---- datetime-0.5.1/Cargo.toml 2020-05-25T19:08:25+00:00 -+++ datetime-0.5.1/Cargo.toml 2020-05-26T21:36:59.179614+00:00 +--- datetime-0.5.2/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ datetime-0.5.2/Cargo.toml 2021-04-30T11:13:07.599397+00:00 @@ -24,7 +24,7 @@ [lib] name = "datetime" @@ -9,9 +9,9 @@ optional = true [dependencies.libc] -@@ -48,8 +48,3 @@ +@@ -44,8 +44,3 @@ default = ["format", "parse"] - format = ["num-traits", "pad", "locale"] + format = ["pad", "locale"] parse = ["iso8601"] -[target."cfg(target_os = \"redox\")".dependencies.redox_syscall] -version = "0.1.29" diff --git a/rust-datetime.spec b/rust-datetime.spec index 80e6b6c..c0d45db 100644 --- a/rust-datetime.spec +++ b/rust-datetime.spec @@ -1,16 +1,15 @@ -# Generated by rust2rpm 13 +# Generated by rust2rpm 17 %bcond_without check %global debug_package %{nil} %global crate datetime Name: rust-%{crate} -Version: 0.5.1 -Release: 4%{?dist} +Version: 0.5.2 +Release: 1%{?dist} Summary: Library for date and time formatting and arithmetic # Upstream license specification: MIT -# https://github.com/rust-datetime/datetime/pull/29 License: MIT URL: https://crates.io/crates/datetime Source: %{crates_source} @@ -41,6 +40,8 @@ This package contains library source intended for building other packages which use "%{crate}" crate. %files devel +%license LICENCE +%doc README.md %{cargo_registry}/%{crate}-%{version_no_tilde}/ %package -n %{name}+default-devel @@ -91,18 +92,6 @@ which use "locale" feature of "%{crate}" crate. %files -n %{name}+locale-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml -%package -n %{name}+num-traits-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+num-traits-devel %{_description} - -This package contains library source intended for building other packages -which use "num-traits" feature of "%{crate}" crate. - -%files -n %{name}+num-traits-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml - %package -n %{name}+pad-devel Summary: %{summary} BuildArch: noarch @@ -129,6 +118,8 @@ which use "parse" feature of "%{crate}" crate. %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 +# exclude executable file that causes an unnecessary ruby dependency +rm tests/generate_tests.rb %cargo_prep %generate_buildrequires @@ -146,6 +137,10 @@ which use "parse" feature of "%{crate}" crate. %endif %changelog +* Fri Apr 30 2021 Fabio Valentini - 0.5.2-1 +- Update to version 0.5.2. +- Fixes RHBZ#1945691 + * Wed Jan 27 2021 Fedora Release Engineering - 0.5.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild diff --git a/sources b/sources index 316236b..1de2da8 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (datetime-0.5.1.crate) = 4927cd48aa1a53a3c65cc22dca134c05cc1e024068fac715bb0ba2f0a13b151c564ff356a46c95ba5d8aec6b468907c2bdd862e9d4a25d021ff51f3231a0f4d5 +SHA512 (datetime-0.5.2.crate) = 7578d839bf8d673d15f1caf84266c45c42bc1efaca9067a4ca22c25bc4ad14b7fd8eb73425f5178e188485872a20f1fe153665331d409302bb1cb4aab6cff623