commit caeb8037af5b405ac481c50453c8c9a4f4db5020 Author: tigro Date: Mon Jan 15 22:55:08 2024 +0300 import rust-time0.1-0.1.45-1.el9 diff --git a/.rust-time0.1.metadata b/.rust-time0.1.metadata new file mode 100644 index 0000000..e69de29 diff --git a/SOURCES/time-0.1.45.crate b/SOURCES/time-0.1.45.crate new file mode 100644 index 0000000..30c0fc0 Binary files /dev/null and b/SOURCES/time-0.1.45.crate differ diff --git a/SOURCES/time-fix-metadata-auto.diff b/SOURCES/time-fix-metadata-auto.diff new file mode 100644 index 0000000..e7a00c0 --- /dev/null +++ b/SOURCES/time-fix-metadata-auto.diff @@ -0,0 +1,20 @@ +--- time-0.1.45/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ time-0.1.45/Cargo.toml 1970-01-01T00:00:01+00:00 +@@ -44,17 +44,3 @@ + "winbase", + ] + +-[target."cfg(target_os = \"wasi\")".dependencies.wasi] +-version = "=0.10.0" +- +-[target."cfg(windows)".dependencies.winapi] +-version = "0.3.0" +-features = [ +- "std", +- "minwinbase", +- "minwindef", +- "ntdef", +- "profileapi", +- "sysinfoapi", +- "timezoneapi", +-] diff --git a/SOURCES/time-fix-metadata.diff b/SOURCES/time-fix-metadata.diff new file mode 100644 index 0000000..e3bdefe --- /dev/null +++ b/SOURCES/time-fix-metadata.diff @@ -0,0 +1,15 @@ +--- time-0.1.45/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ time-0.1.45/Cargo.toml 2022-12-23T22:29:19.302372+00:00 +@@ -35,12 +35,3 @@ + + [dev-dependencies.log] + version = "0.4" +- +-[dev-dependencies.winapi] +-version = "0.3.0" +-features = [ +- "std", +- "processthreadsapi", +- "winbase", +-] +- diff --git a/SPECS/rust-time0.1.spec b/SPECS/rust-time0.1.spec new file mode 100644 index 0000000..134a485 --- /dev/null +++ b/SPECS/rust-time0.1.spec @@ -0,0 +1,132 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.3.0) +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 1; + 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 23 +%bcond_without check +%global debug_package %{nil} + +%global crate time + +Name: rust-time0.1 +Version: 0.1.45 +Release: %autorelease +Summary: Utilities for working with time-related functions in Rust + +# Upstream license specification: MIT/Apache-2.0 +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/time +Source: %{crates_source} +# Automatically generated patch to strip foreign dependencies +Patch: time-fix-metadata-auto.diff +# Manually created patch for downstream crate metadata changes +# * disable windows-specific dev-dependencies +Patch: time-fix-metadata.diff + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Utilities for working with time-related functions in Rust.} + +%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 +%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 + +%package -n %{name}+rustc-serialize-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+rustc-serialize-devel %{_description} + +This package contains library source intended for building other packages which +use the "rustc-serialize" feature of the "%{crate}" crate. + +%files -n %{name}+rustc-serialize-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 +* Mon Jan 15 2024 Arkady L. Shane - 0.1.45-1 +- Rebuilt for MSVSphere 9.3 + +* Fri Dec 23 2022 Fabio Valentini 0.1.45-1 +- Update to version 0.1.45 + +* Sat Jul 23 2022 Fedora Release Engineering - 0.1.44-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 0.1.44-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 0.1.44-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Jan 27 2021 Fedora Release Engineering - 0.1.44-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Sep 01 2020 Josh Stone - 0.1.44-1 +- Update to 0.1.44 + +* Sat Aug 01 2020 Fedora Release Engineering - 0.1.43-3 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 0.1.43-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue Apr 21 2020 Josh Stone - 0.1.43-1 +- Update to 0.1.43 + +* Tue Feb 18 04:00:23 CET 2020 Igor Raits - 0.1.42-2 +- Disable tests + +* Mon Jan 27 2020 Josh Stone - 0.1.42-1 +- Initial package +