|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
Name: mpv
|
|
|
|
|
Version: 0.35.1
|
|
|
|
|
Version: 0.37.0
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
|
|
|
|
|
License: GPL-2.0-or-later AND LGPL-2.1-or-later
|
|
|
|
@ -7,14 +7,12 @@ 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
|
|
|
|
|
|
|
|
|
|
# https://github.com/mpv-player/mpv/pull/11398
|
|
|
|
|
Patch100: %{name}-0.35.1-yt-dlp-hook-fix.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: desktop-file-utils
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: libappstream-glib
|
|
|
|
|
BuildRequires: libatomic
|
|
|
|
|
BuildRequires: meson
|
|
|
|
|
BuildRequires: python3-docutils
|
|
|
|
|
BuildRequires: waf-python3
|
|
|
|
|
|
|
|
|
|
BuildRequires: perl(Encode)
|
|
|
|
|
BuildRequires: perl(Math::BigInt)
|
|
|
|
@ -23,7 +21,6 @@ BuildRequires: pkgconfig(alsa)
|
|
|
|
|
BuildRequires: pkgconfig(caca)
|
|
|
|
|
BuildRequires: pkgconfig(dvdnav)
|
|
|
|
|
BuildRequires: pkgconfig(egl)
|
|
|
|
|
BuildRequires: pkgconfig(enca)
|
|
|
|
|
BuildRequires: pkgconfig(ffnvcodec)
|
|
|
|
|
BuildRequires: pkgconfig(gbm)
|
|
|
|
|
BuildRequires: pkgconfig(gl)
|
|
|
|
@ -31,25 +28,26 @@ BuildRequires: pkgconfig(jack)
|
|
|
|
|
BuildRequires: pkgconfig(lcms2)
|
|
|
|
|
BuildRequires: pkgconfig(libarchive) >= 3.4.0
|
|
|
|
|
BuildRequires: pkgconfig(libass)
|
|
|
|
|
BuildRequires: pkgconfig(libavcodec) >= 58.16.100
|
|
|
|
|
BuildRequires: pkgconfig(libavdevice) >= 57.0.0
|
|
|
|
|
BuildRequires: pkgconfig(libavfilter) >= 7.14.100
|
|
|
|
|
BuildRequires: pkgconfig(libavformat) >= 58.9.100
|
|
|
|
|
BuildRequires: pkgconfig(libavutil) >= 56.12.100
|
|
|
|
|
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(libguess)
|
|
|
|
|
BuildRequires: pkgconfig(libjpeg)
|
|
|
|
|
BuildRequires: pkgconfig(libpipewire-0.3) >= 0.3.19
|
|
|
|
|
BuildRequires: pkgconfig(libplacebo)
|
|
|
|
|
# Explictily build against libplacebo6 rhbz#2264138
|
|
|
|
|
BuildRequires: (pkgconfig(libplacebo) >= 6 with pkgconfig(libplacebo) < 7)
|
|
|
|
|
BuildRequires: pkgconfig(libpulse)
|
|
|
|
|
BuildRequires: pkgconfig(libswresample) >= 3.0.100
|
|
|
|
|
BuildRequires: pkgconfig(libswscale) >= 5.0.101
|
|
|
|
|
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(shaderc)
|
|
|
|
@ -120,31 +118,75 @@ 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
|
|
|
|
|
waf configure \
|
|
|
|
|
--prefix=%{_prefix} \
|
|
|
|
|
--bindir=%{_bindir} \
|
|
|
|
|
--libdir=%{_libdir} \
|
|
|
|
|
--mandir=%{_mandir} \
|
|
|
|
|
--docdir=%{_docdir}/%{name} \
|
|
|
|
|
--confdir=%{_sysconfdir}/%{name} \
|
|
|
|
|
--disable-build-date \
|
|
|
|
|
--enable-libmpv-shared \
|
|
|
|
|
--enable-sdl2 \
|
|
|
|
|
--enable-libarchive \
|
|
|
|
|
--enable-dvdnav \
|
|
|
|
|
--enable-cdda \
|
|
|
|
|
--enable-html-build \
|
|
|
|
|
--enable-dvbin \
|
|
|
|
|
--enable-gl-x11 \
|
|
|
|
|
--enable-wayland
|
|
|
|
|
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
|
|
|
|
|
waf install --destdir=%{buildroot}
|
|
|
|
|
%meson_install
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{name}.metainfo.xml
|
|
|
|
@ -170,7 +212,7 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
|
|
|
|
|
|
|
|
|
|
%files libs
|
|
|
|
|
%license LICENSE.GPL LICENSE.LGPL Copyright
|
|
|
|
|
%{_libdir}/lib%{name}.so.2*
|
|
|
|
|
%{_libdir}/lib%{name}.so.2{,.*}
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%{_includedir}/%{name}/
|
|
|
|
@ -178,6 +220,27 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
|
|
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* 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
|
|
|
|
|
|
|
|
|
|
* Mon Oct 30 2023 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 0.35.1-2
|
|
|
|
|
- Rebuilt for MSVSphere 9.2
|
|
|
|
|
|
|
|
|
|
* Tue Mar 07 2023 Maxwell G <maxwell@gtmx.me> - 0.35.1-2
|
|
|
|
|
- Backport upstream patch to fix yt-dlp hook
|
|
|
|
|
|