%global debug_package %{nil} %global __os_install_post %{nil} # Electron app extracted from the upstream AppImage. Everything the app needs # travels under /opt/photon-studio, so bundled Chromium libraries must not # leak into system Provides/Requires; genuine system deps are declared below. %global __provides_exclude_from ^/opt/photon-studio/.*$ %global __requires_exclude_from ^/opt/photon-studio/.*$ Name: photon-studio Version: 0.1.43 Release: 1%{?dist} Summary: Offline image editor with native PSD support # No app-level license ships in the AppImage (only Electron/Chromium texts); # Photon Studio is gratis proprietary software (tenzen.studio sells a suite # around it). Same treatment as rootapp.spec in this repo. License: Proprietary URL: https://tenzen.studio Source0: https://downloads.tenzen.studio/photon/stable/linux/0.1.43/Photon-Studio-0.1.43-linux-x64.AppImage # sha256: 3a3b74b10c30831dfbb11ec8dcaececd451d1e6f7c9700064c1a47318e714441 ExclusiveArch: x86_64 BuildRequires: binutils BuildRequires: squashfs-tools BuildRequires: coreutils # Electron runtime deps (same Chromium base as openchamber/rootapp specs) Requires: gtk3 Requires: nss Requires: nspr Requires: alsa-lib Requires: libnotify Requires: xdg-utils Requires: at-spi2-core Requires: hicolor-icon-theme Requires: libXScrnSaver Requires: libXtst Requires: libX11 Requires: libxkbcommon Requires: mesa-libgbm Requires: mesa-libGL Requires: mesa-libEGL Requires: fontconfig Requires: freetype Requires: cups-libs Requires: dbus-libs Requires: libsecret Requires: systemd-libs Provides: photon-studio = %{version}-%{release} %description Photon Studio is an offline image editor with Photoshop-equivalent capabilities and native PSD/PSB support: layers, masks, adjustment layers, RAW development, local AI selections, and Photoshop shortcuts, brushes and scripts. Free, no account. %prep %setup -c -T # Extract the Type 2 AppImage (ELF section header offset method) OFFSET=$(LC_ALL=C readelf -h %{SOURCE0} | awk 'NR==13{e_shoff=$5} NR==18{e_shentsize=$5} NR==19{e_shnum=$5} END{print e_shoff+e_shentsize*e_shnum}') unsquashfs -q -d squashfs-root -o "$OFFSET" %{SOURCE0} chmod go-w squashfs-root %build # Nothing to compile. %install install -dm755 %{buildroot}/opt/photon-studio cp -ar squashfs-root/* %{buildroot}/opt/photon-studio/ install -dm755 %{buildroot}%{_bindir} cat > %{buildroot}%{_bindir}/photon-studio <<'WRAPPER_EOF' #!/bin/sh export APPDIR="/opt/photon-studio" exec /opt/photon-studio/AppRun "$@" WRAPPER_EOF chmod 755 %{buildroot}%{_bindir}/photon-studio install -Dm644 squashfs-root/usr/share/icons/hicolor/512x512/apps/photon-studio.png \ %{buildroot}%{_datadir}/icons/hicolor/512x512/apps/photon-studio.png # Upstream desktop entry runs AppRun directly; ours goes through the PATH # wrapper with the SUID sandbox intact (see %files %attr below). MimeTypes # kept: this is an image editor that opens PSD/RAW/photo formats. install -dm755 %{buildroot}%{_datadir}/applications/ cat > %{buildroot}%{_datadir}/applications/photon-studio.desktop < - 0.1.43-1 - Auto-update to upstream release 0.1.43