diff --git a/.gitignore b/.gitignore index d14d7b0..76f62b4 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,4 @@ /chrono-0.4.26.crate /chrono-0.4.27.crate /chrono-0.4.31.crate +/chrono-0.4.33.crate diff --git a/chrono-fix-metadata-auto.diff b/chrono-fix-metadata-auto.diff index ebfa0c5..0e9e6d5 100644 --- a/chrono-fix-metadata-auto.diff +++ b/chrono-fix-metadata-auto.diff @@ -1,8 +1,16 @@ ---- chrono-0.4.31/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ chrono-0.4.31/Cargo.toml 2023-09-19T18:29:35.649694+00:00 -@@ -100,34 +100,11 @@ - "alloc", +--- chrono-0.4.33/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ chrono-0.4.33/Cargo.toml 2024-01-30T12:01:09.202420+00:00 +@@ -89,7 +89,6 @@ + clock = [ + "winapi", + "iana-time-zone", +- "android-tzdata", + "now", ] + default = [ +@@ -121,34 +120,11 @@ + std = ["alloc"] + unstable-locales = ["pure-rust-locales"] wasmbind = [ - "wasm-bindgen", - "js-sys", @@ -31,8 +39,8 @@ optional = true -[target."cfg(windows)".dependencies.windows-targets] --version = "0.48" +-version = "0.52" -optional = true - -[target."cfg(windows)".dev-dependencies.windows-bindgen] --version = "0.51" +-version = "0.52" diff --git a/chrono-fix-metadata.diff b/chrono-fix-metadata.diff index 5a2b1cd..6557885 100644 --- a/chrono-fix-metadata.diff +++ b/chrono-fix-metadata.diff @@ -1,29 +1,28 @@ ---- chrono-0.4.31/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ chrono-0.4.31/Cargo.toml 2023-09-19T18:30:04.789787+00:00 -@@ -78,19 +78,15 @@ +--- chrono-0.4.33/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ chrono-0.4.33/Cargo.toml 2024-01-30T12:01:34.150523+00:00 +@@ -84,10 +84,8 @@ version = "1" [features] -__internal_bench = [] alloc = [] clock = [ - "std", - "winapi", "iana-time-zone", -- "android-tzdata", + "now", ] - default = [ +@@ -95,7 +93,6 @@ "clock", "std", "oldtime", - "wasmbind", ] libc = [] - oldtime = [] -@@ -99,9 +95,6 @@ - "pure-rust-locales", - "alloc", - ] + now = ["std"] +@@ -119,9 +116,6 @@ + rkyv-validation = ["rkyv?/validation"] + std = ["alloc"] + unstable-locales = ["pure-rust-locales"] -wasmbind = [ -] -winapi = [] diff --git a/rust-chrono.spec b/rust-chrono.spec index f771d6c..1cf110f 100644 --- a/rust-chrono.spec +++ b/rust-chrono.spec @@ -1,25 +1,24 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate chrono Name: rust-chrono -Version: 0.4.31 +Version: 0.4.33 Release: %autorelease Summary: Date and time library for Rust License: MIT OR Apache-2.0 URL: https://crates.io/crates/chrono Source: %{crates_source} -# Automatically generated patch to strip foreign dependencies +# Automatically generated patch to strip dependencies and normalize metadata Patch: chrono-fix-metadata-auto.diff # Manually created patch for downstream crate metadata changes -# * remove WASM- and doc-specific features -# * drop unused, benchmark-only criterion dev-dependency to speed up builds +# * remove WASM- and Windows-specific features Patch: chrono-fix-metadata.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Date and time library for Rust.} @@ -113,6 +112,18 @@ use the "libc" feature of the "%{crate}" crate. %files -n %{name}+libc-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+now-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+now-devel %{_description} + +This package contains library source intended for building other packages which +use the "now" feature of the "%{crate}" crate. + +%files -n %{name}+now-devel +%ghost %{crate_instdir}/Cargo.toml + %package -n %{name}+oldtime-devel Summary: %{summary} BuildArch: noarch @@ -149,6 +160,54 @@ use the "rkyv" feature of the "%{crate}" crate. %files -n %{name}+rkyv-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+rkyv-16-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+rkyv-16-devel %{_description} + +This package contains library source intended for building other packages which +use the "rkyv-16" feature of the "%{crate}" crate. + +%files -n %{name}+rkyv-16-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+rkyv-32-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+rkyv-32-devel %{_description} + +This package contains library source intended for building other packages which +use the "rkyv-32" feature of the "%{crate}" crate. + +%files -n %{name}+rkyv-32-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+rkyv-64-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+rkyv-64-devel %{_description} + +This package contains library source intended for building other packages which +use the "rkyv-64" feature of the "%{crate}" crate. + +%files -n %{name}+rkyv-64-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+rkyv-validation-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+rkyv-validation-devel %{_description} + +This package contains library source intended for building other packages which +use the "rkyv-validation" feature of the "%{crate}" crate. + +%files -n %{name}+rkyv-validation-devel +%ghost %{crate_instdir}/Cargo.toml + %package -n %{name}+rustc-serialize-devel Summary: %{summary} BuildArch: noarch @@ -198,21 +257,21 @@ use the "unstable-locales" feature of the "%{crate}" crate. %ghost %{crate_instdir}/Cargo.toml %prep -%autosetup -n %{crate}-%{version_no_tilde} -p1 +%autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires -%cargo_generate_buildrequires -a +%cargo_generate_buildrequires %build -%cargo_build -a +%cargo_build %install -%cargo_install -a +%cargo_install %if %{with check} %check -%cargo_test -a +%cargo_test %endif %changelog diff --git a/rust2rpm.conf b/rust2rpm.conf deleted file mode 100644 index f626714..0000000 --- a/rust2rpm.conf +++ /dev/null @@ -1,2 +0,0 @@ -[DEFAULT] -all-features = true diff --git a/sources b/sources index bc4bd74..e30a64d 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (chrono-0.4.31.crate) = 23276daa2c1bc3b7b2327dc84200fb40cc995a8b599d1a537e92e08138ab8a0d1548a510a8155dcdda18820120d7204e89a4686c866fc3a8d2460cdb30ac6089 +SHA512 (chrono-0.4.33.crate) = 172996d2ccc8733957d45fcc24fefb3531c7b33a798ab9f494be23f08d6d2bc350401574c626fd8eec0191ba28c0f7b73af7bc4235ec72a4b1d437fb7e89c875