Compare commits

...

No commits in common. 'i8cr' and 'epel9' have entirely different histories.
i8cr ... epel9

2
.gitignore vendored

@ -1 +1 @@
SOURCES/mpv-0.34.1.tar.gz
/mpv-*.tar.gz

@ -1 +0,0 @@
ab1838641e4de3c897364bf521f2798d8819d9e0 SOURCES/mpv-0.34.1.tar.gz

@ -1,20 +0,0 @@
--- a/audio/out/ao_sdl.c
+++ b/audio/out/ao_sdl.c
@@ -28,7 +28,6 @@
#include "options/m_option.h"
#include "osdep/timer.h"
-#include <SDL.h>
struct priv
{
@@ -36,6 +35,8 @@
float buflen;
};
+
+#include <SDL.h>
static const int fmtmap[][2] = {
{AF_FORMAT_U8, AUDIO_U8},

@ -1,101 +1,81 @@
Name: mpv
Version: 0.34.1
Version: 0.37.0
Release: 2%{?dist}
License: GPLv2+ and LGPLv2+
License: GPL-2.0-or-later AND LGPL-2.1-or-later
Summary: Movie player playing most video formats and DVDs
URL: https://%{name}.io/
Source0: https://github.com/%{name}-player/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
# Fix ppc as upstream refuse to fix the issue
# https://github.com/mpv-player/mpv/issues/3776
Patch1: ppc_fix.patch
BuildRequires: pkgconfig(alsa)
BuildRequires: desktop-file-utils
BuildRequires: gcc
BuildRequires: libappstream-glib
BuildRequires: libatomic
BuildRequires: meson
BuildRequires: python3-docutils
BuildRequires: perl(Encode)
BuildRequires: perl(Math::BigInt)
BuildRequires: perl(Math::BigRat)
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(caca)
BuildRequires: pkgconfig(dvdnav)
BuildRequires: pkgconfig(egl)
BuildRequires: pkgconfig(enca)
BuildRequires: pkgconfig(libavutil) >= 56.12.100
BuildRequires: pkgconfig(libavcodec) >= 58.16.100
BuildRequires: pkgconfig(libavformat) >= 58.9.100
BuildRequires: pkgconfig(libswscale) >= 5.0.101
BuildRequires: pkgconfig(libavfilter) >= 7.14.100
BuildRequires: pkgconfig(libswresample) >= 3.0.100
BuildRequires: pkgconfig(ffnvcodec)
BuildRequires: pkgconfig(gbm)
BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(jack)
BuildRequires: pkgconfig(mujs)
BuildRequires: pkgconfig(uchardet) >= 0.0.5
BuildRequires: pkgconfig(rubberband)
BuildRequires: pkgconfig(libguess)
%if 0%{?fedora}
BuildRequires: libshaderc-devel
BuildRequires: pkgconfig(vulkan)
BuildRequires: pkgconfig(libplacebo)
%else
%ifarch x86_64
BuildRequires: pkgconfig(vulkan)
%endif
%endif
BuildRequires: pkgconfig(lcms2)
%if 0%{?fedora} > 30 || 0%{?rhel} > 8
BuildRequires: pkgconfig(libarchive) >= 3.4.0
%endif
BuildRequires: pkgconfig(libass)
BuildRequires: pkgconfig(libavcodec) >= 59.27.100
BuildRequires: pkgconfig(libavdevice) >= 58.13.100
BuildRequires: pkgconfig(libavfilter) >= 7.110.100
BuildRequires: pkgconfig(libavformat) >= 59.24.100
BuildRequires: pkgconfig(libavutil) >= 57.24.100
BuildRequires: pkgconfig(libbluray)
BuildRequires: pkgconfig(libcdio)
BuildRequires: pkgconfig(libcdio_paranoia)
BuildRequires: pkgconfig(libdrm)
BuildRequires: pkgconfig(libjpeg)
BuildRequires: pkgconfig(libpipewire-0.3) >= 0.3.19
# Explictily build against libplacebo6 rhbz#2264138
BuildRequires: (pkgconfig(libplacebo) >= 6 with pkgconfig(libplacebo) < 7)
BuildRequires: pkgconfig(libpulse)
BuildRequires: pkgconfig(libswresample) >= 3.9.100
BuildRequires: pkgconfig(libswscale) >= 5.9.100
BuildRequires: pkgconfig(libva)
BuildRequires: pkgconfig(lua-5.1)
BuildRequires: pkgconfig(mujs)
BuildRequires: pkgconfig(openal)
BuildRequires: pkgconfig(rubberband)
BuildRequires: pkgconfig(sdl2)
BuildRequires: pkgconfig(vdpau)
%ifarch x86_64
%if 0%{?fedora} || 0%{?rhel} > 7
BuildRequires: pkgconfig(shaderc)
BuildRequires: pkgconfig(uchardet) >= 0.0.5
BuildRequires: pkgconfig(vapoursynth)
%endif
%endif
BuildRequires: waf-python3
BuildRequires: pkgconfig(vdpau)
BuildRequires: pkgconfig(vulkan)
BuildRequires: pkgconfig(wayland-client)
BuildRequires: pkgconfig(wayland-cursor)
BuildRequires: pkgconfig(wayland-egl)
BuildRequires: pkgconfig(wayland-protocols)
BuildRequires: pkgconfig(wayland-scanner)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xdamage)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xinerama)
BuildRequires: pkgconfig(xkbcommon)
BuildRequires: pkgconfig(xpresent)
BuildRequires: pkgconfig(xrandr)
BuildRequires: pkgconfig(xscrnsaver)
BuildRequires: pkgconfig(xv)
BuildRequires: pkgconfig(zimg)
# Requires zimg version >= 2.9
BuildRequires: pkgconfig(zimg) >= 2.9
BuildRequires: pkgconfig(zlib)
BuildRequires: /usr/bin/rst2man
BuildRequires: perl(Math::BigInt)
BuildRequires: perl(Math::BigRat)
BuildRequires: perl(Encode)
%ifarch %{arm}
%{?_with_rpi:BuildRequires: raspberrypi-vc-devel}
%endif
# Obsoletes older ci/cd
Obsoletes: %{name}-master < %{version}-100
Provides: %{name}-master = %{version}-100
Requires: hicolor-icon-theme
Provides: mplayer-backend
%if 0%{?fedora}
Recommends: yt-dlp
%else
Recommends: youtube-dl
%endif
Recommends: (yt-dlp or youtube-dl)
Suggests: yt-dlp
%description
Mpv is a movie player based on MPlayer and mplayer2. It supports a wide variety
@ -104,56 +84,116 @@ input URL types are available to read input from a variety of sources other
than disk files. Depending on platform, a variety of different video and audio
output methods are supported.
Mpv has an OpenGL, Vulkan, and D3D11 based video output that is capable of many
features loved by videophiles, such as video scaling with popular high quality
algorithms, color management, frame timing, interpolation, HDR, and more.
While mpv strives for minimalism and provides no real GUI, it has a small
controller on top of the video for basic control.
Mpv can leverage most hardware decoding APIs on all platforms. Hardware
decoding can be enabled at runtime on demand.
Powerful scripting capabilities can make the player do almost anything. There
is a large selection of user scripts on the wiki.
A straightforward C API was designed from the ground up to make mpv usable as
a library and facilitate easy integration into other applications.
%package libs
Summary: Dynamic library for Mpv frontends
Summary: Dynamic library for Mpv frontends
%description libs
This package contains the dynamic library libmpv, which provides access to Mpv.
%package libs-devel
%package devel
Summary: Development package for libmpv
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
Provides: %{name}-libs-devel = %{?epoch:%{epoch}:}%{version}-%{release}
Obsoletes: %{name}-libs-devel < %{?epoch:%{epoch}:}%{version}-%{release}
Requires: %{name}-libs%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
%description libs-devel
Libmpv development header files and libraries.
%description devel
This package contains development header files and libraries for Mpv.
%prep
%autosetup -p1
sed -e "s|/usr/local/etc|%{_sysconfdir}/%{name}|" -i etc/%{name}.conf
sed -e "s|c_preproc.standard_includes.append('/usr/local/include')|c_preproc.standard_includes.append('$(pkgconf --variable=includedir libavcodec)')|" -i wscript
%build
%set_build_flags
%{_bindir}/waf configure \
--prefix=%{_prefix} \
--bindir=%{_bindir} \
--libdir=%{_libdir} \
--mandir=%{_mandir} \
--docdir=%{_docdir}/%{name} \
--confdir=%{_sysconfdir}/%{name} \
--disable-build-date \
--enable-libmpv-shared \
--enable-sdl2 \
%if 0%{?fedora} > 30 || 0%{?rhel} > 8
--enable-libarchive \
%endif
--enable-dvdnav \
--enable-cdda \
--enable-html-build \
%{?_with_rpi:--enable-rpi --disable-vaapi} \
--enable-dvbin \
--enable-gl-x11
%{_bindir}/waf -v build %{?_smp_mflags}
%meson --auto-features=auto \
-Dalsa=enabled \
-Dbuild-date=false \
-Dcaca=enabled \
-Dcdda=enabled \
-Dcplayer=true \
-Dcplugins=enabled \
-Dcuda-hwaccel=enabled \
-Dcuda-interop=enabled \
-Ddmabuf-wayland=enabled \
-Ddrm=enabled \
-Ddvbin=enabled \
-Ddvdnav=enabled \
-Degl-drm=enabled \
-Degl-wayland=enabled \
-Degl-x11=enabled \
-Degl=enabled \
-Dgbm=enabled \
-Dgl-x11=enabled \
-Dgl=enabled \
-Dhtml-build=enabled \
-Diconv=enabled \
-Djack=enabled \
-Djavascript=enabled \
-Djpeg=enabled \
-Dlcms2=enabled \
-Dlibarchive=enabled \
-Dlibavdevice=enabled \
-Dlibbluray=enabled \
-Dlibmpv=true \
-Dlua=enabled \
-Dmanpage-build=enabled \
-Dopenal=enabled \
-Dopensles=disabled \
-Doss-audio=disabled \
-Dpipewire=enabled \
-Dplain-gl=enabled \
-Dpulse=enabled \
-Drubberband=enabled \
-Dsdl2-audio=enabled \
-Dsdl2-gamepad=enabled \
-Dsdl2-video=enabled \
-Dsdl2=enabled \
-Dshaderc=enabled \
-Dsndio=disabled \
-Dspirv-cross=disabled \
-Duchardet=enabled \
-Dvaapi-drm=enabled \
-Dvaapi-wayland=enabled \
-Dvaapi-x11=enabled \
-Dvaapi=enabled \
-Dvapoursynth=enabled \
-Dvdpau-gl-x11=enabled \
-Dvdpau=enabled \
-Dvector=enabled \
-Dvulkan-interop=disabled \
-Dvulkan=enabled \
-Dwayland=enabled \
-Dwerror=false \
-Dx11=enabled \
-Dxv=enabled \
-Dzimg=enabled \
-Dzlib=enabled
%meson_build
%install
%{_bindir}/waf install --destdir=%{buildroot}
%meson_install
%check
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{name}.metainfo.xml
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
%files
%docdir %{_docdir}/%{name}/
%doc README.md etc/input.conf etc/%{name}.conf
%license LICENSE.GPL LICENSE.LGPL Copyright
%{_docdir}/%{name}/
%{_bindir}/%{name}
@ -166,21 +206,84 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
%dir %{_datadir}/zsh/site-functions/
%{_datadir}/zsh/site-functions/_%{name}
%{_mandir}/man1/%{name}.*
%{_metainfodir}/%{name}.metainfo.xml
%dir %{_sysconfdir}/%{name}/
%config(noreplace) %{_sysconfdir}/%{name}/encoding-profiles.conf
%files libs
%license LICENSE.GPL LICENSE.LGPL Copyright
%{_libdir}/lib%{name}.so.*
%{_libdir}/lib%{name}.so.2{,.*}
%files libs-devel
%files devel
%{_includedir}/%{name}/
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%changelog
* Mon Feb 26 2024 Sergey Cherevko <s.cherevko@msvsphere-os.ru> - 0.34.1-2
- Rebuilt for MSVSphere 8.9
* Wed May 01 2024 Carl George <carlwgeorge@fedoraproject.org> - 0.37.0-2
- Build against libplacebo6
* Wed May 01 2024 Neal Gompa <ngompa@fedoraproject.org> - 0.37.0-1
- Update to 0.37.0
* Wed May 01 2024 Sérgio Basto <sergio@serjux.com> - 0.36.0-3
- Remove unused build requires (https://github.com/rpmfusion/mpv/pull/19)
* Wed May 01 2024 Vitaly Zaitsev <vitaly@easycoding.org> - 0.36.0-2
- Switched to meson by upstream request.
* Wed May 01 2024 Vitaly Zaitsev <vitaly@easycoding.org> - 0.36.0-1
- Updated to version 0.36.0.
* Fri Feb 16 2024 Carl George <carlwgeorge@fedoraproject.org> - 0.35.1-3
- Rebuild against libplacebo5 rhbz#2264138
* Tue Mar 07 2023 Maxwell G <maxwell@gtmx.me> - 0.35.1-2
- Backport upstream patch to fix yt-dlp hook
* Mon Jan 30 2023 Vitaly Zaitsev <vitaly@easycoding.org> - 0.35.1-1
- Updated to version 0.35.1.
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.35.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Fri Dec 23 2022 Nicolas Chauvet <kwizart@gmail.com> - 0.35.0-2
- Rebuilt for libplacebo
* Sat Nov 12 2022 Vitaly Zaitsev <vitaly@easycoding.org> - 0.35.0-1
- Updated to version 0.35.0.
- Enabled Wayland backend.
- Enabled native PipeWire output support.
* Mon Sep 05 2022 Vitaly Zaitsev <vitaly@easycoding.org> - 0.34.1-11
- Moved to Fedora.
- Added XDG metainfo manifest.
* Sun Sep 04 2022 Leigh Scott <leigh123linux@gmail.com> - 0.34.1-10
- Add requires ffmpeg-libs
* Sun Aug 07 2022 RPM Fusion Release Engineering <sergiomb@rpmfusion.org> - 0.34.1-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild and ffmpeg
5.1
* Fri Jul 22 2022 Leigh Scott <leigh123linux@gmail.com> - 0.34.1-8
- Rebuild for new ffmpeg
* Sat Jul 09 2022 Vitaly Zaitsev <vitaly@easycoding.org> - 0.34.1-7
- Rebuilt due to libplacebo update.
* Fri Jun 17 2022 Nicolas Chauvet <kwizart@gmail.com> - 0.34.1-6
- rebuilt
* Tue Apr 19 2022 Vitaly Zaitsev <vitaly@easycoding.org> - 0.34.1-5
- Make sure we're using the full ffmpeg-libs version.
- Removed no longer required patch.
* Fri Mar 04 2022 Leigh Scott <leigh123linux@gmail.com> - 0.34.1-4
- Rebuild for new vapoursynth
* Fri Feb 04 2022 Leigh Scott <leigh123linux@gmail.com> - 0.34.1-3
- Rebuild for new libvpx
* Mon Jan 10 2022 Vitaly Zaitsev <vitaly@easycoding.org> - 0.34.1-2
- Removed boolean dependencies.

@ -0,0 +1 @@
SHA512 (mpv-0.37.0.tar.gz) = a2f7fb3837312ec59c50427af7be3b2b1b6175a53ccc7463e81503284fc4047dff32cb105d665d80be77ee1ae775d4512b71584f324d6d202c9a7fc1fab53257
Loading…
Cancel
Save