From 014ee166448fedba714243fdd0aa358d98f3ca57 Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Fri, 20 Dec 2024 15:09:17 +0300 Subject: [PATCH] import rust-console-0.15.8-3.el10 --- .gitignore | 1 + .rust-console.metadata | 1 + SOURCES/console-fix-metadata-auto.diff | 17 ++ SOURCES/console-fix-metadata.diff | 10 ++ SOURCES/rust2rpm.toml | 3 + SPECS/rust-console.spec | 224 +++++++++++++++++++++++++ 6 files changed, 256 insertions(+) create mode 100644 .gitignore create mode 100644 .rust-console.metadata create mode 100644 SOURCES/console-fix-metadata-auto.diff create mode 100644 SOURCES/console-fix-metadata.diff create mode 100644 SOURCES/rust2rpm.toml create mode 100644 SPECS/rust-console.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fe9f3d2 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/console-0.15.8.crate diff --git a/.rust-console.metadata b/.rust-console.metadata new file mode 100644 index 0000000..944d0d8 --- /dev/null +++ b/.rust-console.metadata @@ -0,0 +1 @@ +7513484c88f46de483e2b71478f3379d6e443ffb SOURCES/console-0.15.8.crate diff --git a/SOURCES/console-fix-metadata-auto.diff b/SOURCES/console-fix-metadata-auto.diff new file mode 100644 index 0000000..160493a --- /dev/null +++ b/SOURCES/console-fix-metadata-auto.diff @@ -0,0 +1,17 @@ +--- console-0.15.8/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ console-0.15.8/Cargo.toml 2024-01-10T15:47:50.855900+00:00 +@@ -59,14 +59,3 @@ + ] + windows-console-colors = ["ansi-parsing"] + +-[target."cfg(windows)".dependencies.encode_unicode] +-version = "0.3" +- +-[target."cfg(windows)".dependencies.windows-sys] +-version = "0.52.0" +-features = [ +- "Win32_Foundation", +- "Win32_System_Console", +- "Win32_Storage_FileSystem", +- "Win32_UI_Input_KeyboardAndMouse", +-] diff --git a/SOURCES/console-fix-metadata.diff b/SOURCES/console-fix-metadata.diff new file mode 100644 index 0000000..cf24e74 --- /dev/null +++ b/SOURCES/console-fix-metadata.diff @@ -0,0 +1,10 @@ +--- console-0.15.8/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ console-0.15.8/Cargo.toml 2024-01-10T15:47:55.890916+00:00 +@@ -44,7 +44,6 @@ + features = [ + "std", + "bit-set", +- "break-dead-code", + ] + default-features = false + diff --git a/SOURCES/rust2rpm.toml b/SOURCES/rust2rpm.toml new file mode 100644 index 0000000..9288fc8 --- /dev/null +++ b/SOURCES/rust2rpm.toml @@ -0,0 +1,3 @@ +[features] +hide = ["windows-console-colors"] + diff --git a/SPECS/rust-console.spec b/SPECS/rust-console.spec new file mode 100644 index 0000000..aee7bb9 --- /dev/null +++ b/SPECS/rust-console.spec @@ -0,0 +1,224 @@ +## 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 25 +%bcond_without check +%global debug_package %{nil} + +%global crate console + +Name: rust-console +Version: 0.15.8 +Release: %autorelease +Summary: Terminal and console abstraction for Rust + +License: MIT +URL: https://crates.io/crates/console +Source: %{crates_source} +# Automatically generated patch to strip dependencies and normalize metadata +Patch: console-fix-metadata-auto.diff +# Manually created patch for downstream crate metadata changes +# * drop obsolete "proptest/break-dead-code" dev-dependency +Patch: console-fix-metadata.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +A terminal and console abstraction for 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 +%doc %{crate_instdir}/CHANGELOG.md +%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}+ansi-parsing-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+ansi-parsing-devel %{_description} + +This package contains library source intended for building other packages which +use the "ansi-parsing" feature of the "%{crate}" crate. + +%files -n %{name}+ansi-parsing-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+unicode-width-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+unicode-width-devel %{_description} + +This package contains library source intended for building other packages which +use the "unicode-width" feature of the "%{crate}" crate. + +%files -n %{name}+unicode-width-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 +%cargo_test +%endif + +%changelog +* Fri Dec 20 2024 MSVSphere Packaging Team - 0.15.8-3 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Fri Jul 19 2024 Fedora Release Engineering - 0.15.8-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri Jan 26 2024 Fedora Release Engineering - 0.15.8-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Wed Jan 10 2024 Fabio Valentini - 0.15.8-1 +- Update to version 0.15.8; Fixes RHBZ#2257444 + +* Wed Oct 18 2023 Fabio Valentini - 0.15.7-3 +- Drop obsolete "proptest/break-dead-code" dev-dependency + +* Fri Jul 21 2023 Fedora Release Engineering - 0.15.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Mon May 29 2023 Fabio Valentini - 0.15.7-1 +- Update to version 0.15.7; Fixes RHBZ#2208887 + +* Thu May 18 2023 Fabio Valentini - 0.15.6-1 +- Update to version 0.15.6; Fixes RHBZ#2208233 + +* Sun Jan 29 2023 Fabio Valentini - 0.15.5-1 +- Update to version 0.15.5; Fixes RHBZ#2156592 + +* Fri Jan 20 2023 Fedora Release Engineering - 0.15.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Wed Oct 05 2022 Fabio Valentini - 0.15.2-1 +- Update to version 0.15.2; Fixes RHBZ#2130589 + +* Sat Aug 06 2022 Fabio Valentini - 0.15.1-1 +- Update to version 0.15.1; Fixes RHBZ#2111568 + +* Sat Jul 23 2022 Fedora Release Engineering - 0.15.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 0.15.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Wed Jan 12 2022 Fabio Valentini - 0.15.0-1 +- Update to version 0.15.0; Fixes RHBZ#2014317 + +* Fri Jul 23 2021 Fedora Release Engineering - 0.14.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Tue Mar 23 2021 Fabio Valentini - 0.14.1-1 +- Update to version 0.14.1. +- Fixes RHBZ#1938616 + +* Wed Jan 27 2021 Fedora Release Engineering - 0.14.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Sun Jan 10 17:45:33 CET 2021 Igor Raits - 0.14.0-1 +- Update to 0.14.0 (Fixes: RHBZ#1910977) + +* Sun Oct 25 2020 Fabio Valentini - 0.13.0-1 +- Update to version 0.13.0. + +* Wed Jul 29 2020 Fedora Release Engineering - 0.11.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Mon May 18 2020 Josh Stone - 0.11.3-1 +- Update to 0.11.3 + +* Sat May 02 10:56:03 CEST 2020 Igor Raits - 0.11.2-1 +- Update to 0.11.2 + +* Mon Apr 27 08:18:46 CEST 2020 Igor Raits - 0.10.1-1 +- Update to 0.10.1 + +* Mon Mar 23 07:04:01 CET 2020 Igor Raits - 0.10.0-1 +- Update to 0.10.0 + +* Thu Jan 30 2020 Fedora Release Engineering - 0.9.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Mon Jan 27 2020 Josh Stone - 0.9.2-1 +- Update to 0.9.2 + +* Fri Dec 06 17:31:03 CET 2019 Igor Gnatenko - 0.9.1-1 +- Update to 0.9.1 + +* Fri Jul 26 2019 Fedora Release Engineering - 0.7.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu Jun 20 11:03:42 CEST 2019 Igor Gnatenko - 0.7.7-1 +- Update to 0.7.7 + +* Tue Jun 18 23:43:14 CEST 2019 Igor Gnatenko - 0.7.6-1 +- Update to 0.7.6 + +* Sun Jun 09 14:26:32 CEST 2019 Igor Gnatenko - 0.7.5-3 +- Regenerate + +* Sat Feb 02 2019 Fedora Release Engineering - 0.7.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Mon Jan 28 2019 Igor Gnatenko - 0.7.5-1 +- Update to 0.7.5 + +* Thu Dec 20 2018 Igor Gnatenko - 0.6.2-3 +- Run tests in infrastructure + +* Sat Nov 03 2018 Igor Gnatenko - 0.6.2-2 +- Adapt to new packaging + +* Tue Sep 11 2018 Josh Stone - 0.6.2-1 +- Update to 0.6.2 + +* Mon Sep 03 2018 Igor Gnatenko - 0.6.1-1 +- Initial package + +## END: Generated by rpmautospec