X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=mpv.spec;h=0bfb55d2c6ec5c3e1de2ab24a4fd861ab7c2fc05;hb=f02c0322a209f36ee576a4f76845b8db908bb493;hp=4d7df2604b99adb13757a29ff07eb84bc1aab690;hpb=8b8863670245b4144d2cf289e3c380f3cb3d5e99;p=packages%2Fmpv.git diff --git a/mpv.spec b/mpv.spec index 4d7df26..0bfb55d 100644 --- a/mpv.spec +++ b/mpv.spec @@ -1,12 +1,14 @@ Summary: Movie player based on MPlayer and mplayer2 Name: mpv -Version: 0.3.4 -Release: 1 +Version: 0.4.1 +Release: 2 License: GPL v2+ Group: Applications/Multimedia Source0: http://github.com/mpv-player/mpv/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz -# Source0-md5: 274bf45367df99774512cf43659004d5 +# Source0-md5: 24dcff8c676388227b280a463f9a05d0 Source1: %{name}.conf +Patch0: %{name}-zshcompdir.patch +Patch1: %{name}-lua.patch URL: http://mpv.io/ BuildRequires: Mesa-libwayland-egl-devel >= 9.0.0 BuildRequires: OpenAL-devel >= 1.13 @@ -14,10 +16,10 @@ BuildRequires: OpenGL-devel BuildRequires: SDL-devel BuildRequires: alsa-lib-devel BuildRequires: enca-devel -BuildRequires: ffmpeg-devel >= 1.1.0 +BuildRequires: ffmpeg-devel >= 2.1.4 BuildRequires: jack-audio-connection-kit-devel BuildRequires: ladspa-devel -BuildRequires: lcms2-devel +BuildRequires: lcms2-devel >= 2.6 BuildRequires: libass-devel %ifarch i386 i486 BuildRequires: libatomic-devel @@ -30,7 +32,7 @@ BuildRequires: libdvdnav-devel >= 4.2.0 BuildRequires: libdvdread-devel >= 4.1.0 BuildRequires: libguess-devel BuildRequires: libjpeg-devel -BuildRequires: libmpg123-devel >= 1.2.0 +BuildRequires: libmpg123-devel >= 1.14.0 BuildRequires: libquvi-devel < 0.9.0 BuildRequires: libsmbclient-devel BuildRequires: libv4l-devel @@ -38,6 +40,7 @@ BuildRequires: libva-devel >= 1.2.0 BuildRequires: libva-glx-devel >= 1.2.0 BuildRequires: libvdpau-devel >= 0.2 BuildRequires: lirc-devel +BuildRequires: lua51-devel BuildRequires: ncurses-devel BuildRequires: pkgconfig BuildRequires: portaudio-devel >= 19 @@ -60,11 +63,38 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _noautoreqdep libGL.so.1 libGLU.so.1 +%define zshdir %{_datadir}/zsh/site-functions + %description Movie player based on MPlayer and mplayer2. +%package client-libs +Summary: Client library for controlling mpv +Group: Development/Libraries + +%description client-libs +Client library for controlling mpv. + +%package client-devel +Summary: Development files for mpv client library +Group: Development/Libraries +Requires: %{name}-client-libs = %{version}-%{release} + +%description client-devel +Development files for mpv client library. + +%package -n zsh-completion-mpv +Summary: zsh-completion for mpv +Group: Applications/Shells +Requires: %{name} = %{version}-%{release} + +%description -n zsh-completion-mpv +zsh-completion for mpv. + %prep %setup -q +%patch0 -p1 +%patch1 -p1 %build %waf configure \ @@ -84,6 +114,7 @@ Movie player based on MPlayer and mplayer2. --enable-dvdnav \ --enable-dvdread \ --enable-enca \ + --enable-encoding \ --enable-gl-wayland \ --enable-gl-x11 \ --enable-iconv \ @@ -93,9 +124,15 @@ Movie player based on MPlayer and mplayer2. --enable-ladspa \ --enable-lcms2 \ --enable-libass \ + --enable-libass-osd \ + --enable-libavdevice \ + --enable-libavfilter \ + --enable-libavresample \ --enable-libbluray \ --enable-libbs2b \ --enable-libguess \ + --enable-libmpv-shared \ + --enable-libpostproc \ --enable-libquvi4 \ --enable-libsmbclient \ --enable-libv4l2 \ @@ -106,29 +143,28 @@ Movie player based on MPlayer and mplayer2. --enable-portaudio \ --enable-pulse \ --enable-pvr \ - --enable-radio \ - --enable-radio-capture \ - --enable-radio-v4l2 \ - --enable-sdl \ + --enable-sdl1 \ --enable-shm \ --enable-terminfo \ --enable-tv \ --enable-tv-v4l2 \ - --enable-wayland \ --enable-vaapi \ --enable-vaapi-glx \ --enable-vaapi-hwaccel \ --enable-vaapi-vpp \ - --enable-vcd \ --enable-vdpau \ + --enable-vdpau-gl-x11 \ --enable-vdpau-hwaccel \ + --enable-wayland \ --enable-x11 \ --enable-xext \ --enable-xf86vm \ --enable-xf86xk \ --enable-xinerama \ --enable-xss \ - --enable-xv + --enable-xv \ + --enable-zsh-comp \ + --lua=51pld %waf build -v @@ -152,3 +188,18 @@ rm -rf $RPM_BUILD_ROOT %{_desktopdir}/mpv.desktop %{_iconsdir}/hicolor/*/apps/mpv.png %{_mandir}/man1/mpv.1* + +%files client-libs +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/libmpv.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/libmpv.so.1 + +%files client-devel +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/libmpv.so +%{_includedir}/mpv +%{_pkgconfigdir}/mpv.pc + +%files -n zsh-completion-mpv +%defattr(644,root,root,755) +%{zshdir}/_mpv