From acb1d2db23f04d94985cac6e84aceda4bb227dfb Mon Sep 17 00:00:00 2001 From: "J." <105894089+Its-J@users.noreply.github.com> Date: Thu, 23 Oct 2025 22:12:01 -0500 Subject: [PATCH] add: TDF (#6835) * add: sad Signed-off-by: j <105894089+Its-J@users.noreply.github.com> * add: TDF pdf viewer, unfinished * remove sad whoops * make work Signed-off-by: Owen-sz --------- Signed-off-by: j <105894089+Its-J@users.noreply.github.com> Signed-off-by: Owen-sz Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> Co-authored-by: Owen-sz --- anda/multimedia/tdf/anda.hcl | 5 ++++ anda/multimedia/tdf/tdf.spec | 42 +++++++++++++++++++++++++++++++++ anda/multimedia/tdf/update.rhai | 1 + 3 files changed, 48 insertions(+) create mode 100644 anda/multimedia/tdf/anda.hcl create mode 100644 anda/multimedia/tdf/tdf.spec create mode 100644 anda/multimedia/tdf/update.rhai diff --git a/anda/multimedia/tdf/anda.hcl b/anda/multimedia/tdf/anda.hcl new file mode 100644 index 0000000000..2b10d0f596 --- /dev/null +++ b/anda/multimedia/tdf/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "tdf.spec" + } +} diff --git a/anda/multimedia/tdf/tdf.spec b/anda/multimedia/tdf/tdf.spec new file mode 100644 index 0000000000..3ed3249916 --- /dev/null +++ b/anda/multimedia/tdf/tdf.spec @@ -0,0 +1,42 @@ +Name: tdf +Version: 0.4.3 +Release: 1%?dist +Summary: A tui-based PDF viewer +URL: https://github.com/itsjunetime/tdf +Source0: %url/archive/refs/tags/v%{version}.tar.gz +License: AGPL-3.0 +BuildRequires: cargo anda-srpm-macros cargo-rpm-macros mold fontconfig-devel mupdf glib2 libgcc clang python + +Packager: Its-J + +%description +A terminal-based PDF viewer. +Designed to be performant, very responsive, and work well with even very large PDFs. Built with ratatui. + +%prep +%git_clone +%cargo_prep_online +pushd ratatui-image +%cargo_prep_online +popd +pushd ratatui +%cargo_prep_online +popd + +%build +%cargo_build + +%install +install -Dm755 target/rpm/tdf %{buildroot}%{_bindir}/tdf +%cargo_license_summary_online +%{cargo_license_online -a} > LICENSE.dependencies + +%files +%doc README.md +%license LICENSE +%license LICENSE.dependencies +%{_bindir}/tdf + +%changelog +* Wed Oct 22 2025 Its-J +- Intial Commit diff --git a/anda/multimedia/tdf/update.rhai b/anda/multimedia/tdf/update.rhai new file mode 100644 index 0000000000..6263c340a0 --- /dev/null +++ b/anda/multimedia/tdf/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("itsjunetime/tdf"));