%global debug_package %{nil} Name: qtcord Version: 0.0.25 %global forgeurl https://github.com/mak448a/Qtcord %global commit 6978184c91e2479e1b9bde23858b741ac77ab535 %global date 20260730 %forgemeta %global app_id io.github.mak448a.QTCord Release: 3%{?dist} Summary: Lightweight, native Discord client built with Python and Qt License: MIT URL: %{forgeurl} Source: %{forgesource} BuildRequires: desktop-file-utils BuildRequires: gettext BuildRequires: hicolor-icon-theme BuildRequires: libappstream-glib BuildRequires: python3-devel BuildRequires: python3-pip BuildRequires: python3-setuptools BuildRequires: python3-wheel %{?rhel:BuildRequires: pyproject-rpm-macros} Requires: python3-keyring Requires: python3-platformdirs Requires: python3-pyside6 Requires: python3-requests Requires: python3-shiboken6 Requires: python3-websocket-client Requires: python3-xxhash Requires: qt6-qtbase Recommends: python3-cffi Recommends: python3-cryptography Recommends: python3-jaraco-classes Recommends: python3-jaraco-context Recommends: python3-jaraco-functools Recommends: python3-jeepney Recommends: python3-more-itertools Recommends: python3-secretstorage %description Qtcord aims to provide a lightweight experience for Discord without the overhead of a webview. Features: - Lightweight & Native: Built with PySide6 (Qt) for a snappy interface. - Cross-Platform: Works on Windows, macOS, and Linux. - Privacy Focused: Runs without telemetry, tracking, or bloat. - Work in progress: Supports servers, direct messages, channels, profile pictures, and server icons. %files %license licenses/* %doc README.md %{_bindir}/%{app_id} %{_datadir}/%{name} %{_datadir}/applications/%{app_id}.desktop %{_datadir}/icons/hicolor/scalable/apps/%{app_id}.svg %{_metainfodir}/%{app_id}.metainfo.xml #------------------------------------------------------------------ %prep %forgeautosetup -p1 sed -i "s!/app/bin!%{_datadir}/%{name}!g" src/flatpak_builder/%{app_id} %build %pyproject_wheel %install %pyproject_install mkdir -p %{buildroot}%{_bindir} %{buildroot}%{_datadir}/%{name}/assets mv %{buildroot}%{python3_sitelib}/* %{buildroot}%{_datadir}/%{name}/ rm -rf %{buildroot}/lib pushd src install -D emoji.json -t %{buildroot}%{_datadir}/%{name}/ install -D ui/*.ui -t %{buildroot}%{_datadir}/%{name}/ui/ pushd assets install -Dm 644 *.png -t %{buildroot}%{_datadir}/%{name}/assets/ install -Dm 644 icon.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{app_id}.svg popd pushd flatpak_builder install -Dm 755 %{app_id} %{buildroot}%{_bindir}/%{app_id} install -Dm 644 %{app_id}.metainfo.xml -t %{buildroot}%{_datadir}/%{name}/flatpak_builder/ install -Dm 644 %{app_id}.metainfo.xml %{buildroot}%{_metainfodir}/%{app_id}.metainfo.xml install -Dm 644 %{app_id}.desktop %{buildroot}%{_datadir}/applications/%{app_id}.desktop popd popd %check desktop-file-validate %{buildroot}%{_datadir}/applications/%{app_id}.desktop appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{app_id}.metainfo.xml #------------------------------------------------------------------ %changelog * Wed Oct 14 2026 Hazel Bunny - 0.0.25-3 - initial package