Switched to meson by upstream request. WAF is no longer supported.
This commit is contained in:
parent
d771e5e4d9
commit
048ddb5db4
105
mpv.spec
105
mpv.spec
@ -1,6 +1,6 @@
|
|||||||
Name: mpv
|
Name: mpv
|
||||||
Version: 0.36.0
|
Version: 0.36.0
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
|
|
||||||
License: GPL-2.0-or-later AND LGPL-2.1-or-later
|
License: GPL-2.0-or-later AND LGPL-2.1-or-later
|
||||||
Summary: Movie player playing most video formats and DVDs
|
Summary: Movie player playing most video formats and DVDs
|
||||||
@ -10,8 +10,9 @@ Source0: https://github.com/%{name}-player/%{name}/archive/v%{version}/%{
|
|||||||
BuildRequires: desktop-file-utils
|
BuildRequires: desktop-file-utils
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: libappstream-glib
|
BuildRequires: libappstream-glib
|
||||||
|
BuildRequires: libatomic
|
||||||
|
BuildRequires: meson
|
||||||
BuildRequires: python3-docutils
|
BuildRequires: python3-docutils
|
||||||
BuildRequires: waf-python3
|
|
||||||
|
|
||||||
BuildRequires: perl(Encode)
|
BuildRequires: perl(Encode)
|
||||||
BuildRequires: perl(Math::BigInt)
|
BuildRequires: perl(Math::BigInt)
|
||||||
@ -40,15 +41,14 @@ BuildRequires: pkgconfig(libdrm)
|
|||||||
BuildRequires: pkgconfig(libguess)
|
BuildRequires: pkgconfig(libguess)
|
||||||
BuildRequires: pkgconfig(libjpeg)
|
BuildRequires: pkgconfig(libjpeg)
|
||||||
BuildRequires: pkgconfig(libpipewire-0.3) >= 0.3.19
|
BuildRequires: pkgconfig(libpipewire-0.3) >= 0.3.19
|
||||||
# libplacebo 4 has runtime issues with glslang 13 in RHEL 9.4 rhbz#2264138
|
BuildRequires: pkgconfig(libplacebo) >= 5.264.1
|
||||||
# mpv 0.35 doesn't build with libplacebo 6
|
|
||||||
BuildRequires: (pkgconfig(libplacebo) >= 5 with pkgconfig(libplacebo) < 6)
|
|
||||||
BuildRequires: pkgconfig(libpulse)
|
BuildRequires: pkgconfig(libpulse)
|
||||||
BuildRequires: pkgconfig(libswresample) >= 3.9.100
|
BuildRequires: pkgconfig(libswresample) >= 3.9.100
|
||||||
BuildRequires: pkgconfig(libswscale) >= 5.9.100
|
BuildRequires: pkgconfig(libswscale) >= 5.9.100
|
||||||
BuildRequires: pkgconfig(libva)
|
BuildRequires: pkgconfig(libva)
|
||||||
BuildRequires: pkgconfig(lua-5.1)
|
BuildRequires: pkgconfig(lua)
|
||||||
BuildRequires: pkgconfig(mujs)
|
BuildRequires: pkgconfig(mujs)
|
||||||
|
BuildRequires: pkgconfig(openal)
|
||||||
BuildRequires: pkgconfig(rubberband)
|
BuildRequires: pkgconfig(rubberband)
|
||||||
BuildRequires: pkgconfig(sdl2)
|
BuildRequires: pkgconfig(sdl2)
|
||||||
BuildRequires: pkgconfig(shaderc)
|
BuildRequires: pkgconfig(shaderc)
|
||||||
@ -119,31 +119,79 @@ This package contains development header files and libraries for Mpv.
|
|||||||
%prep
|
%prep
|
||||||
%autosetup -p1
|
%autosetup -p1
|
||||||
sed -e "s|/usr/local/etc|%{_sysconfdir}/%{name}|" -i etc/%{name}.conf
|
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
|
%build
|
||||||
%set_build_flags
|
%meson --auto-features=auto \
|
||||||
waf configure \
|
-Dalsa=enabled \
|
||||||
--prefix=%{_prefix} \
|
-Dbuild-date=false \
|
||||||
--bindir=%{_bindir} \
|
-Dcaca=enabled \
|
||||||
--libdir=%{_libdir} \
|
-Dcdda=enabled \
|
||||||
--mandir=%{_mandir} \
|
-Dcplayer=true \
|
||||||
--docdir=%{_docdir}/%{name} \
|
-Dcplugins=enabled \
|
||||||
--confdir=%{_sysconfdir}/%{name} \
|
-Dcuda-hwaccel=enabled \
|
||||||
--disable-build-date \
|
-Dcuda-interop=enabled \
|
||||||
--enable-libmpv-shared \
|
-Ddmabuf-wayland=enabled \
|
||||||
--enable-sdl2 \
|
-Ddrm=enabled \
|
||||||
--enable-libarchive \
|
-Ddvbin=enabled \
|
||||||
--enable-dvdnav \
|
-Ddvdnav=enabled \
|
||||||
--enable-cdda \
|
-Degl-drm=enabled \
|
||||||
--enable-html-build \
|
-Degl-wayland=enabled \
|
||||||
--enable-dvbin \
|
-Degl-x11=enabled \
|
||||||
--enable-gl-x11 \
|
-Degl=enabled \
|
||||||
--enable-wayland
|
-Dgbm=enabled \
|
||||||
waf -v build %{?_smp_mflags}
|
-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 \
|
||||||
|
-Dlibplacebo-next=enabled \
|
||||||
|
-Dlibplacebo=enabled \
|
||||||
|
-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 \
|
||||||
|
-Dstdatomic=enabled \
|
||||||
|
-Duchardet=enabled \
|
||||||
|
-Dvaapi-drm=enabled \
|
||||||
|
-Dvaapi-wayland=enabled \
|
||||||
|
-Dvaapi-x-egl=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
|
%install
|
||||||
waf install --destdir=%{buildroot}
|
%meson_install
|
||||||
|
|
||||||
%check
|
%check
|
||||||
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{name}.metainfo.xml
|
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{name}.metainfo.xml
|
||||||
@ -177,6 +225,9 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
|
|||||||
%{_libdir}/pkgconfig/%{name}.pc
|
%{_libdir}/pkgconfig/%{name}.pc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* 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
|
* Wed May 01 2024 Vitaly Zaitsev <vitaly@easycoding.org> - 0.36.0-1
|
||||||
- Updated to version 0.36.0.
|
- Updated to version 0.36.0.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user