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"));