Initial import

Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
epel9
Igor Raits 5 years ago
parent e81edbd42a
commit a1824ca2fc
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C

1
.gitignore vendored

@ -0,0 +1 @@
/getch-0.2.1.crate

@ -0,0 +1,10 @@
--- getch-0.2.1/Cargo.toml 1970-01-01T00:00:00+00:00
+++ getch-0.2.1/Cargo.toml 2020-02-14T09:44:31.273575+00:00
@@ -21,6 +21,4 @@
license = "Apache-2.0"
repository = "https://nest.pijul.com/pijul_org/getch"
[target."cfg(unix)".dependencies.termios]
-version = "0.2"
-[target."cfg(windows)".dependencies.libc]
-version = "0.2"
+version = "0.3"

@ -0,0 +1,77 @@
# Generated by rust2rpm 13
%bcond_without check
%global debug_package %{nil}
%global crate getch
Name: rust-%{crate}
Version: 0.2.1
Release: 1%{?dist}
Summary: Portable implementation of getch, using _getch on Windows, and termios on Unix
# Upstream license specification: Apache-2.0
# https://nest.pijul.com/pijul_org/getch/discussions/4
License: ASL 2.0
URL: https://crates.io/crates/getch
Source: %{crates_source}
# Initial patched metadata
# * Update termios to 0.3
Patch0: getch-fix-metadata.diff
ExclusiveArch: %{rust_arches}
%if %{__cargo_skip_build}
BuildArch: noarch
%endif
BuildRequires: rust-packaging
%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 "%{crate}" crate.
%files devel
%{cargo_registry}/%{crate}-%{version_no_tilde}/
%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 "default" feature of "%{crate}" crate.
%files -n %{name}+default-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 Feb 14 10:44:31 CET 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.2.1-1
- Initial package

@ -0,0 +1 @@
SHA512 (getch-0.2.1.crate) = 2b9b390ffec230dde7d73af1dcddca525e3800024c7142b1a8cef4a3dfd840fac5752ac821e497aac0f13c2b99692242810eff45f66a7b7c1d3eb99dbda50bc6
Loading…
Cancel
Save