From 20815583777ef5d06ba0aed281179268e45fec64 Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Fri, 20 Dec 2024 17:59:04 +0300 Subject: [PATCH] import rust-tzfile-0.1.3-13.el10 --- .gitignore | 1 + .rust-tzfile.metadata | 1 + SOURCES/tzfile-fix-metadata.diff | 14 ++++ SPECS/rust-tzfile.spec | 124 +++++++++++++++++++++++++++++++ 4 files changed, 140 insertions(+) create mode 100644 .gitignore create mode 100644 .rust-tzfile.metadata create mode 100644 SOURCES/tzfile-fix-metadata.diff create mode 100644 SPECS/rust-tzfile.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7d21a2d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/tzfile-0.1.3.crate diff --git a/.rust-tzfile.metadata b/.rust-tzfile.metadata new file mode 100644 index 0000000..4b9e58a --- /dev/null +++ b/.rust-tzfile.metadata @@ -0,0 +1 @@ +8da57fdf6feb0b8a26810d32e6f31f7ec58b40d8 SOURCES/tzfile-0.1.3.crate diff --git a/SOURCES/tzfile-fix-metadata.diff b/SOURCES/tzfile-fix-metadata.diff new file mode 100644 index 0000000..656f7dd --- /dev/null +++ b/SOURCES/tzfile-fix-metadata.diff @@ -0,0 +1,14 @@ +--- tzfile-0.1.3/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ tzfile-0.1.3/Cargo.toml 2024-12-08T20:09:11.758285+00:00 +@@ -32,10 +32,7 @@ + version = "0.4" + + [dev-dependencies.chrono-tz] +-version = "0.5" +- +-[dev-dependencies.criterion] +-version = "0.3" ++version = ">= 0.5, < 0.11" + + [dev-dependencies.lazy_static] + version = "1.1" diff --git a/SPECS/rust-tzfile.spec b/SPECS/rust-tzfile.spec new file mode 100644 index 0000000..7a2e372 --- /dev/null +++ b/SPECS/rust-tzfile.spec @@ -0,0 +1,124 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.3) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 13; + base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); + print(release_number + base_release_number - 1); +}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} +## END: Set by rpmautospec + +# Generated by rust2rpm 27 +%bcond check 1 +%global debug_package %{nil} + +%global crate tzfile + +Name: rust-tzfile +Version: 0.1.3 +Release: %autorelease +Summary: Chrono::TimeZone implementation using system tz database + +License: MIT +URL: https://crates.io/crates/tzfile +Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * drop unused, benchmark-only criterion dev-dependency +# * adjust chrono-tz dev-dependency to allow up to 0.10 +Patch: tzfile-fix-metadata.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Chrono::TimeZone implementation using system tz database.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages which +use the "%{crate}" crate. + +%files devel +%license %{crate_instdir}/LICENSE.txt +%doc %{crate_instdir}/README.md +%{crate_instdir}/ + +%package -n %{name}+default-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+default-devel %{_description} + +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 %{crate_instdir}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +# * skip test that fails with tzdata 2022b and newer: +# https://github.com/kennytm/tzfile/issues/8 +%cargo_test -- -- --skip chrono_tz_tests::second_offsets +%endif + +%changelog +* Fri Dec 20 2024 MSVSphere Packaging Team - 0.1.3-13 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Sun Dec 08 2024 Fabio Valentini - 0.1.3-13 +- Relax chrono-tz dependency to allow building with 0.10 + +* Fri Aug 23 2024 Benjamin A. Beasley - 0.1.3-12 +- Allow chrono-tz 0.9 + +* Sat Jul 20 2024 Fedora Release Engineering - 0.1.3-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Sat Jan 27 2024 Fedora Release Engineering - 0.1.3-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Thu Aug 31 2023 Fabio Valentini - 0.1.3-9 +- Bump chrono-tz dev-dependency from 0.5 to 0.8 + +* Sat Jul 22 2023 Fedora Release Engineering - 0.1.3-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Sat Jan 21 2023 Fedora Release Engineering - 0.1.3-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Sep 30 2022 Fabio Valentini - 0.1.3-5 +- Skip a test that fails with tzdata 2022b and newer. + +* Sat Jul 23 2022 Fedora Release Engineering - 0.1.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 0.1.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 0.1.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri May 14 2021 Fabio Valentini - 0.1.3-1 +- Initial package + +## END: Generated by rpmautospec