diff --git a/anda/apps/webapp-manager/anda.hcl b/anda/apps/webapp-manager/anda.hcl new file mode 100644 index 0000000000..c921f54ac4 --- /dev/null +++ b/anda/apps/webapp-manager/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "webapp-manager.spec" + } +} diff --git a/anda/apps/webapp-manager/update.rhai b/anda/apps/webapp-manager/update.rhai new file mode 100644 index 0000000000..b219e12e9b --- /dev/null +++ b/anda/apps/webapp-manager/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("linuxmint/webapp-manager")); diff --git a/anda/apps/webapp-manager/webapp-manager.spec b/anda/apps/webapp-manager/webapp-manager.spec new file mode 100644 index 0000000000..9334bbc180 --- /dev/null +++ b/anda/apps/webapp-manager/webapp-manager.spec @@ -0,0 +1,70 @@ +Name: webapp-manager +Version: 1.4.5 +Release: 1%{?dist} +Summary: Web Application Manager +License: GPL-3.0-or-later +URL: https://github.com/linuxmint/webapp-manager +Source: %{url}/archive/refs/tags/%{version}.tar.gz +BuildArch: noarch + +Requires: python3-beautifulsoup4 +Requires: python3-configobj +Requires: python3-gobject +Requires: python3-pillow +Requires: python3-setproctitle +Requires: python3-tldextract +Requires: xapps + +BuildRequires: gettext +BuildRequires: make +BuildRequires: python3-devel + +Packager: metcya + +%description +Launch websites as if they were apps. + +%prep +%autosetup -n %{name}-%{version} + +%build +%make_build buildmo + +%install +mkdir -p %{buildroot}%{_datadir}/locale +cp -r usr/share/locale/* %{buildroot}%{_datadir}/locale +install -Dm 755 usr/bin/%{name} -t %{buildroot}%{_bindir} +install -Dm 755 usr/lib/%{name}/*.py -t %{buildroot}%{_libdir}/%{name}/ +install -Dm 644 usr/share/applications/%{name}.desktop -t %{buildroot}%{_datadir}/applications +install -Dm 644 usr/share/desktop-directories/webapps-webapps.directory -t %{buildroot}%{_datadir}/desktop-directories/webapps-webapps.directory +install -Dm 644 usr/share/glib-2.0/schemas/org.x.%{name}.gschema.xml -t %{buildroot}%{_datadir}/glib-2.0/schemas +install -Dm 644 usr/share/icons/hicolor/scalable/apps/webapp-manager.svg -t %{buildroot}%{_scalableiconsdir} +install -Dm 644 usr/share/icons/hicolor/scalable/categories/applications-webapps.svg -t %{buildroot}%{_hicolordir}/scalable/categories +install -Dm 644 usr/share/%{name}/*.ui -t %{buildroot}%{_datadir}/%{name} +install -Dm 644 usr/share/%{name}/firefox/userChrome-with-navbar.css -t %{buildroot}%{_datadir}/%{name}/firefox +install -Dm 644 usr/share/%{name}/firefox/profile/{places.sqlite,search.json.mozlz4,user.js} -t %{buildroot}%{_datadir}/%{name}/firefox/profile +install -Dm 644 usr/share/%{name}/firefox/profile/chrome/userChrome.css -t %{buildroot}%{_datadir}/%{name}/firefox/profile/chrome +install -Dm 644 etc/xdg/menus/applications-merged/webapps.menu -t %{buildroot}%{_sysconfdir}/xdg/menus/applications-merged + +%files +%doc README.md +%license LICENSE +%{_bindir}/%{name} +%{_libdir}/%{name}/*.py +%{_appsdir}/%{name}.desktop +%{_datadir}/desktop-directories/webapps-webapps.directory +%{_datadir}/glib-2.0/schemas/org.x.%{name}.gschema.xml +%{_scalableiconsdir}/%{name}.svg +%{_hicolordir}/scalable/categories/applications-webapps.svg +%{_datadir}/%{name}/ +%{_sysconfdir}/xdg/menus/applications-merged/webapps.menu + +%dnl %find_lang does not work because the upstream Makefile does not place them in the right spot. +%{_datadir}/locale/*/*/webapp-manager.mo + +%changelog +* Mon Dec 22 2025 Owen Zimmerman +- Build fixes + +* Fri Dec 19 2025 metcya +- Port to Terra