Compare commits

...

7 Commits

5
.gitignore vendored

@ -21,3 +21,8 @@
/chrono-0.4.26.crate
/chrono-0.4.27.crate
/chrono-0.4.31.crate
/chrono-0.4.33.crate
/chrono-0.4.34.crate
/chrono-0.4.35.crate
/chrono-0.4.38.crate
/chrono-0.4.39.crate

@ -1,26 +1,34 @@
--- 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.39/Cargo.toml 1970-01-01T00:00:01+00:00
+++ chrono-0.4.39/Cargo.toml 2024-12-09T19:37:10.552603+00:00
@@ -109,7 +109,6 @@
clock = [
"winapi",
"iana-time-zone",
- "android-tzdata",
"now",
]
default = [
@@ -141,34 +140,11 @@
std = ["alloc"]
unstable-locales = ["pure-rust-locales"]
wasmbind = [
- "wasm-bindgen",
- "js-sys",
]
-winapi = ["windows-targets"]
-
-[target."cfg(all(target_arch = \"wasm32\", not(any(target_os = \"emscripten\", target_os = \"wasi\"))))".dependencies.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]
-[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]
-[target.'cfg(all(target_arch = "wasm32", not(any(target_os = "emscripten", target_os = "wasi"))))'.dev-dependencies.wasm-bindgen-test]
-version = "0.3"
-
-[target."cfg(target_os = \"android\")".dependencies.android-tzdata]
-[target.'cfg(target_os = "android")'.dependencies.android-tzdata]
-version = "0.1.1"
-optional = true
+winapi = []
@ -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.58"

@ -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.39/Cargo.toml 1970-01-01T00:00:01+00:00
+++ chrono-0.4.39/Cargo.toml 2024-12-09T19:37:10.554603+00:00
@@ -104,10 +104,8 @@
version = "1"
[features]
-__internal_bench = []
alloc = []
clock = [
"std",
- "winapi",
"iana-time-zone",
- "android-tzdata",
"now",
]
default = [
@@ -115,7 +113,6 @@
"clock",
"std",
"oldtime",
- "wasmbind",
]
libc = []
oldtime = []
@@ -99,9 +95,6 @@
"pure-rust-locales",
"alloc",
]
now = ["std"]
@@ -139,9 +136,6 @@
rkyv-validation = ["rkyv?/validation"]
std = ["alloc"]
unstable-locales = ["pure-rust-locales"]
-wasmbind = [
-]
-winapi = []

@ -1,25 +1,24 @@
# Generated by rust2rpm 24
%bcond_without check
# Generated by rust2rpm 27
%bcond check 1
%global debug_package %{nil}
%global crate chrono
Name: rust-chrono
Version: 0.4.31
Version: 0.4.39
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.}
@ -37,7 +36,6 @@ use the "%{crate}" crate.
%files devel
%license %{crate_instdir}/LICENSE.txt
%doc %{crate_instdir}/CHANGELOG.md
%doc %{crate_instdir}/README.md
%{crate_instdir}/
@ -113,6 +111,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,16 +159,52 @@ use the "rkyv" feature of the "%{crate}" crate.
%files -n %{name}+rkyv-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+rustc-serialize-devel
%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}+rustc-serialize-devel %{_description}
%description -n %{name}+rkyv-validation-devel %{_description}
This package contains library source intended for building other packages which
use the "rustc-serialize" feature of the "%{crate}" crate.
use the "rkyv-validation" feature of the "%{crate}" crate.
%files -n %{name}+rustc-serialize-devel
%files -n %{name}+rkyv-validation-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+serde-devel
@ -198,21 +244,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

@ -1,2 +0,0 @@
[DEFAULT]
all-features = true

@ -0,0 +1,5 @@
[package]
cargo-toml-patch-comments = [
"remove WASM- and Windows-specific features",
]

@ -1 +1 @@
SHA512 (chrono-0.4.31.crate) = 23276daa2c1bc3b7b2327dc84200fb40cc995a8b599d1a537e92e08138ab8a0d1548a510a8155dcdda18820120d7204e89a4686c866fc3a8d2460cdb30ac6089
SHA512 (chrono-0.4.39.crate) = 5b258f76bea58ab9baa0fe8fb32c41928b8b655c76bb2fbaae9300ef8380cbb881296cee6b9e9886dce62b0759c73e84f6409e374a86cf0c80e3383512f98571

Loading…
Cancel
Save