From 53c27c56b00821f9a02d343fdc083c9efb72e5f6 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Fri, 1 Sep 2023 00:51:45 +0200 Subject: [PATCH] Update to version 0.8.3; Fixes RHBZ#2005995 --- .gitignore | 1 + README.md | 3 -- rust-chrono-tz.spec | 106 ++++++++++++++++++++++++++++++-------------- sources | 2 +- 4 files changed, 75 insertions(+), 37 deletions(-) delete mode 100644 README.md diff --git a/.gitignore b/.gitignore index 3a63c89..20296e0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /chrono-tz-0.5.1.crate /chrono-tz-0.5.2.crate /chrono-tz-0.5.3.crate +/chrono-tz-0.8.3.crate diff --git a/README.md b/README.md deleted file mode 100644 index 74f4bb7..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-chrono-tz - -The rust-chrono-tz package \ No newline at end of file diff --git a/rust-chrono-tz.spec b/rust-chrono-tz.spec index af1e8ba..37e3386 100644 --- a/rust-chrono-tz.spec +++ b/rust-chrono-tz.spec @@ -1,46 +1,42 @@ -# Generated by rust2rpm 13 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate chrono-tz -Name: rust-%{crate} -Version: 0.5.3 +Name: rust-chrono-tz +Version: 0.8.3 Release: %autorelease -Summary: TimeZone implementations for rust-chrono from the IANA database +Summary: TimeZone implementations for chrono from the IANA database -# Upstream license specification: MIT/Apache-2.0 -# tz/* is under Public Domain -License: (MIT or ASL 2.0) and Public Domain +# * chrono-tz code is MIT OR Apache-2.0 +# * bundled Olson timezone database is Public Domain +License: (MIT OR Apache-2.0) AND LicenseRef-Fedora-Public-Domain URL: https://crates.io/crates/chrono-tz Source: %{crates_source} -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: -TimeZone implementations for rust-chrono from the IANA database.} +TimeZone implementations for chrono from the IANA database.} %description %{_description} %package devel Summary: %{summary} BuildArch: noarch -Provides: bundled(tzdata) = 2020a +Provides: bundled(tzdata) = 2023c %description devel %{_description} -This package contains library source intended for building other packages -which use "%{crate}" crate. +This package contains library source intended for building other packages which +use the "%{crate}" crate. %files devel -%license LICENSE -%doc README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE +%license %{crate_instdir}/tz/LICENSE +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -48,11 +44,47 @@ BuildArch: noarch %description -n %{name}+default-devel %{_description} -This package contains library source intended for building other packages -which use "default" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+arbitrary-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+arbitrary-devel %{_description} + +This package contains library source intended for building other packages which +use the "arbitrary" feature of the "%{crate}" crate. + +%files -n %{name}+arbitrary-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+case-insensitive-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+case-insensitive-devel %{_description} + +This package contains library source intended for building other packages which +use the "case-insensitive" feature of the "%{crate}" crate. + +%files -n %{name}+case-insensitive-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+filter-by-regex-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+filter-by-regex-devel %{_description} + +This package contains library source intended for building other packages which +use the "filter-by-regex" feature of the "%{crate}" crate. + +%files -n %{name}+filter-by-regex-devel +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde-devel Summary: %{summary} @@ -60,11 +92,11 @@ BuildArch: noarch %description -n %{name}+serde-devel %{_description} -This package contains library source intended for building other packages -which use "serde" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "serde" feature of the "%{crate}" crate. %files -n %{name}+serde-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} @@ -72,18 +104,26 @@ BuildArch: noarch %description -n %{name}+std-devel %{_description} -This package contains library source intended for building other packages -which use "std" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "std" feature of the "%{crate}" crate. %files -n %{name}+std-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+uncased-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+uncased-devel %{_description} + +This package contains library source intended for building other packages which +use the "uncased" feature of the "%{crate}" crate. + +%files -n %{name}+uncased-devel +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 -mkdir .tmp -mv $(grep -Po '"\Ktz/[^"]+' build.rs) .tmp -rm -rf tz -mv .tmp tz %cargo_prep %generate_buildrequires diff --git a/sources b/sources index 263296f..4704c40 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (chrono-tz-0.5.3.crate) = c1f25caeeb0bf013a500476ffe67a42438d08d05984c5cc04b6499cb31fde48e05c51b88bbef8b2309c18871b8cdb62815eecd3b4bc1f704af0d6309c2d034f5 +SHA512 (chrono-tz-0.8.3.crate) = 85f1093edebe08515d0b8f11a9a5ab8b9fac57527cc404f5914dd5d1796e0007ca596d7057d158e915b85619bb80939c097ee4beaf6a76b9794cea1459f8d86e