Name: webapp-edu Version: 1.0.0 Release: 1%{?dist} Summary: Webapps éducatives Firefox basées sur WebApp Manager License: MIT BuildArch: noarch Source0: webapp-sugarizer.png Source1: webapp-calculatice.png Source2: webapp-blockly-games.png Source3: webapp-leconjugueur.png %description Paquet source générant 4 webapps éducatives autonomes pour Firefox utilisant le profil sans barre de navigation de webapp-manager. # ============================================================================== # Sous-paquet 1 : Sugarizer # ============================================================================== %package -n webapp-sugarizer Summary: WebApp Sugarizer (Firefox) Requires: firefox Requires: webapp-manager %description -n webapp-sugarizer Application web autonome pour Sugarizer (https://try.sugarizer.org/) lancée dans Firefox via le profil isolé sans barre de navigation de webapp-manager. # ============================================================================== # Sous-paquet 2 : Calcul@TICE # ============================================================================== %package -n webapp-calculatice Summary: WebApp Calcul@TICE (Firefox) Requires: firefox Requires: webapp-manager %description -n webapp-calculatice Application web autonome pour Calcul@TICE (https://calculatice.ac-lille.fr/) lancée dans Firefox via le profil isolé sans barre de navigation de webapp-manager. # ============================================================================== # Sous-paquet 3 : Blockly Games # ============================================================================== %package -n webapp-blockly-games Summary: WebApp Blockly Games (Firefox) Requires: firefox Requires: webapp-manager %description -n webapp-blockly-games Application web autonome pour Blockly Games (https://blockly.games/) lancée dans Firefox via le profil isolé sans barre de navigation de webapp-manager. # ============================================================================== # Sous-paquet 4 : Le Conjugueur # ============================================================================== %package -n webapp-leconjugueur Summary: WebApp Le Conjugueur (Firefox) Requires: firefox Requires: webapp-manager %description -n webapp-leconjugueur Application web autonome pour Le Conjugueur (https://leconjugueur.lefigaro.fr/) lancée dans Firefox via le profil isolé sans barre de navigation de webapp-manager. # ============================================================================== # Installation # ============================================================================== %install install -d %{buildroot}%{_bindir} install -d %{buildroot}%{_datadir}/applications install -d %{buildroot}%{_datadir}/pixmaps # Fonction helper pour générer le lanceur et le fichier .desktop de chaque webapp create_webapp() { slug="$1" codename="$2" display_name="$3" comment="$4" url="$5" icon_src="$6" install -m 0644 "$icon_src" "%{buildroot}%{_datadir}/pixmaps/webapp-${slug}.png" cat < "%{buildroot}%{_bindir}/webapp-${slug}" #!/bin/sh set -e PROFILE_DIR="\$HOME/.local/share/ice/firefox/${codename}" if [ ! -d "\$PROFILE_DIR" ]; then mkdir -p "\$HOME/.local/share/ice/firefox" cp -r /usr/share/webapp-manager/firefox/profile "\$PROFILE_DIR" fi mkdir -p "\$PROFILE_DIR/chrome" cat <<'CSS' > "\$PROFILE_DIR/chrome/userChrome.css" #nav-bar, #PersonalToolbar, #identity-box, #tabbrowser-tabs, #firefox-view-button, #alltabs-button, #tabs-newtab-button { visibility: collapse !important; } CSS export XAPP_FORCE_GTKWINDOW_ICON="%{_datadir}/pixmaps/webapp-${slug}.png" exec firefox --class "WebApp-${codename}" --name "WebApp-${codename}" --profile "\$PROFILE_DIR" --no-remote "${url}" "\$@" EOF chmod 0755 "%{buildroot}%{_bindir}/webapp-${slug}" cat < "%{buildroot}%{_datadir}/applications/webapp-${slug}.desktop" [Desktop Entry] Version=1.0 Name=${display_name} Comment=${comment} Exec=%{_bindir}/webapp-${slug} Terminal=false X-MultipleArgs=false Type=Application Icon=%{_datadir}/pixmaps/webapp-${slug}.png Categories=GTK;Education; MimeType=text/html;text/xml;application/xhtml_xml; StartupWMClass=WebApp-${codename} StartupNotify=true X-WebApp-Browser=Firefox X-WebApp-URL=${url} X-WebApp-Isolated=true EOF } create_webapp "sugarizer" \ "Sugarizer" \ "Sugarizer" \ "Environnement d'apprentissage Sugarizer" \ "https://try.sugarizer.org/" \ "%{SOURCE0}" create_webapp "calculatice" \ "Calculatice" \ "Calcul@TICE" \ "Entraînement au calcul mental Calcul@TICE" \ "https://calculatice.ac-lille.fr/" \ "%{SOURCE1}" create_webapp "blockly-games" \ "BlocklyGames" \ "Blockly Games" \ "Jeux éducatifs de programmation Blockly Games" \ "https://blockly.games/" \ "%{SOURCE2}" create_webapp "leconjugueur" \ "LeConjugueur" \ "Le Conjugueur" \ "Conjugaison française Le Conjugueur" \ "https://leconjugueur.lefigaro.fr/" \ "%{SOURCE3}" # ============================================================================== # Fichiers par sous-paquet # ============================================================================== %files -n webapp-sugarizer %{_bindir}/webapp-sugarizer %{_datadir}/applications/webapp-sugarizer.desktop %{_datadir}/pixmaps/webapp-sugarizer.png %files -n webapp-calculatice %{_bindir}/webapp-calculatice %{_datadir}/applications/webapp-calculatice.desktop %{_datadir}/pixmaps/webapp-calculatice.png %files -n webapp-blockly-games %{_bindir}/webapp-blockly-games %{_datadir}/applications/webapp-blockly-games.desktop %{_datadir}/pixmaps/webapp-blockly-games.png %files -n webapp-leconjugueur %{_bindir}/webapp-leconjugueur %{_datadir}/applications/webapp-leconjugueur.desktop %{_datadir}/pixmaps/webapp-leconjugueur.png %changelog * Fri Nov 20 2026 Baptiste - 1.0.0-1 - Création initiale des 4 webapps éducatives Firefox (Sugarizer, Calcul@TICE, Blockly Games, Le Conjugueur)