%define _debugsource_template %{nil} %define debug_package %{nil} Name: fresh-editor Version: 0.3.12 Release: 1%{?dist} Summary: Modern terminal text editor and IDE License: GPL-2.0-only URL: https://github.com/sinelaw/fresh Source0: %{url}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: cargo >= 1.92 BuildRequires: rust >= 1.92 BuildRequires: gcc BuildRequires: make BuildRequires: cmake BuildRequires: perl BuildRequires: pkgconf-pkg-config BuildRequires: desktop-file-utils BuildRequires: glib2 Requires: hicolor-icon-theme Requires: /bin/sh Recommends: git Recommends: ripgrep %global _description %{expand: Fresh is a modern terminal text editor and IDE. It provides familiar GUI-style keybindings, mouse support, command palette, file explorer, LSP support, multi-cursor editing, themes, and TypeScript plugins while remaining a fast terminal application.} %description %{_description} %prep %autosetup -n fresh-%{version} rm -f rust-toolchain.toml %build export CARGO_HOME=$PWD/.cargo-home export RUSTFLAGS="%{?build_rustflags}" cargo build --release -p fresh-editor --bin fresh %install install -Dpm 0755 target/release/fresh \ %{buildroot}%{_datadir}/fresh-editor/fresh install -Dpm 0755 crates/fresh-editor/scripts/fresh-wrapper.sh \ %{buildroot}%{_bindir}/fresh install -Dpm 0644 crates/fresh-editor/resources/fresh.desktop \ %{buildroot}%{_datadir}/applications/fresh.desktop mkdir -p %{buildroot}%{_datadir}/fresh-editor/plugins cp -a crates/fresh-editor/plugins/. \ %{buildroot}%{_datadir}/fresh-editor/plugins/ mkdir -p %{buildroot}%{_datadir}/fresh-editor/themes cp -a crates/fresh-editor/themes/. \ %{buildroot}%{_datadir}/fresh-editor/themes/ mkdir -p %{buildroot}%{_datadir}/icons/hicolor cp -a docs/icons/linux/hicolor/. \ %{buildroot}%{_datadir}/icons/hicolor/ %check desktop-file-validate %{buildroot}%{_datadir}/applications/fresh.desktop %{buildroot}%{_datadir}/fresh-editor/fresh --version %files %license LICENSE %doc README.md CHANGELOG.md %{_bindir}/fresh %dir %{_datadir}/fresh-editor %{_datadir}/fresh-editor/fresh %{_datadir}/fresh-editor/plugins %{_datadir}/fresh-editor/themes %{_datadir}/applications/fresh.desktop %{_datadir}/icons/hicolor/*/apps/fresh.png %changelog * Fri Jun 05 2026 sachesi <107267487+sachesi@users.noreply.github.com> - 0.3.12-1 - Update to 0.3.12. * Thu May 28 2026 sachesi - 0.3.10-1 - Update to 0.3.10. * Wed May 27 2026 sachesi - 0.3.9-1 - Update to 0.3.9. * Tue May 26 2026 sachesi - 0.3.8-1 - Update to 0.3.8. * Tue May 26 2026 sachesi - 0.3.8-1 - Update to 0.3.8. * Tue May 26 2026 sachesi - 0.3.8-1 - Update to 0.3.8. * Sun Apr 26 2026 sachesi - 0.3.0-2 - Preserve cargo-vendor generated .cargo/config.toml for git dependencies * Sun Apr 26 2026 sachesi - 0.3.0-1 - Initial RPM package for Fresh 0.3.0