commit 708b0e04075a7430c70237d3cef6c03168149ab2 Author: tigro Date: Mon Jan 15 21:16:44 2024 +0300 import rust-getch-0.3.1-1.el9 diff --git a/.rust-getch.metadata b/.rust-getch.metadata new file mode 100644 index 0000000..e69de29 diff --git a/SOURCES/getch-0.3.1.crate b/SOURCES/getch-0.3.1.crate new file mode 100644 index 0000000..5f880cb Binary files /dev/null and b/SOURCES/getch-0.3.1.crate differ diff --git a/SOURCES/getch-fix-metadata-auto.diff b/SOURCES/getch-fix-metadata-auto.diff new file mode 100644 index 0000000..47cb3a3 --- /dev/null +++ b/SOURCES/getch-fix-metadata-auto.diff @@ -0,0 +1,8 @@ +--- getch-0.3.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ getch-0.3.1/Cargo.toml 1970-01-01T00:00:01+00:00 +@@ -21,5 +21,3 @@ + repository = "https://nest.pijul.com/pmeunier/getch" + [target."cfg(unix)".dependencies.termios] + version = "0.3.3" +-[target."cfg(windows)".dependencies.libc] +-version = "0.2" diff --git a/SPECS/rust-getch.spec b/SPECS/rust-getch.spec new file mode 100644 index 0000000..af92146 --- /dev/null +++ b/SPECS/rust-getch.spec @@ -0,0 +1,104 @@ +## 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 22 +%bcond_without check +%global debug_package %{nil} + +%global crate getch + +Name: rust-getch +Version: 0.3.1 +Release: %autorelease +Summary: Portable implementation of getch + +# https://nest.pijul.com/pijul_org/getch/discussions/4 +License: Apache-2.0 +URL: https://crates.io/crates/getch +Source: %{crates_source} +# Automatically generated patch to strip foreign dependencies +Patch: getch-fix-metadata-auto.diff + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Portable implementation of getch, using _getch on Windows, and termios on Unix.} + +%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 +%{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 +* Mon Jan 15 2024 Arkady L. Shane - 0.3.1-1 +- Rebuilt for MSVSphere 9.3 + +* Wed Jul 27 2022 Fabio Valentini 0.3.1-1 +- Update to version 0.3.1; Fixes RHBZ#2041711 + +* Sat Jul 23 2022 Fedora Release Engineering - 0.2.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 0.2.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Tue Jul 27 2021 Fedora Release Engineering - 0.2.1-4 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Jan 27 2021 Fedora Release Engineering - 0.2.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 0.2.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Fri Feb 14 10:44:31 CET 2020 Igor Raits - 0.2.1-1 +- Initial package +