From 3e8bf36c66d1ec9e664468d38a47363e36fc038c Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Sat, 27 Dec 2025 17:51:07 -0800 Subject: [PATCH] add: fresh (#8717) (#8720) (cherry picked from commit cbca2db543e90d19e24e4de3182be126b84fa6fa) Signed-off-by: Owen-sz Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> --- anda/langs/rust/fresh/anda.hcl | 5 +++ anda/langs/rust/fresh/fresh.spec | 53 +++++++++++++++++++++++++++++++ anda/langs/rust/fresh/update.rhai | 1 + 3 files changed, 59 insertions(+) create mode 100644 anda/langs/rust/fresh/anda.hcl create mode 100644 anda/langs/rust/fresh/fresh.spec create mode 100644 anda/langs/rust/fresh/update.rhai diff --git a/anda/langs/rust/fresh/anda.hcl b/anda/langs/rust/fresh/anda.hcl new file mode 100644 index 0000000000..d34694b2d4 --- /dev/null +++ b/anda/langs/rust/fresh/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "fresh.spec" + } +} diff --git a/anda/langs/rust/fresh/fresh.spec b/anda/langs/rust/fresh/fresh.spec new file mode 100644 index 0000000000..207cf6e463 --- /dev/null +++ b/anda/langs/rust/fresh/fresh.spec @@ -0,0 +1,53 @@ +%undefine __brp_mangle_shebangs + +Name: fresh +Version: 0.1.65 +Release: 1%?dist +Summary: Text editor for your terminal: easy, powerful and fast +URL: https://sinelaw.github.io/fresh/ +Source0: https://github.com/sinelaw/fresh/archive/refs/tags/v%version.tar.gz +License: GPL-2.0-Only +BuildRequires: cargo anda-srpm-macros cargo-rpm-macros mold + +Packager: Owen Zimmerman + +%description +%{summary}. + +%package doc +Summary: Documentaion for %{name} + +%description doc +Documentaion for %{name}. + +%prep +%autosetup +%cargo_prep_online + +%build +%cargo_build + +%install +install -Dm755 target/rpm/%{name} %{buildroot}%{_bindir}/%{name} +install -Dm644 flatpak/io.github.sinelaw.fresh.svg %{buildroot}%{_scalableiconsdir}/io.github.sinelaw.fresh.svg +install -Dm644 flatpak/io.github.sinelaw.fresh.desktop %{buildroot}%{_appsdir}/io.github.sinelaw.fresh.desktop +install -Dm644 flatpak/io.github.sinelaw.fresh.metainfo.xml %{buildroot}%{_metainfodir}/io.github.sinelaw.fresh.metainfo.xml +%{cargo_license_online} > LICENSE.dependencies +mkdir -p %{buildroot}%{_pkgdocdir} +cp -a docs/* %{buildroot}%{_pkgdocdir}/ + +%files +%license LICENSE LICENSE.dependencies +%doc README.md REFACTORING_PLAN.md CHANGELOG.md +%{_bindir}/%{name} +%{_scalableiconsdir}/io.github.sinelaw.fresh.svg +%{_appsdir}/io.github.sinelaw.fresh.desktop +%{_metainfodir}/io.github.sinelaw.fresh.metainfo.xml + +%files doc +%{_pkgdocdir}/ +%license LICENSE + +%changelog +* Sat Dec 27 2025 Owen Zimmerman - 0.1.65-1 +- Initial commit diff --git a/anda/langs/rust/fresh/update.rhai b/anda/langs/rust/fresh/update.rhai new file mode 100644 index 0000000000..4aae29f9ca --- /dev/null +++ b/anda/langs/rust/fresh/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("sinelaw/fresh"));