Name: mpv Version: 0.41.0 Release: 1%{?dist} Summary: Media player based on MPlayer and mplayer2 (ffmpeg-free build) License: GPL-2.0-or-later AND LGPL-2.1-or-later URL: https://mpv.io Source0: https://github.com/mpv-player/mpv/archive/refs/tags/v%{version}.tar.gz # Minimal build for headless/ASCII playback (the hollywood use case): # only the libcaca video output is enabled; every GL/Wayland/X11/audio # stack is disabled. Built against ffmpeg-free, so it stays out of # RPM Fusion and plays the patent-free codecs only. BuildRequires: meson BuildRequires: gcc BuildRequires: ninja-build BuildRequires: ffmpeg-free-devel BuildRequires: libass-devel BuildRequires: libcaca-devel BuildRequires: libplacebo-devel BuildRequires: uchardet-devel BuildRequires: pkg-config # CS10's gcc linker script points at libatomic.so.1.2.0, which is only # present when the runtime package is installed BuildRequires: libatomic # ELF binaries from a non-RPM build can lack a build-id note on EPEL %global _missing_build_ids_terminate_build 0 %global debug_package %{nil} %description mpv is a media player based on MPlayer and mplayer2. It supports a wide variety of video file formats, audio and video codecs, and subtitle types. This build is trimmed for terminal/ASCII playback (libcaca video output) against ffmpeg-free: no graphical outputs, no audio device outputs, and only patent-free codecs. For the full-featured player use the RPM Fusion package. %prep %autosetup -n mpv-%{version} -p1 %build # the Fedora meson macro forces auto-features=enabled, which drags in every # OS-specific and optional feature (cocoa/appleframeworks, win32, ...) and # cannot be overridden (argument concatenation); drive meson directly on the # same builddir the meson build/install helpers use CFLAGS="%{build_cflags}" LDFLAGS="%{build_ldflags}" \ meson setup %{_vpath_builddir} \ --auto-features=disabled \ --prefix=%{_prefix} \ -Dgpl=true \ -Dgl=disabled \ -Dcplayer=true \ -Dlibmpv=false \ -Dtests=false \ -Dcaca=enabled \ -Duchardet=enabled \ -Dzlib=enabled \ -Diconv=enabled %meson_build %install %meson_install %check %{buildroot}%{_bindir}/mpv --version >/dev/null %files %license LICENSE.GPL LICENSE.LGPL %{_bindir}/mpv %{_datadir}/applications/mpv.desktop %{_datadir}/icons/hicolor/*/apps/mpv*.png %{_datadir}/icons/hicolor/scalable/apps/mpv.svg %{_datadir}/icons/hicolor/symbolic/apps/mpv-symbolic.svg %{_datadir}/metainfo/mpv.metainfo.xml %{_datadir}/bash-completion/completions/mpv %{_datadir}/zsh/site-functions/_mpv %{_datadir}/fish/vendor_completions.d/mpv.fish %doc %{_datadir}/doc/mpv/ %changelog * Sun Oct 18 2026 Caio Bruno - 0.41.0-1 - Initial package: minimal libcaca/ffmpeg-free build for hollywood