add: fresh (#8717)

Signed-off-by: Owen-sz <owen@fyralabs.com>
This commit is contained in:
Owen Zimmerman
2025-12-27 19:49:57 -06:00
committed by GitHub
parent 68bce73a62
commit cbca2db543
3 changed files with 59 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "fresh.spec"
}
}
+53
View File
@@ -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 <owen@fyralabs.com>
%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 <owen@fyralabs.com> - 0.1.65-1
- Initial commit
+1
View File
@@ -0,0 +1 @@
rpm.version(gh("sinelaw/fresh"));