diff --git a/.gitignore b/.gitignore index 8602e70..95d01f3 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ /chrono-0.4.11.crate /chrono-0.4.13.crate /chrono-0.4.15.crate +/chrono-0.4.19.crate diff --git a/chrono-fix-metadata.diff b/chrono-fix-metadata.diff index 785897e..76a5452 100644 --- a/chrono-fix-metadata.diff +++ b/chrono-fix-metadata.diff @@ -1,19 +1,29 @@ ---- chrono-0.4.15/Cargo.toml 2020-08-14T21:03:30+00:00 -+++ chrono-0.4.15/Cargo.toml 2020-09-16T19:32:03.518425+00:00 -@@ -93,16 +93,7 @@ - default = ["clock", "std"] +--- chrono-0.4.19/Cargo.toml 2020-09-30T15:06:24+00:00 ++++ chrono-0.4.19/Cargo.toml 2020-10-01T09:45:11.874878+00:00 +@@ -93,25 +93,12 @@ + __doctest = [] + __internal_bench = [] + alloc = [] +-clock = ["libc", "std", "winapi"] ++clock = ["libc", "std"] + default = ["clock", "std", "oldtime"] + oldtime = ["time"] std = [] unstable-locales = ["pure-rust-locales", "alloc"] -wasmbind = ["wasm-bindgen", "js-sys"] -[target."cfg(all(target_arch = \"wasm32\", not(any(target_os = \"emscripten\", target_os = \"wasi\"))))".dependencies.js-sys] -version = "0.3" -optional = true - + -[target."cfg(all(target_arch = \"wasm32\", not(any(target_os = \"emscripten\", target_os = \"wasi\"))))".dependencies.wasm-bindgen] -version = "0.2" -optional = true -[target."cfg(all(target_arch = \"wasm32\", not(any(target_os = \"emscripten\", target_os = \"wasi\"))))".dev-dependencies.wasm-bindgen-test] -version = "0.3" +-[target."cfg(windows)".dependencies.winapi] +-version = "0.3.0" +-features = ["std", "minwinbase", "minwindef", "timezoneapi"] +-optional = true [badges.appveyor] repository = "chronotope/chrono" diff --git a/rust-chrono.spec b/rust-chrono.spec index 009864c..40329bb 100644 --- a/rust-chrono.spec +++ b/rust-chrono.spec @@ -5,7 +5,7 @@ %global crate chrono Name: rust-%{crate} -Version: 0.4.15 +Version: 0.4.19 Release: 1%{?dist} Summary: Date and time library for Rust @@ -15,6 +15,7 @@ URL: https://crates.io/crates/chrono Source: %{crates_source} # Initial patched metadata # * No wasm +# * No windows Patch0: chrono-fix-metadata.diff ExclusiveArch: %{rust_arches} @@ -79,6 +80,30 @@ which use "clock" feature of "%{crate}" crate. %files -n %{name}+clock-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%package -n %{name}+libc-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+libc-devel %{_description} + +This package contains library source intended for building other packages +which use "libc" feature of "%{crate}" crate. + +%files -n %{name}+libc-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+oldtime-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+oldtime-devel %{_description} + +This package contains library source intended for building other packages +which use "oldtime" feature of "%{crate}" crate. + +%files -n %{name}+oldtime-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + %package -n %{name}+pure-rust-locales-devel Summary: %{summary} BuildArch: noarch @@ -139,6 +164,18 @@ which use "time" feature of "%{crate}" crate. %files -n %{name}+time-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%package -n %{name}+unstable-locales-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+unstable-locales-devel %{_description} + +This package contains library source intended for building other packages +which use "unstable-locales" feature of "%{crate}" crate. + +%files -n %{name}+unstable-locales-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep @@ -158,8 +195,8 @@ which use "time" feature of "%{crate}" crate. %endif %changelog -* Wed Sep 16 2020 Fabio Valentini - 0.4.15-1 -- Update to version 0.4.15. +* Thu Oct 01 2020 Fabio Valentini - 0.4.19-1 +- Update to version 0.4.19. * Wed Jul 29 2020 Fedora Release Engineering - 0.4.13-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild diff --git a/sources b/sources index 67945e2..b998391 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (chrono-0.4.15.crate) = 64ec4c7fad26ce7dd107e3e1b176507cd8f4b10c3ff47940c45ccec0b882858dc35d5cebed36b64e2bd1b611ad8b48dfaa7cfe4a7b687887b4f0a8be1de24dbc +SHA512 (chrono-0.4.19.crate) = a119349bfc2243a249f1d18b1ae548a04b30fecb75913a56f26d1ff8c0eb53097a2674d9141e2094018191cbbc1620843fbddaf52999824e077c1157f0907980