diff --git a/anda/langs/rust/television/rust-television.spec b/anda/langs/rust/television/rust-television.spec index 4de07bcdb6..25f03493ea 100644 --- a/anda/langs/rust/television/rust-television.spec +++ b/anda/langs/rust/television/rust-television.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 27 +# Generated by rust2rpm 28 %bcond check 1 %global __brp_mangle_shebangs_exclude_from ^/usr/src/.*$ @@ -7,7 +7,7 @@ Name: rust-television Version: 0.14.4 Release: 1%?dist -Summary: Cross-platform, fast and extensible general purpose fuzzy finder TUI +Summary: Very fast, portable and hackable fuzzy finder for the terminal License: MIT URL: https://crates.io/crates/television @@ -18,13 +18,13 @@ Patch: television-fix-metadata-auto.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: -Cross-platform, fast and extensible general purpose fuzzy finder TUI.} +A very fast, portable and hackable fuzzy finder for the terminal.} %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: (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 AND (Zlib OR Apache-2.0 OR MIT) # LICENSE.dependencies contains a full license breakdown %description -n %{crate} %{_description} diff --git a/anda/langs/rust/television/television-fix-metadata-auto.diff b/anda/langs/rust/television/television-fix-metadata-auto.diff index e330561bec..3d288f888a 100644 --- a/anda/langs/rust/television/television-fix-metadata-auto.diff +++ b/anda/langs/rust/television/television-fix-metadata-auto.diff @@ -1,9 +1,10 @@ ---- 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 @@ +--- television-0.14.4/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ television-0.14.4/Cargo.toml 2026-01-04T18:45:00.790925+00:00 +@@ -251,19 +251,6 @@ + [target.'cfg(not(target_os = "macos"))'.dependencies.crossterm] version = "0.28" features = ["serde"] - +- -[target.'cfg(target_os = "macos")'.dependencies.crossterm] -version = "0.28.1" -features = [ @@ -16,12 +17,11 @@ - -[target."cfg(windows)".dependencies.winapi-util] -version = "0.1.9" -- + [lints.clippy] cast_precision_loss = "allow" - float_cmp = "allow" -@@ -277,3 +264,4 @@ +@@ -301,3 +288,4 @@ + opt-level = 3 lto = false - debug = 2 - inherits = "dev" + inherits = "release" + diff --git a/rust-television.spec b/rust-television.spec new file mode 100644 index 0000000000..953d008193 --- /dev/null +++ b/rust-television.spec @@ -0,0 +1,91 @@ +# Generated by rust2rpm 28 +%bcond check 1 + +%global crate television + +Name: rust-television +Version: 0.14.4 +Release: %autorelease +Summary: Very fast, portable and hackable fuzzy finder for the terminal + +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: +A very fast, portable and hackable fuzzy finder for the terminal.} + +%description %{_description} + +%package -n %{crate} +Summary: %{summary} +# FIXME: paste output of %%cargo_license_summary here +License: # FIXME +# 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 + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build +%{cargo_license_summary} +%{cargo_license} > LICENSE.dependencies + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +%autochangelog diff --git a/television-fix-metadata-auto.diff b/television-fix-metadata-auto.diff new file mode 100644 index 0000000000..3d288f888a --- /dev/null +++ b/television-fix-metadata-auto.diff @@ -0,0 +1,27 @@ +--- television-0.14.4/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ television-0.14.4/Cargo.toml 2026-01-04T18:45:00.790925+00:00 +@@ -251,19 +251,6 @@ + [target.'cfg(not(target_os = "macos"))'.dependencies.crossterm] + 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" +@@ -301,3 +288,4 @@ + opt-level = 3 + lto = false + inherits = "release" ++