commit effc6d476809a2a28985aa2994785828a31df811 Author: tigro Date: Mon Jan 15 20:52:50 2024 +0300 import rust-crossterm-0.27.0-2.el9 diff --git a/.rust-crossterm.metadata b/.rust-crossterm.metadata new file mode 100644 index 0000000..e69de29 diff --git a/SOURCES/crossterm-0.27.0.crate b/SOURCES/crossterm-0.27.0.crate new file mode 100644 index 0000000..4b4131d Binary files /dev/null and b/SOURCES/crossterm-0.27.0.crate differ diff --git a/SOURCES/crossterm-fix-metadata-auto.diff b/SOURCES/crossterm-fix-metadata-auto.diff new file mode 100644 index 0000000..7d0299c --- /dev/null +++ b/SOURCES/crossterm-fix-metadata-auto.diff @@ -0,0 +1,26 @@ +--- crossterm-0.27.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ crossterm-0.27.0/Cargo.toml 2023-10-27T19:13:04.543460+00:00 +@@ -143,8 +143,6 @@ + ] + use-dev-tty = ["filedescriptor"] + windows = [ +- "dep:winapi", +- "dep:crossterm_winapi", + ] + + [target."cfg(unix)".dependencies.filedescriptor] +@@ -168,14 +166,3 @@ + features = ["support-v0_8"] + optional = true + +-[target."cfg(windows)".dependencies.crossterm_winapi] +-version = "0.9.1" +-optional = true +- +-[target."cfg(windows)".dependencies.winapi] +-version = "0.3.9" +-features = [ +- "winuser", +- "winerror", +-] +-optional = true diff --git a/SOURCES/crossterm-fix-metadata.diff b/SOURCES/crossterm-fix-metadata.diff new file mode 100644 index 0000000..5171f86 --- /dev/null +++ b/SOURCES/crossterm-fix-metadata.diff @@ -0,0 +1,19 @@ +--- crossterm-0.27.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ crossterm-0.27.0/Cargo.toml 2023-10-27T19:13:23.073530+00:00 +@@ -125,7 +125,6 @@ + bracketed-paste = [] + default = [ + "bracketed-paste", +- "windows", + "events", + ] + event-stream = [ +@@ -142,8 +141,6 @@ + "bitflags/serde", + ] + use-dev-tty = ["filedescriptor"] +-windows = [ +-] + + [target."cfg(unix)".dependencies.filedescriptor] + version = "0.8" diff --git a/SPECS/rust-crossterm.spec b/SPECS/rust-crossterm.spec new file mode 100644 index 0000000..62aae7f --- /dev/null +++ b/SPECS/rust-crossterm.spec @@ -0,0 +1,275 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.3.5) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 2; + 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 crossterm + +Name: rust-crossterm +Version: 0.27.0 +Release: %autorelease +Summary: Crossplatform terminal library for manipulating terminals + +License: MIT +URL: https://crates.io/crates/crossterm +Source: %{crates_source} +# Automatically generated patch to strip dependencies and normalize metadata +Patch: crossterm-fix-metadata-auto.diff +# Manually created patch for downstream crate metadata changes +# * drop Windows-specific features +Patch: crossterm-fix-metadata.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +A crossplatform terminal library for manipulating terminals.} + +%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}+bracketed-paste-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+bracketed-paste-devel %{_description} + +This package contains library source intended for building other packages which +use the "bracketed-paste" feature of the "%{crate}" crate. + +%files -n %{name}+bracketed-paste-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+event-stream-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+event-stream-devel %{_description} + +This package contains library source intended for building other packages which +use the "event-stream" feature of the "%{crate}" crate. + +%files -n %{name}+event-stream-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+events-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+events-devel %{_description} + +This package contains library source intended for building other packages which +use the "events" feature of the "%{crate}" crate. + +%files -n %{name}+events-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+filedescriptor-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+filedescriptor-devel %{_description} + +This package contains library source intended for building other packages which +use the "filedescriptor" feature of the "%{crate}" crate. + +%files -n %{name}+filedescriptor-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+serde-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+serde-devel %{_description} + +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 %{crate_instdir}/Cargo.toml + +%package -n %{name}+use-dev-tty-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+use-dev-tty-devel %{_description} + +This package contains library source intended for building other packages which +use the "use-dev-tty" feature of the "%{crate}" crate. + +%files -n %{name}+use-dev-tty-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 two tests that randomly fail: +# https://github.com/crossterm-rs/crossterm/issues/836 +%cargo_test -- -- --exact --skip style::types::colored::tests::test_parse_ansi_bg --skip style::types::colored::tests::test_parse_ansi_fg +%endif + +%changelog +* Mon Jan 15 2024 Arkady L. Shane - 0.27.0-2 +- Rebuilt for MSVSphere 9.3 + +* Fri Oct 27 2023 Fabio Valentini - 0.27.0-2 +- Skip two tests that randomly fail + +* Tue Oct 24 2023 Fabio Valentini - 0.27.0-1 +- Update to version 0.27.0; Fixes RHBZ#2229490 + +* Fri Jul 21 2023 Fedora Release Engineering - 0.26.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Fri May 19 2023 Michel Alexandre Salim - 0.26.1-1 +- Update to 0.26.1 + +* Fri Jan 20 2023 Fedora Release Engineering - 0.25.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Nov 25 2022 Fabio Valentini - 0.25.0-1 +- Update to version 0.25.0; Fixes RHBZ#1970468 + +* Sat Jul 23 2022 Fedora Release Engineering - 0.22.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Sun Feb 13 2022 Fabio Valentini - 0.22.1-1 +- Update to version 0.22.1 + +* Fri Jan 21 2022 Fedora Release Engineering - 0.20.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Sep 03 2021 Fabio Valentini - 0.20.0-1 +- Update to version 0.20.0 + +* Fri Jul 23 2021 Fedora Release Engineering - 0.19.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Sun Mar 21 15:46:54 CET 2021 Igor Raits - 0.19.0-1 +- Update to 0.19.0 + +* Wed Jan 27 2021 Fedora Release Engineering - 0.18.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Dec 01 2020 Fabio Valentini - 0.18.2-1 +- Update to version 0.18.2. +- Fixes RHBZ#1883428 + +* Fri Sep 11 2020 Josh Stone - 0.17.7-3 +- Bump to parking_lot 0.11 + +* Wed Jul 29 2020 Fedora Release Engineering - 0.17.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue Jul 14 2020 Josh Stone - 0.17.7-1 +- Update to 0.17.7 + +* Fri Jul 10 2020 Josh Stone - 0.17.6-1 +- Update to 0.17.6 + +* Sat May 23 20:16:32 CEST 2020 Igor Raits - 0.17.5-1 +- Update to 0.17.5 + +* Sun May 10 14:37:51 CEST 2020 Igor Raits - 0.17.4-1 +- Update to 0.17.4 + +* Thu Mar 19 2020 Igor Raits - 0.16.0-2 +- Fix leaking fd's + +* Thu Mar 19 2020 Josh Stone - 0.16.0-1 +- Update to 0.16.0 + +* Thu Jan 30 2020 Fedora Release Engineering - 0.14.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Wed Jan 15 2020 Josh Stone - 0.14.2-1 +- Update to 0.14.2 + +* Fri Dec 27 10:27:17 CET 2019 Igor Gnatenko - 0.14.1-1 +- Update to 0.14.1 + +* Wed Dec 11 19:34:59 CET 2019 Igor Gnatenko - 0.13.3-1 +- Update to 0.13.3 + +* Sat Aug 03 16:37:21 CEST 2019 Igor Gnatenko - 0.10.2-1 +- Update to 0.10.2 + +* Sun Jul 28 18:46:00 CEST 2019 Igor Gnatenko - 0.10.1-1 +- Update to 0.10.1 + +* Fri Jul 26 2019 Fedora Release Engineering - 0.9.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Jun 22 11:49:17 CEST 2019 Igor Gnatenko - 0.9.6-1 +- Update to 0.9.6 + +* Fri May 31 2019 Josh Stone - 0.9.5-1 +- Update to 0.9.5 + +* Wed May 15 20:13:25 CEST 2019 Igor Gnatenko - 0.9.4-1 +- Update to 0.9.4 + +* Sat Apr 20 10:40:41 CEST 2019 Igor Gnatenko - 0.9.3-1 +- Update to 0.9.3 + +* Fri Apr 05 17:25:13 CEST 2019 Igor Gnatenko - 0.8.2-1 +- Update to 0.8.2 + +* Fri Apr 05 09:03:46 CEST 2019 Igor Gnatenko - 0.8.1-1 +- Update to 0.8.1 + +* Thu Apr 04 08:13:39 CEST 2019 Igor Gnatenko - 0.8.0-1 +- Update to 0.8.0 + +* Fri Mar 22 2019 Josh Stone - 0.7.0-1 +- Update to 0.7.0 + +* Fri Mar 15 2019 Igor Gnatenko - 0.6.0-1 +- Initial package +