Name: hydex-desktop Version: 2026.09.11.094211 Release: 1%{?dist} Summary: Hydex for Linux License: Proprietary URL: https://github.com/mwheiss/hydex-desktop Source0: hydex-desktop-2026.09.11.094211-1-x86_64-payload.tar.zst ExclusiveArch: x86_64 BuildRequires: tar BuildRequires: zstd %global __requires_exclude_from ^/opt/hydex-desktop/.*$ %global __provides_exclude_from ^/opt/hydex-desktop/.*$ %global __os_install_post %{nil} %global __brp_strip %{nil} %global __brp_strip_static_archive %{nil} %global __brp_strip_comment_note %{nil} %global hydex_elf_suffix ()(64bit) Provides: chatgpt, codex, openai-codex, hydex, codex-code-mode-host, hydex-code-mode-host, codex-desktop Conflicts: chatgpt, codex, codex-bin, codex-desktop, hydex, hydex-bin, openai-codex, openai-codex-autoup-bin, openai-codex-bin Obsoletes: codex-desktop, hydex, hydex-bin, openai-codex-autoup-bin, openai-codex-bin Requires: polkit, curl, dpkg, nodejs, python3, systemd, xdg-utils, gnupg2 Requires: libasound.so.2%{hydex_elf_suffix}, libatk-bridge-2.0.so.0%{hydex_elf_suffix} Requires: libatk-1.0.so.0%{hydex_elf_suffix}, libatspi.so.0%{hydex_elf_suffix}, libcairo.so.2%{hydex_elf_suffix}, libcups.so.2%{hydex_elf_suffix} Requires: libdbus-1.so.3%{hydex_elf_suffix}, libexpat.so.1%{hydex_elf_suffix}, libgdk_pixbuf-2.0.so.0%{hydex_elf_suffix} Requires: libglib-2.0.so.0%{hydex_elf_suffix}, libgtk-3.so.0%{hydex_elf_suffix}, libnotify.so.4%{hydex_elf_suffix} Requires: libdrm.so.2%{hydex_elf_suffix}, libnspr4.so%{hydex_elf_suffix}, libnss3.so%{hydex_elf_suffix} Requires: libpango-1.0.so.0%{hydex_elf_suffix}, libssl.so.3%{hydex_elf_suffix}, libstdc++.so.6%{hydex_elf_suffix} Requires: libudev.so.1%{hydex_elf_suffix}, libusb-1.0.so.0%{hydex_elf_suffix}, libX11.so.6%{hydex_elf_suffix} Requires: libX11-xcb.so.1%{hydex_elf_suffix}, libxcb.so.1%{hydex_elf_suffix}, libxcb-dri3.so.0%{hydex_elf_suffix} Requires: libXcomposite.so.1%{hydex_elf_suffix}, libXdamage.so.1%{hydex_elf_suffix} Requires: libXext.so.6%{hydex_elf_suffix}, libXfixes.so.3%{hydex_elf_suffix}, libxkbcommon.so.0%{hydex_elf_suffix} Requires: libXrandr.so.2%{hydex_elf_suffix}, libgbm.so.1%{hydex_elf_suffix}, libGL.so.1%{hydex_elf_suffix} Requires: libgraphite2.so.3%{hydex_elf_suffix}, xz Recommends: zenity, kdialog %description Custom hydex-desktop distribution built from OpenAI's signed official Linux package. The complete official runtime, Hydex CLI, rg, and code-mode host are bundled. Local updates verify OpenAI's signed APT metadata and rebuild from the indexed Linux package. %prep : %build : %install rm -rf %{buildroot} mkdir -p %{buildroot} tar -xaf %{SOURCE0} -C %{buildroot} %files %defattr(-,root,root,-) /opt/hydex-desktop/ /etc/apparmor.d/hydex-desktop /usr/bin/hydex-desktop /usr/bin/codex-desktop /usr/bin/chatgpt /usr/bin/codex /usr/bin/codex-code-mode-host /usr/bin/hydex /usr/bin/hydex-code-mode-host /usr/bin/codex-update-manager /usr/bin/hydex-update-manager /usr/lib/systemd/user/codex-update-manager.service /usr/share/applications/hydex-desktop.desktop /usr/share/applications/chatgpt.desktop /usr/share/icons/hicolor/256x256/apps/hydex-desktop.png /usr/share/icons/hicolor/256x256/apps/chatgpt.png /usr/share/polkit-1/actions/com.github.mwheiss.hydex-desktop.update.policy %post if command -v update-desktop-database >/dev/null 2>&1; then update-desktop-database /usr/share/applications >/dev/null 2>&1 || true fi if command -v aa-enabled >/dev/null 2>&1 && command -v apparmor_parser >/dev/null 2>&1 && aa-enabled --quiet && [ -f /etc/apparmor.d/hydex-desktop ]; then apparmor_parser -r -W -T /etc/apparmor.d/hydex-desktop >/dev/null 2>&1 || true fi DESKTOP_ENTRY_DOCTOR=/opt/hydex-desktop/.codex-linux/hydex-desktop-entry-doctor.sh if [ -f "$DESKTOP_ENTRY_DOCTOR" ]; then . "$DESKTOP_ENTRY_DOCTOR" codex_desktop_repair_system_package_shadow_entries hydex-desktop || true fi SERVICE_HELPER=/opt/hydex-desktop/update-builder/packaging/linux/codex-update-manager-user-service.sh if [ -f "$SERVICE_HELPER" ]; then . "$SERVICE_HELPER" if [ "${1:-0}" -eq 1 ]; then codex_ensure_user_service_running || true else codex_start_enabled_user_service || true fi fi %preun PERSISTENT_APP_DIR=/opt/hydex-desktop PERSISTENT_SERVICE_HELPER=$PERSISTENT_APP_DIR/.codex-linux/features/persistent-app-server/package-lifecycle.sh REMOTE_TRUST_SERVICE_HELPER=$PERSISTENT_APP_DIR/.codex-linux/features/remote-trust-race-workaround/package-lifecycle.sh if [ $1 -eq 0 ] && [ -f "$PERSISTENT_SERVICE_HELPER" ]; then . "$PERSISTENT_SERVICE_HELPER" codex_persistent_remove_all_users || true fi if [ $1 -eq 0 ] && [ -f "$REMOTE_TRUST_SERVICE_HELPER" ]; then . "$REMOTE_TRUST_SERVICE_HELPER" codex_remote_trust_remove_all_users || true fi SERVICE_HELPER=/opt/hydex-desktop/update-builder/packaging/linux/codex-update-manager-user-service.sh [ -f "$SERVICE_HELPER" ] && . "$SERVICE_HELPER" if [ $1 -eq 0 ] && [ -f "$SERVICE_HELPER" ]; then codex_cleanup_user_service stop || true codex_cleanup_user_service disable || true fi %postun SERVICE_HELPER=/opt/hydex-desktop/update-builder/packaging/linux/codex-update-manager-user-service.sh if [ -f "$SERVICE_HELPER" ]; then . "$SERVICE_HELPER" codex_reload_user_managers || true fi %changelog * Fri Sep 11 2026 Hydex for Linux Maintainers - Publish validated Hydex Desktop payload through COPR