|
|
|
@ -1,18 +1,23 @@
|
|
|
|
|
Name: mpv
|
|
|
|
|
Version: 0.37.0
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Version: 0.35.1
|
|
|
|
|
Release: 4%{?dist}
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
# https://github.com/mpv-player/mpv/pull/11398
|
|
|
|
|
Patch100: %{name}-0.35.1-yt-dlp-hook-fix.patch
|
|
|
|
|
# Upstream patch for libplacebo v6.265
|
|
|
|
|
Patch101: https://github.com/mpv-player/mpv/commit/3a2f8d42ab203c961e50ce198ca4eb232de3819a.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)
|
|
|
|
@ -21,6 +26,7 @@ BuildRequires: pkgconfig(alsa)
|
|
|
|
|
BuildRequires: pkgconfig(caca)
|
|
|
|
|
BuildRequires: pkgconfig(dvdnav)
|
|
|
|
|
BuildRequires: pkgconfig(egl)
|
|
|
|
|
BuildRequires: pkgconfig(enca)
|
|
|
|
|
BuildRequires: pkgconfig(ffnvcodec)
|
|
|
|
|
BuildRequires: pkgconfig(gbm)
|
|
|
|
|
BuildRequires: pkgconfig(gl)
|
|
|
|
@ -28,26 +34,25 @@ BuildRequires: pkgconfig(jack)
|
|
|
|
|
BuildRequires: pkgconfig(lcms2)
|
|
|
|
|
BuildRequires: pkgconfig(libarchive) >= 3.4.0
|
|
|
|
|
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(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(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
|
|
|
|
|
# Explictily build against libplacebo6 rhbz#2264138
|
|
|
|
|
BuildRequires: (pkgconfig(libplacebo) >= 6 with pkgconfig(libplacebo) < 7)
|
|
|
|
|
BuildRequires: pkgconfig(libplacebo)
|
|
|
|
|
BuildRequires: pkgconfig(libpulse)
|
|
|
|
|
BuildRequires: pkgconfig(libswresample) >= 3.9.100
|
|
|
|
|
BuildRequires: pkgconfig(libswscale) >= 5.9.100
|
|
|
|
|
BuildRequires: pkgconfig(libswresample) >= 3.0.100
|
|
|
|
|
BuildRequires: pkgconfig(libswscale) >= 5.0.101
|
|
|
|
|
BuildRequires: pkgconfig(libva)
|
|
|
|
|
BuildRequires: pkgconfig(lua-5.1)
|
|
|
|
|
BuildRequires: pkgconfig(mujs)
|
|
|
|
|
BuildRequires: pkgconfig(openal)
|
|
|
|
|
BuildRequires: pkgconfig(rubberband)
|
|
|
|
|
BuildRequires: pkgconfig(sdl2)
|
|
|
|
|
BuildRequires: pkgconfig(shaderc)
|
|
|
|
@ -101,7 +106,7 @@ 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.
|
|
|
|
@ -118,75 +123,31 @@ 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
|
|
|
|
|
%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
|
|
|
|
|
%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}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%meson_install
|
|
|
|
|
waf install --destdir=%{buildroot}
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{name}.metainfo.xml
|
|
|
|
@ -212,7 +173,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}/
|
|
|
|
@ -220,23 +181,14 @@ 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 Mar 20 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 0.35.1-4
|
|
|
|
|
- Rebuilt for MSVSphere 8.9
|
|
|
|
|
|
|
|
|
|
* 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.
|
|
|
|
|
* Wed Mar 22 2023 Nicolas Chauvet <kwizart@gmail.com> - 0.35.1-4
|
|
|
|
|
- rebuilt
|
|
|
|
|
|
|
|
|
|
* Fri Feb 16 2024 Carl George <carlwgeorge@fedoraproject.org> - 0.35.1-3
|
|
|
|
|
- Rebuild against libplacebo5 rhbz#2264138
|
|
|
|
|
* Sun Mar 12 2023 Neal Gompa <ngompa@fedoraproject.org> - 0.35.1-3
|
|
|
|
|
- Rebuild for ffmpeg 6.0
|
|
|
|
|
|
|
|
|
|
* Tue Mar 07 2023 Maxwell G <maxwell@gtmx.me> - 0.35.1-2
|
|
|
|
|
- Backport upstream patch to fix yt-dlp hook
|