commit 5bdc2818210aa3d45b0b0660cbc010072d1b494e Author: MSVSphere Packaging Team Date: Fri Dec 20 17:52:27 2024 +0300 import rust-time-core-0.1.2-3.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1aa1018 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/time-core-0.1.2.crate diff --git a/.rust-time-core.metadata b/.rust-time-core.metadata new file mode 100644 index 0000000..1524f99 --- /dev/null +++ b/.rust-time-core.metadata @@ -0,0 +1 @@ +e8521480bb4863eb66c031c5749d1c8cbe0e5ecf SOURCES/time-core-0.1.2.crate diff --git a/SOURCES/time-core-fix-metadata.diff b/SOURCES/time-core-fix-metadata.diff new file mode 100644 index 0000000..1d5c648 --- /dev/null +++ b/SOURCES/time-core-fix-metadata.diff @@ -0,0 +1,11 @@ +--- time-core-0.1.2/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ time-core-0.1.2/Cargo.toml 2023-09-25T14:02:43.693704+00:00 +@@ -18,7 +18,7 @@ + "Jacob Pratt ", + "Time contributors", + ] +-description = "This crate is an implementation detail and should not be relied upon directly." ++description = "Internal implementation details of the 'time' crate." + keywords = [ + "date", + "time", diff --git a/SPECS/rust-time-core.spec b/SPECS/rust-time-core.spec new file mode 100644 index 0000000..f3b4378 --- /dev/null +++ b/SPECS/rust-time-core.spec @@ -0,0 +1,103 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.2) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 3; + 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 24 +# * tests can only be run in-tree +%bcond_with check +%global debug_package %{nil} + +%global crate time-core + +Name: rust-time-core +Version: 0.1.2 +Release: %autorelease +Summary: Internal implementation details of the 'time' crate + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/time-core +Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * improve crate description +Patch: time-core-fix-metadata.diff + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Internal implementation details of the 'time' crate.} + +%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-Apache +%license %{crate_instdir}/LICENSE-MIT +%{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_no_tilde} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Fri Dec 20 2024 MSVSphere Packaging Team - 0.1.2-3 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Sat Jul 20 2024 Fedora Release Engineering - 0.1.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Sat Jan 27 2024 Fedora Release Engineering - 0.1.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Sep 25 2023 Fabio Valentini - 0.1.2-1 +- Update to version 0.1.2; Fixes RHBZ#2240433 + +* Sat Jul 22 2023 Fedora Release Engineering - 0.1.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Mon May 08 2023 Fabio Valentini - 0.1.1-1 +- Update to version 0.1.1; Fixes RHBZ#2195841 + +* Sun Feb 19 2023 Fabio Valentini - 0.1.0-1 +- Initial import (#2168973) +## END: Generated by rpmautospec