File gekoOS-scripts.spec of Package gekoOS-scripts

Name:           gekoOS-scripts
Version:        1.0.0
Release:        1
Summary:        Backend scripts for the gekoOS Graphical Configurator.
License:        GPL-3.0-or-later
Source:         gekoOS-scripts-1.0.0.tar.gz
BuildArch:      noarch
Requires:       distrobox
Requires:       transactional-update

%description
This package contains the helper scripts required by the gekoOS Graphical
Configurator (AGC) to perform administrative tasks via Polkit.

%prep
# Décompresse l'archive (obligatoire si Source est utilisé)
%setup -q

%install
# Crée le répertoire cible
mkdir -p %{buildroot}/usr/local/bin/gekoos/

# Copie les scripts (qui sont maintenant dans le dossier décompressé)
# IMPORTANT : Adaptez le chemin si vos scripts ne sont pas à la racine de l'archive !
# Si l'archive crée un dossier gekoOS-scripts-1.0.0, les scripts sont à la racine de ce dossier après %setup.
install -m 755 update-system.sh %{buildroot}/usr/local/bin/gekoos/
install -m 755 install-davinci.sh %{buildroot}/usr/local/bin/gekoos/

%files
%dir /usr/local/bin/gekoos
/usr/local/bin/gekoos/update-system.sh
/usr/local/bin/gekoos/install-davinci.sh
openSUSE Build Service is sponsored by