diff --git a/.gitignore b/.gitignore index e58d907..56436a5 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,5 @@ /time-0.3.13.crate /time-0.3.14.crate /time-0.3.15.crate +/time-0.3.17.crate +/time-0.3.19.crate diff --git a/rust-time.spec b/rust-time.spec index e903c20..e9c16bb 100644 --- a/rust-time.spec +++ b/rust-time.spec @@ -1,12 +1,11 @@ -# Generated by rust2rpm 22 -# * unit tests are excluded from published crates -%bcond_with check +# Generated by rust2rpm 24 +%bcond_without check %global debug_package %{nil} %global crate time Name: rust-time -Version: 0.3.15 +Version: 0.3.19 Release: %autorelease Summary: Date and time library @@ -17,15 +16,14 @@ Source: %{crates_source} Patch: time-fix-metadata-auto.diff # Manually created patch for downstream crate metadata changes # * remove WASM-specific features +# * remove references to tests that are not included in published crates Patch: time-fix-metadata.diff -ExclusiveArch: %{rust_arches} - -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: -Date and time library. Fully interoperable with the standard library. Mostly -compatible with #![no_std].} +Date and time library. Fully interoperable with the standard library. +Mostly compatible with #![no_std].} %description %{_description} @@ -80,18 +78,6 @@ use the "formatting" feature of the "%{crate}" crate. %files -n %{name}+formatting-devel %ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+itoa-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+itoa-devel %{_description} - -This package contains library source intended for building other packages which -use the "itoa" feature of the "%{crate}" crate. - -%files -n %{name}+itoa-devel -%ghost %{crate_instdir}/Cargo.toml - %package -n %{name}+large-dates-devel Summary: %{summary} BuildArch: noarch @@ -152,18 +138,6 @@ use the "quickcheck" feature of the "%{crate}" crate. %files -n %{name}+quickcheck-devel %ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+quickcheck-dep-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+quickcheck-dep-devel %{_description} - -This package contains library source intended for building other packages which -use the "quickcheck-dep" feature of the "%{crate}" crate. - -%files -n %{name}+quickcheck-dep-devel -%ghost %{crate_instdir}/Cargo.toml - %package -n %{name}+rand-devel Summary: %{summary} BuildArch: noarch @@ -224,18 +198,6 @@ use the "std" feature of the "%{crate}" crate. %files -n %{name}+std-devel %ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+time-macros-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+time-macros-devel %{_description} - -This package contains library source intended for building other packages which -use the "time-macros" feature of the "%{crate}" crate. - -%files -n %{name}+time-macros-devel -%ghost %{crate_instdir}/Cargo.toml - %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep diff --git a/sources b/sources index bcd341a..ee5ad5d 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (time-0.3.15.crate) = 8783fe9cd6aa94cf6588ca1a734d0fa11c9e20e0d99b46b218db95bc185aee8a4324b2ece1a535b4378e87151f9837cd41f663c542f561019be99e3ed5f55325 +SHA512 (time-0.3.19.crate) = 1ae3db13bd2734c026421a5373d645b2064556572c57160355b1e325106dbe7eb12ad7218b001c376999de63e3d8445451f3abd5fa3a03a9d7fe17e549038fef diff --git a/time-fix-metadata-auto.diff b/time-fix-metadata-auto.diff index b5433b2..08bee97 100644 --- a/time-fix-metadata-auto.diff +++ b/time-fix-metadata-auto.diff @@ -1,15 +1,15 @@ ---- time-0.3.15/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ time-0.3.15/Cargo.toml 1970-01-01T00:00:01+00:00 -@@ -132,18 +132,7 @@ +--- time-0.3.19/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ time-0.3.19/Cargo.toml 2023-02-19T23:00:22.169586+00:00 +@@ -144,18 +144,7 @@ "parsing", ] std = ["alloc"] --wasm-bindgen = ["js-sys"] +-wasm-bindgen = ["dep:js-sys"] - -[target."cfg(__ui_tests)".dev-dependencies.trybuild] --version = "1.0.63" +-version = "1.0.68" - --[target."cfg(all(target_arch = \"wasm32\", not(any(target_os = \"emscripten\", target_os = \"wasi\"))))".dependencies.js-sys] +-[target."cfg(all(target_family = \"wasm\", not(any(target_os = \"emscripten\", target_os = \"wasi\"))))".dependencies.js-sys] -version = "0.3.58" -optional = true - diff --git a/time-fix-metadata.diff b/time-fix-metadata.diff index 13ac0ea..792d351 100644 --- a/time-fix-metadata.diff +++ b/time-fix-metadata.diff @@ -1,6 +1,22 @@ ---- time-0.3.15/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ time-0.3.15/Cargo.toml 2022-10-05T10:12:12.622820+00:00 -@@ -132,7 +132,6 @@ +--- time-0.3.19/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ time-0.3.19/Cargo.toml 2023-02-19T23:01:02.904730+00:00 +@@ -51,15 +51,6 @@ + + [lib] + bench = false +- +-[[test]] +-name = "tests" +-path = "../tests/main.rs" +- +-[[bench]] +-name = "benchmarks" +-path = "../benchmarks/main.rs" +-harness = false + + [dependencies.itoa] + version = "1.0.1" +@@ -144,7 +135,6 @@ "parsing", ] std = ["alloc"]