From 60f6f1291d00d7ddfe329e575b585c1a4371c90b Mon Sep 17 00:00:00 2001 From: madonuko Date: Tue, 16 Jun 2026 19:30:38 +0800 Subject: [PATCH] add: ente ensu enteauth resolves #13101 --- anda/suites/ente/cli/anda.hcl | 5 ++ .../ente/cli/golang-github-ente-io-cli.spec | 72 +++++++++++++++++++ anda/suites/ente/cli/update.rhai | 10 +++ anda/suites/ente/ensu/anda.hcl | 5 ++ anda/suites/ente/ensu/ensu.desktop | 9 +++ anda/suites/ente/ensu/ensu.spec | 40 +++++++++++ anda/suites/ente/ensu/update.rhai | 10 +++ anda/suites/ente/enteauth/anda.hcl | 8 +++ anda/suites/ente/enteauth/enteauth.spec | 35 +++++++++ anda/suites/ente/enteauth/update.rhai | 10 +++ 10 files changed, 204 insertions(+) create mode 100644 anda/suites/ente/cli/anda.hcl create mode 100644 anda/suites/ente/cli/golang-github-ente-io-cli.spec create mode 100644 anda/suites/ente/cli/update.rhai create mode 100644 anda/suites/ente/ensu/anda.hcl create mode 100644 anda/suites/ente/ensu/ensu.desktop create mode 100644 anda/suites/ente/ensu/ensu.spec create mode 100644 anda/suites/ente/ensu/update.rhai create mode 100644 anda/suites/ente/enteauth/anda.hcl create mode 100644 anda/suites/ente/enteauth/enteauth.spec create mode 100644 anda/suites/ente/enteauth/update.rhai diff --git a/anda/suites/ente/cli/anda.hcl b/anda/suites/ente/cli/anda.hcl new file mode 100644 index 0000000000..96db180116 --- /dev/null +++ b/anda/suites/ente/cli/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "golang-github-ente-io-cli.spec" + } +} diff --git a/anda/suites/ente/cli/golang-github-ente-io-cli.spec b/anda/suites/ente/cli/golang-github-ente-io-cli.spec new file mode 100644 index 0000000000..d0cba3ba2a --- /dev/null +++ b/anda/suites/ente/cli/golang-github-ente-io-cli.spec @@ -0,0 +1,72 @@ +# Generated by go2rpm 1.19.0 +%bcond check 1 +%bcond bootstrap 0 + +%if %{with bootstrap} +%global debug_package %{nil} +%endif + +%if %{with bootstrap} +%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^golang\\(.*\\)$ +%endif + +# https://github.com/ente-io/ente +%global goipath github.com/ente-io/ente +%global tag cli-v0.2.3 +Version: %(echo %tag | sed 's/^cli-v//') + +%gometa -f + +%global common_description %{expand: +The Ente CLI is a Command Line Utility for exporting data from Ente. It also does a few more things, for example, you can use it to decrypt the export from Ente Auth.} + +%global golicenses LICENSE +%global godocs CODE_OF_CONDUCT.md CONTRIBUTING.md cli/README.md SECURITY.md SUPPORT.md +Name: ente +Release: %autorelease +Summary: 💚 End-to-end encrypted cloud for everything +Packager: madonuko + +License: AGPL-3.0-only +URL: ente.com +Source: %{gosource} + +%description %{common_description} + +%gopkg + +%prep +%goprep -A +%autopatch -p1 + +%if %{without bootstrap} +%build +%go_build_online -o %{gobuilddir}/bin/ente %{goipath}/cli +%endif + +%install +%gopkginstall +%if %{without bootstrap} +install -m 0755 -vd %{buildroot}%{_bindir} +install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ +%endif + +%if %{without bootstrap} +%if %{with check} +%check +%gocheck +%endif +%endif + +%if %{without bootstrap} +%files +%license LICENSE +%doc CODE_OF_CONDUCT.md CONTRIBUTING.md README.md SECURITY.md SUPPORT.md cli/README.md +%{_bindir}/ente +%endif + +%gopkgfiles + +%changelog +* Tue Jun 16 2026 madonuko - 0.2.3-1 +- Initial package. diff --git a/anda/suites/ente/cli/update.rhai b/anda/suites/ente/cli/update.rhai new file mode 100644 index 0000000000..47355348ba --- /dev/null +++ b/anda/suites/ente/cli/update.rhai @@ -0,0 +1,10 @@ +let tagobjs = get("https://api.github.com/repos/ente-io/ente/tags").json_arr(); +for tagobj in tagobjs { + if tagobj.name.starts_with("cli-v") { + rpm.global("tag", tagobj.name); + if rpm.changed() { + rpm.release(); + break; + } + } +} diff --git a/anda/suites/ente/ensu/anda.hcl b/anda/suites/ente/ensu/anda.hcl new file mode 100644 index 0000000000..cd4f3517a0 --- /dev/null +++ b/anda/suites/ente/ensu/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "ensu.spec" + } +} diff --git a/anda/suites/ente/ensu/ensu.desktop b/anda/suites/ente/ensu/ensu.desktop new file mode 100644 index 0000000000..36750d6061 --- /dev/null +++ b/anda/suites/ente/ensu/ensu.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=Ensu +Comment=Ensu Desktop App +Exec=ensu +Icon=io.ente.ensu +Terminal=false +Type=Application +Categories=Utility; +StartupNotify=true diff --git a/anda/suites/ente/ensu/ensu.spec b/anda/suites/ente/ensu/ensu.spec new file mode 100644 index 0000000000..d10f35209e --- /dev/null +++ b/anda/suites/ente/ensu/ensu.spec @@ -0,0 +1,40 @@ +%global tag ensu-v0.1.17 +%global appid io.ente.ensu +%global developer "Ente" +%global org "io.ente" +%global appstream_component desktop-application + +Name: ensu +Version: %(echo %tag | sed 's/^ensu-v//') +Release: 1%?dist +Summary: Private, personal LLM app that runs on your device and grows with you over time +License: AGPL-3.0-only +URL: https://ente.com/ensu +Source0: https://github.com/ente-io/ente/archive/refs/tags/%tag.tar.gz +Source1: ensu.desktop +Packager: madonuko +BuildRequires: cmake %tauri_buildrequires + +%description +%summary. + +%prep +%autosetup -n ente-%tag +cd rust/apps/ensu +%tauri_prep + +%build +cd rust/apps/ensu +%npm_build -B +install -Dpm755 src-tauri/target/rpm/ensu -t %buildroot%_bindir +%desktop_file_install %{S:1} +install -Dpm644 src-tauri/icons/icon.png %buildroot%_hicolordir/1024x1024/apps/ensu.png +%terra_appstream + +%files +%doc README.md CONTRIBUTING.md CODE_OF_CONDUCT.md SECURITY.md SUPPORT.md +%license LICENSE +%_bindir/ensu +%_appsdir/ensu.desktop +%_hicolordir/*/apps/ensu.png +%_metainfodir/%appid.metainfo.xml diff --git a/anda/suites/ente/ensu/update.rhai b/anda/suites/ente/ensu/update.rhai new file mode 100644 index 0000000000..684ad7048e --- /dev/null +++ b/anda/suites/ente/ensu/update.rhai @@ -0,0 +1,10 @@ +let tagobjs = get("https://api.github.com/repos/ente-io/ente/tags").json_arr(); +for tagobj in tagobjs { + if tagobj.name.starts_with("ensu-v") { + rpm.global("tag", tagobj.name); + if rpm.changed() { + rpm.release(); + break; + } + } +} diff --git a/anda/suites/ente/enteauth/anda.hcl b/anda/suites/ente/enteauth/anda.hcl new file mode 100644 index 0000000000..070b14b41c --- /dev/null +++ b/anda/suites/ente/enteauth/anda.hcl @@ -0,0 +1,8 @@ +project pkg { + rpm { + spec = "enteauth.spec" + } + labels { + mock = 1 # flutter requires root + } +} diff --git a/anda/suites/ente/enteauth/enteauth.spec b/anda/suites/ente/enteauth/enteauth.spec new file mode 100644 index 0000000000..b6ed679ba9 --- /dev/null +++ b/anda/suites/ente/enteauth/enteauth.spec @@ -0,0 +1,35 @@ +%global appid io.ente.enteauth +%global tag auth-v4.4.23 + +Name: enteauth +Version: %(echo %tag | sed 's/^auth-v//') +Release: 1%{?dist} +Summary: 2FA app with free end-to-end encrypted backup and sync +License: AGPL-3.0-only +URL: https://ente.com +Source0: https://github.com/ente-io/ente/archive/refs/tags/%tag.tar.gz +Packager: madonuko +BuildRequires: flutter + +%description +%summary. + +%prep +%autosetup -n ente-%tag + +%build +flutter config --enable-linux-desktop +flutter build linux --release + +%install + +%terra_appstream mobile/apps/auth/linux/packaging/enteauth.appdata.xml +%desktop_file_install mobile/apps/auth/linux/packaging/enteauth.desktop + +%files +%doc CODE_OF_CONDUCT.md CONTRIBUTING.md README.md SECURITY.md SUPPORT.md README.md +%license LICENSE + +%changelog +* Tue Jun 16 2026 madonuko - 4.4.23-1 +- Initial package. diff --git a/anda/suites/ente/enteauth/update.rhai b/anda/suites/ente/enteauth/update.rhai new file mode 100644 index 0000000000..973fae733a --- /dev/null +++ b/anda/suites/ente/enteauth/update.rhai @@ -0,0 +1,10 @@ +let tagobjs = get("https://api.github.com/repos/ente-io/ente/tags").json_arr(); +for tagobj in tagobjs { + if tagobj.name.starts_with("auth-v") { + rpm.global("tag", tagobj.name); + if rpm.changed() { + rpm.release(); + break; + } + } +}