: 15 2019 | : 17432 | : 15097887
en ru br

: mpv

             Sources      Gear   Bugs and FR  Repocop 

%ifarch %luajit_arches
%def_enable lua

Name: mpv
Version: 0.29.1
Release: alt5

Summary: mpv is a free and open-source general-purpose video player based on MPlayer and mplayer2.
License: GPLv2+
Group: Video

Source: %name-%version.tar
Patch: %name-%version-alt.patch

Packager: %packager

# for %%luajit_arches macro

BuildRequires(pre): rpm-macros-luajit

# Automatically added by buildreq on Fri Feb 14 2014

BuildRequires: libGL-devel libXext-devel libalsa-devel libass-devel libavformat-devel libavresample-devel libjpeg-devel libswscale-devel patool perl-Encode perl-Math-BigRat python-module-docutils time zlib-devel libva-devel

BuildRequires: libpulseaudio-devel libenca-devel libXScrnSaver-devel libXv-devel libXinerama-devel libXrandr-devel libdvdnav-devel libbluray-devel libavfilter-devel libsmbclient-devel libswresample-devel libwayland-client-devel libwayland-cursor-devel libxkbcommon-devel libEGL-devel libwayland-egl-devel libdrm-devel libv4l-devel libarchive-devel liblcms2-devel

%if_enabled lua
BuildRequires: liblua5.3-devel libluajit-devel

Summary(ru_RU.UTF-8): MPV - это медиапроигрыватель с открытыми исходниками, основанный на проектах MPlayer и mplayer2.

mpv is a movie player based on MPlayer and mplayer2.
It supports a wide variety of video file formats,
audio and video codecs, and subtitle types.

%description -l ru_RU.UTF-8
mpv - это медиапроигрыватель, основанный на проектах
MPlayer и mplayer2. Он поддерживает большое количество
видеоформатов, аудио и видео кодеков и форматов субтитров.

%package -n zsh-completion-%name
Summary: Zsh completion for mpv
Group: Shells
BuildArch: noarch
Requires: %name = %version-%release

%description -n zsh-completion-%name
Zsh completion for %name.

%package -n libmpv-devel
Summary: Header files for %name
Group: Development/C
Requires: %name = %version-%release

%description -n libmpv-devel
Header files for %name

%package -n libmpv1
Summary: %name shared library
Group: System/Libraries

%description -n libmpv1
This package contains %name shared library

%setup -n %name-%version
%patch0 -p1

chmod ugo+rx waf
./waf configure --bindir=%_bindir --mandir=%_mandir --datadir=%_datadir --libdir=%_libdir --includedir=%_includedir --prefix= \
--enable-pulse \
--enable-xv \
--enable-vaapi \
--enable-alsa \
--enable-gl-x11 \
%{subst_enable lua} \
--enable-zsh-comp \
--enable-libbluray \
--enable-dvdnav \
--enable-libsmbclient \
--enable-libmpv-shared \
--enable-tv \

./waf build %_smp_mflags

./waf install --destdir=%buildroot

%dir %_sysconfdir/%name
%config %_sysconfdir/%name/encoding-profiles.conf
%doc Copyright RELEASE_NOTES etc/input.conf etc/mplayer-input.conf etc/mpv.conf etc/restore-old-bindings.conf

%files -n zsh-completion-%name

%files -n libmpv-devel

%files -n libmpv1



: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
: Michael Shigorin