add: television (#6051) (#6123)

(cherry picked from commit ee67096f52)

Co-authored-by: madomado <madonuko@outlook.com>
This commit is contained in:
Raboneko
2025-08-22 16:48:42 -07:00
committed by GitHub
parent a582eefad1
commit 515e1d53f9
4 changed files with 112 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "rust-television.spec"
}
}
@@ -0,0 +1,79 @@
# Generated by rust2rpm 27
%bcond check 1
%global __brp_mangle_shebangs_exclude_from ^/usr/src/.*$
%global crate television
Name: rust-television
Version: 0.13.2
Release: %autorelease
Summary: Cross-platform, fast and extensible general purpose fuzzy finder TUI
License: MIT
URL: https://crates.io/crates/television
Source: %{crates_source}
# Automatically generated patch to strip dependencies and normalize metadata
Patch: television-fix-metadata-auto.diff
BuildRequires: cargo-rpm-macros >= 24
%global _description %{expand:
Cross-platform, fast and extensible general purpose fuzzy finder TUI.}
%description %{_description}
%package -n %{crate}
Summary: %{summary}
License: (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 AND ISC) AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR ISC OR MIT) AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CDLA-Permissive-2.0 AND ISC AND MIT AND (MIT OR Apache-2.0) AND (MIT OR Apache-2.0 OR LGPL-2.1-or-later) AND (MIT OR Zlib OR Apache-2.0) AND MPL-2.0 AND (Unlicense OR MIT) AND Zlib
# LICENSE.dependencies contains a full license breakdown
%description -n %{crate} %{_description}
%files -n %{crate}
%license LICENSE
%license LICENSE.dependencies
%doc CHANGELOG.md
%doc CODE_OF_CONDUCT.md
%doc CONTRIBUTING.md
%doc README.md
%{_bindir}/tv
%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}/CODE_OF_CONDUCT.md
%doc %{crate_instdir}/CONTRIBUTING.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
%prep
%autosetup -n %{crate}-%{version} -p1
%cargo_prep_online
%build
%{cargo_license_summary_online}
%{cargo_license_online} > LICENSE.dependencies
%install
%cargo_install
@@ -0,0 +1,27 @@
--- television-0.13.2/Cargo.toml 1970-01-01T00:00:01+00:00
+++ television-0.13.2/Cargo.toml 2025-08-12T10:41:15.727396+00:00
@@ -227,19 +227,6 @@
version = "0.28"
features = ["serde"]
-[target.'cfg(target_os = "macos")'.dependencies.crossterm]
-version = "0.28.1"
-features = [
- "serde",
- "use-dev-tty",
-]
-
-[target."cfg(windows)".dependencies.clipboard-win]
-version = "5.4.0"
-
-[target."cfg(windows)".dependencies.winapi-util]
-version = "0.1.9"
-
[lints.clippy]
cast_precision_loss = "allow"
float_cmp = "allow"
@@ -277,3 +264,4 @@
lto = false
debug = 2
inherits = "dev"
+
+1
View File
@@ -0,0 +1 @@
rpm.version(crates("television"));