diff --git a/mpv-config.patch b/mpv-config.patch index 5cfbfd2..02b1c8d 100644 --- a/mpv-config.patch +++ b/mpv-config.patch @@ -1,7 +1,5 @@ -diff --git a/etc/example.conf b/etc/example.conf -index cf9089f..8bb9b7b 100644 ---- a/etc/example.conf -+++ b/etc/example.conf +--- a/etc/mpv.conf ++++ b/etc/mpv.conf @@ -1,7 +1,7 @@ # # mpv configuration file @@ -11,19 +9,30 @@ index cf9089f..8bb9b7b 100644 # and per-user from ~/.config/mpv/mpv.conf, where per-user settings override # system-wide settings, all of which are overridden by the command line. # -@@ -28,6 +28,7 @@ +@@ -27,7 +27,7 @@ + ################## # Specify default video driver (see --vo=help for a list). - #vo=vdpau -+vo=opengl +-#vo=opengl-hq ++vo=opengl-hq # Start in fullscreen mode by default. #fs=yes -@@ -50,6 +51,7 @@ +@@ -49,7 +49,7 @@ + ################## # Specify default audio driver (see --ao=help for a list). - #ao=alsa -+ao=pulse,alsa, +-#ao=alsa ++ao=pulse,alsa # Disable softvol usage, and always use the system mixer if available. #softvol=no +@@ -102,7 +102,7 @@ + + # Enable hardware decoding if available. Often, this requires using an certain + # video output, otherwise no hardware decoding will be used. +-#hwdec=auto ++hwdec=auto + + ############ + # Profiles # diff --git a/mpv.spec b/mpv.spec index 438a251..50d1929 100644 --- a/mpv.spec +++ b/mpv.spec @@ -1,5 +1,5 @@ Name: mpv -Version: 0.14.0 +Version: 0.15.0 Release: 1%{?dist} Summary: Movie player playing most video formats and DVDs License: GPLv2+ @@ -13,40 +13,39 @@ Patch0: %{name}-config.patch # See https://github.com/mpv-player/mpv/issues/1363 Patch1: %{name}-old-waf.patch -BuildRequires: aalib-devel -BuildRequires: alsa-lib-devel -BuildRequires: bzip2-devel -BuildRequires: compat-lua-devel +BuildRequires: pkgconfig(alsa) +BuildRequires: pkgconfig(sdl2) +BuildRequires: pkgconfig(zlib) +BuildRequires: pkgconfig(gbm) +BuildRequires: pkgconfig(jack) +BuildRequires: pkgconfig(lua-5.1) BuildRequires: desktop-file-utils BuildRequires: ffmpeg-devel -BuildRequires: ffmpeg-libs -BuildRequires: lcms2-devel -BuildRequires: libcdio-devel -BuildRequires: libcdio-paranoia-devel -BuildRequires: libGL-devel -BuildRequires: libXScrnSaver-devel -BuildRequires: libXinerama-devel -BuildRequires: libXv-devel -BuildRequires: libass-devel -BuildRequires: libbluray-devel -BuildRequires: libdvdnav-devel -BuildRequires: libguess-devel -BuildRequires: libquvi-devel -BuildRequires: libsmbclient-devel -BuildRequires: libva-devel -BuildRequires: libvdpau-devel -BuildRequires: libwayland-client-devel -BuildRequires: libwayland-cursor-devel -BuildRequires: libwayland-server-devel -BuildRequires: libxkbcommon-devel -BuildRequires: lirc-devel -BuildRequires: mesa-libEGL-devel -BuildRequires: ncurses-devel -BuildRequires: perl-Encode -BuildRequires: pulseaudio-libs-devel +BuildRequires: pkgconfig(lcms2) +BuildRequires: pkgconfig(libcdio) +BuildRequires: pkgconfig(libcdio_paranoia) +BuildRequires: pkgconfig(gl) +BuildRequires: pkgconfig(xscrnsaver) +BuildRequires: pkgconfig(xinerama) +BuildRequires: pkgconfig(xv) +BuildRequires: pkgconfig(libass) +BuildRequires: pkgconfig(libbluray) +BuildRequires: pkgconfig(dvdnav) +BuildRequires: pkgconfig(libguess) +BuildRequires: pkgconfig(libquvi-0.9) +BuildRequires: pkgconfig(smbclient) +BuildRequires: pkgconfig(libva) +BuildRequires: pkgconfig(vdpau) +BuildRequires: pkgconfig(wayland-client) +BuildRequires: pkgconfig(wayland-cursor) +BuildRequires: pkgconfig(wayland-egl) +BuildRequires: pkgconfig(xkbcommon) +BuildRequires: pkgconfig(lirc) +BuildRequires: pkgconfig(libpulse) BuildRequires: python-docutils BuildRequires: waf BuildRequires: wayland-devel +BuildRequires: mesa-libEGL-devel %if 0%{?fedora} >= 23 BuildRequires: perl-Math-BigInt @@ -94,27 +93,18 @@ waf configure \ --mandir="%{_mandir}" \ --docdir="%{_docdir}/%{name}" \ --confdir="%{_sysconfdir}/%{name}" \ - --disable-sdl1 --disable-sdl2 \ --disable-build-date \ - --enable-libmpv-shared + --enable-libmpv-shared \ + --enable-gpl3 \ + --enable-sdl2 waf build --verbose %{?_smp_mflags} %install waf --destdir=%{buildroot} install %{?_smp_mflags} -# Default config files -install -Dpm 644 etc/example.conf %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf -install -Dpm 644 etc/input.conf %{buildroot}%{_sysconfdir}/%{name}/input.conf - desktop-file-install etc/mpv.desktop - -for RES in 16 32 64; do - install -Dpm 644 etc/mpv-icon-8bit-${RES}x${RES}.png %{buildroot}%{_datadir}/icons/hicolor/${RES}x${RES}/apps/%{name}.png -done -install -Dpm 644 etc/%{name}-gradient.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{name}-gradient.svg install -Dpm 644 etc/%{name}-symbolic.svg %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps/%{name}-symbolic.svg -install -Dpm 644 etc/%{name}.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg %post update-desktop-database &>/dev/null || : @@ -125,12 +115,10 @@ update-desktop-database &> /dev/null || : if [ $1 -eq 0 ] ; then touch --no-create %{_datadir}/icons/hicolor &>/dev/null gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor &>/dev/null || : - glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : fi %posttrans gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor &>/dev/null || : -glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : %post -n libmpv -p /sbin/ldconfig @@ -144,9 +132,7 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : %{_datadir}/icons/hicolor/*/apps/%{name}*.* %{_mandir}/man1/%{name}.* %dir %{_sysconfdir}/%{name} -%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf %config(noreplace) %{_sysconfdir}/%{name}/encoding-profiles.conf -%config(noreplace) %{_sysconfdir}/%{name}/input.conf %files -n libmpv %doc LICENSE README.md Copyright @@ -158,6 +144,9 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : %{_libdir}/pkgconfig/mpv.pc %changelog +* Thu Jan 21 2016 Evgeny Lensky - 0.15.0-1 +- update to 0.15.0 + * Sat Dec 12 2015 Evgeny Lensky - 0.14.0-1 - update to 0.14.0 @@ -314,4 +303,3 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : * Mon Aug 19 2013 Miro HronĨok - 0.1.2-1 - Initial spec - Inspired a lot in mplayer.spec - diff --git a/sources b/sources index 4ec778f..261e5c3 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -9f78599b52d9e603f2481d36746ddd0c v0.14.0.tar.gz +9042bd3fbff2bc8ba0b7fadaa4a22101 v0.15.0.tar.gz