]> git.pld-linux.org Git - packages/mpv.git/blobdiff - mpv.spec
- up to 0.5.0
[packages/mpv.git] / mpv.spec
index 195ef4784f0906fa44e7ffa53d6b83813ebbb1ca..f7041fb375ebb1999f5ea98a51b6d80e428eeb5e 100644 (file)
--- a/mpv.spec
+++ b/mpv.spec
@@ -1,12 +1,15 @@
 Summary:       Movie player based on MPlayer and mplayer2
 Name:          mpv
-Version:       0.3.2
-Release:       0.1
+Version:       0.5.0
+Release:       1
 License:       GPL v2+
 Group:         Applications/Multimedia
-Source0:       http://github.com/mpv-player/%{name}/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
-# Source0-md5: 516f2eeec1d1f69905d11c1feec8166e
+Source0:       http://github.com/mpv-player/mpv/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
+# Source0-md5: 85e4895dfdce888fb436e7c217958b8b
 Source1:       %{name}.conf
+Patch0:                %{name}-zshcompdir.patch
+Patch1:                %{name}-lua.patch
+Patch2:                %{name}-wafsyms.patch
 URL:           http://mpv.io/
 BuildRequires: Mesa-libwayland-egl-devel >= 9.0.0
 BuildRequires: OpenAL-devel >= 1.13
@@ -14,23 +17,23 @@ BuildRequires:      OpenGL-devel
 BuildRequires: SDL-devel
 BuildRequires: alsa-lib-devel
 BuildRequires: enca-devel
-BuildRequires: ffmpeg-devel
+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
 %endif
+BuildRequires: libbluray-devel >= 0.2.1
+BuildRequires: libbs2b-devel
 BuildRequires: libcaca-devel >= 0.99
 BuildRequires: libcdio-paranoia-devel
 BuildRequires: libdvdnav-devel >= 4.2.0
 BuildRequires: libdvdread-devel >= 4.1.0
-BuildRequires: libbluray-devel >= 0.2.1
-BuildRequires: libbs2b-devel
 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,13 +41,15 @@ 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
 BuildRequires: pulseaudio-devel >= 0.9
+BuildRequires: rpmbuild(macros) >= 1.336
 # version dep to handle packaging issue in PLD
 BuildRequires: waf >= 1.7.14
-BuildRequires: wayland-devel >= 1.2.0
+BuildRequires: wayland-devel >= 1.3.0
 BuildRequires: xorg-lib-libX11-devel
 BuildRequires: xorg-lib-libXScrnSaver-devel
 BuildRequires: xorg-lib-libXdamage-devel
@@ -59,17 +64,42 @@ 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.
+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
+%patch2 -p1
 
 %build
-CC="%{__cc}"; export CC
-CFLAGS="%{rpmcflags}"; export CFLAGS
-LINKFLAGS="%{rpmldflags}"; export LINKFLAGS
-waf configure \
+%waf configure \
                --prefix=%{_prefix} \
                --bindir=%{_bindir} \
                --confdir=%{_sysconfdir}/mpv \
@@ -86,6 +116,7 @@ waf configure \
                --enable-dvdnav \
                --enable-dvdread \
                --enable-enca \
+               --enable-encoding \
                --enable-gl-wayland \
                --enable-gl-x11 \
                --enable-iconv \
@@ -95,9 +126,15 @@ waf configure \
                --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 \
@@ -108,22 +145,19 @@ waf configure \
                --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 \
@@ -131,13 +165,15 @@ waf configure \
                --enable-xinerama \
                --enable-xss \
                --enable-xv \
-       
-waf build -v
+               --enable-zsh-comp \
+               --lua=51pld
+
+%waf build -v
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-waf install --destdir=$RPM_BUILD_ROOT
+%waf install --destdir=$RPM_BUILD_ROOT
 
 install -d $RPM_BUILD_ROOT%{_sysconfdir}/mpv
 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/mpv
@@ -154,3 +190,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
This page took 0.069228 seconds and 4 git commands to generate.