mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
(cherry picked from commit 84dd7207bc)
Co-authored-by: madomado <madonuko@outlook.com>
This commit is contained in:
@@ -1,91 +0,0 @@
|
||||
# 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
|
||||
@@ -1,27 +0,0 @@
|
||||
--- 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"
|
||||
+
|
||||
Reference in New Issue
Block a user