%global debug_package %{nil} %define oname MystiQ Name: mystiq Version: 20.03.23 Release: %autorelease Summary: Audio/Video converter License: GPLv3 Group: Video Url: https://github.com/swl-x/MystiQ/ Source0: https://github.com/swl-x/MystiQ/archive/v%{version}.tar.gz %if 0%{?is_opensuse} BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt5Gui) BuildRequires: pkgconfig(Qt5Network) BuildRequires: pkgconfig(Qt5Test) BuildRequires: pkgconfig(Qt5X11Extras) BuildRequires: pkgconfig(Qt5DBus) BuildRequires: pkgconfig(Qt5Qml) BuildRequires: pkgconfig(Qt5Svg) BuildRequires: pkgconfig(Qt5Widgets) BuildRequires: pkgconfig(Qt5Multimedia) BuildRequires: pkgconfig(Qt5OpenGL) %endif %if 0%{?centos} || 0%{?fedora} BuildRequires: qt5-qtbase-devel BuildRequires: qt5-qtdeclarative-devel BuildRequires: qt5-qtquickcontrols BuildRequires: qt5-qtsvg-devel BuildRequires: qt5-qtmultimedia-devel BuildRequires: desktop-file-utils BuildRequires: pkgconfig(alsa) BuildRequires: pkgconfig(x11) %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 %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}-%{version} chmod -x mystiq.desktop icons/mystiq.svg %if 0%{?is_opensuse} %build qmake-qt5 mystiq.pro make USE_LIBNOTIFY=1 -j$(nproc) VERBOSE=1 %endif %if 0%{?centos} || 0%{?fedora} || 0%{?rhel} qmake-qt5 mystiq.pro make USE_LIBNOTIFY=1 -j$(nproc) VERBOSE=1 %endif %install %if 0%{?is_opensuse} %qmake5_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}/%{name} %{_datadir}/applications/*.desktop %{_datadir}/metainfo/mystiq.appdata.xml %{_datadir}/icons/hicolor/scalable/apps/mystiq.svg %{_mandir}/man1/*.1.gz %changelog %autochangelog