%global debug_package %{nil} %global commit 8f7ae009137d43c01e0173fc95fd6ce7c67a1a5a %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global git_date 20240612T025036Z %global tag 20.03.23 %define oname MystiQ Name: mystiq-git Version: %{tag} Release: 1.%{git_date}git%{shortcommit}%{?dist} Summary: Audio/Video converter License: GPLv3 Group: Video Url: https://github.com/swl-x/MystiQ/ Source0: https://github.com/swl-x/MystiQ/archive/%{commit}.tar.gz %if 0%{?is_opensuse} || 0%{?centos} || 0%{?fedora} BuildRequires: pkgconfig(Qt6Core) BuildRequires: pkgconfig(Qt6Gui) BuildRequires: pkgconfig(Qt6Platform) BuildRequires: pkgconfig(Qt6Network) BuildRequires: pkgconfig(Qt6Test) BuildRequires: pkgconfig(Qt6DBus) BuildRequires: pkgconfig(Qt6Qml) BuildRequires: pkgconfig(Qt6Quick) BuildRequires: pkgconfig(Qt6QuickWidgets) BuildRequires: pkgconfig(Qt6Svg) BuildRequires: pkgconfig(Qt6Widgets) BuildRequires: pkgconfig(Qt6Multimedia) BuildRequires: pkgconfig(Qt6MultimediaWidgets) BuildRequires: pkgconfig(Qt6OpenGL) # Note: Qt6X11Extras no longer exists — equivalent APIs moved into Qt6Gui %endif %if 0%{?centos} || 0%{?fedora} BuildRequires: desktop-file-utils BuildRequires: qt6-rpm-macros %endif %if 0%{?is_opensuse} # openSUSE: ffmpeg major versions are split (e.g., ffmpeg-7 or ffmpeg-8) # Prefer ffmpeg-8 if available, fallback to ffmpeg-7 Requires: (ffmpeg-8 or ffmpeg-7) %endif %if 0%{?fedora} || 0%{?rhel} || 0%{?centos} # Fedora side: ffmpeg-free is default, but prefer real ffmpeg if available Requires: (ffmpeg or ffmpeg-free) %endif Requires: sox # Conflict with stable version of the package. Conflicts: mystiq %description MystiQ is a GUI for FFmpeg, a powerful media converter. FFmpeg can read audio and video files in various formats and convert them into other formats. MystiQ features an intuitive graphical interface and a rich set of presets to help you convert media files within a few clicks. Advanced users can also adjust conversion parameters in detail. #----------------------------------------------------------------------------- %prep %setup -qn %{oname}-%{commit} chmod -x mystiq.desktop icons/mystiq.svg %if 0%{?is_opensuse} %build qmake6 mystiq.pro make USE_LIBNOTIFY=1 -j$(nproc) VERBOSE=1 %endif %if 0%{?centos} || 0%{?fedora} || 0%{?rhel} %qmake_qt6 mystiq.pro make USE_LIBNOTIFY=1 -j$(nproc) VERBOSE=1 %endif %install %if 0%{?is_opensuse} %qmake6_install %endif %if 0%{?centos} || 0%{?fedora} || 0%{?rhel} %make_install INSTALL_ROOT=%{buildroot} %endif %files %if 0%{?is_opensuse} %defattr(-,root,root,-) %endif %doc README.md CONTRIBUTING.md %license LICENSE %{_bindir}/mystiq %{_datadir}/applications/*.desktop %{_datadir}/metainfo/mystiq.appdata.xml %{_datadir}/icons/hicolor/scalable/apps/mystiq.svg %{_mandir}/man1/*.1.gz %changelog %if 0%{?centos} || 0%{?fedora} || 0%{?rhel} %autochangelog %else * Sun Oct 26 2025 Jack Greiner - 20.03.23-1.20240612T025036Zgit8f7ae00 - Create git package %endif