|
|
@ -1,4 +1,4 @@
|
|
|
|
# Generated by rust2rpm 24
|
|
|
|
# Generated by rust2rpm 26
|
|
|
|
%bcond_without check
|
|
|
|
%bcond_without check
|
|
|
|
%global debug_package %{nil}
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
|
@ -12,10 +12,14 @@ Summary: Gets the size of your Linux or Windows terminal
|
|
|
|
License: MIT OR Apache-2.0
|
|
|
|
License: MIT OR Apache-2.0
|
|
|
|
URL: https://crates.io/crates/terminal_size
|
|
|
|
URL: https://crates.io/crates/terminal_size
|
|
|
|
Source: %{crates_source}
|
|
|
|
Source: %{crates_source}
|
|
|
|
# Automatically generated patch to strip foreign dependencies
|
|
|
|
# Automatically generated patch to strip dependencies and normalize metadata
|
|
|
|
Patch: terminal_size-fix-metadata-auto.diff
|
|
|
|
Patch: terminal_size-fix-metadata-auto.diff
|
|
|
|
|
|
|
|
# Manually created patch for downstream crate metadata changes
|
|
|
|
|
|
|
|
# * bump rustix dependency from 0.37 to 0.38
|
|
|
|
|
|
|
|
Patch: terminal_size-fix-metadata.diff
|
|
|
|
|
|
|
|
Patch: 0001-Port-from-rustix-0.37-to-0.38.patch
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging >= 21
|
|
|
|
BuildRequires: cargo-rpm-macros >= 24
|
|
|
|
|
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
%global _description %{expand:
|
|
|
|
Gets the size of your Linux or Windows terminal.}
|
|
|
|
Gets the size of your Linux or Windows terminal.}
|
|
|
@ -50,7 +54,7 @@ use the "default" feature of the "%{crate}" crate.
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
|
%autosetup -n %{crate}-%{version} -p1
|
|
|
|
%cargo_prep
|
|
|
|
%cargo_prep
|
|
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
%generate_buildrequires
|
|
|
@ -64,7 +68,7 @@ use the "default" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
%if %{with check}
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
# skip tests that don't work without a TTY
|
|
|
|
# * skip tests that don't work without a TTY
|
|
|
|
%cargo_test -- -- --skip unix::compare_with_stty
|
|
|
|
%cargo_test -- -- --skip unix::compare_with_stty
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|