Accepting request 294112 from home:pluskalm:branches:home:mermoldy:multimedia

mplayer alternative, waf and libav/ffmpeg will be available in factory soon

Please set me as maintainer

OBS-URL: https://build.opensuse.org/request/show/294112
OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/mpv?expand=0&rev=1
This commit is contained in:
Takashi Iwai 2015-04-07 12:44:00 +00:00 committed by Git OBS Bridge
commit 8937336113
5 changed files with 687 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

472
mpv.changes Normal file
View File

@ -0,0 +1,472 @@
-------------------------------------------------------------------
Sat Mar 21 08:35:59 UTC 2015 - mpluskal@suse.com
- Use url for source
- Minor spec file cleanups
-------------------------------------------------------------------
Fri Mar 20 13:06:44 EET 2015 - mermoldy@gmail.com
- Version bump to 0.8.3:
Changes
* Documentation fixes and updates.
* (Client API) Clarify mpv_opengl_cb_render's viewport parameter behavior.
Bug fixes
* (X11) Fix crash on vo_xv:no-colorkey with the Overlay adapter. (bug #1629)
* Make the video equalizer work correctly on some VAAPI drivers. (bug #1647)
* Prevent OSD from disappearing when clicking on mozplugger. (bug #1672)
* The new DVB-S2 support code, using S2API, now builds on FreeBSD.
* Fix decoding of seekable matroska from unseekable network stream. (bug #1656)
* (OSX) Fix crashing when closing a VO's window (usually at exit). (bug #1657)
* (OSX) Unhide the mouse cursor when over the Dock or Launchpad. (bug #513)
* (OSX) Fix mouse cursor autohiding when the player is fullscreen.
* vf_vavpp (VAAPI postprocessing) now deinterlaces video correctly.
* smb:// streams now use the stream cache (used to be inefficient).
* (Windows) Do not hide the mouse cursor when it is hovering the window menu.
* Fix 8-channel output on ao_jack. (bug #1688)
* Fix --mf-fps parameter on JPEG files. (bug #1689)
* Fix anamorphic scaling being ignored if it was very minor.
-------------------------------------------------------------------
Fri Jan 30 10:12:50 UTC 2015 - scarabeus@opensuse.org
- Add BSD-3-Clause license as it is what waf is under
-------------------------------------------------------------------
Thu Jan 29 09:10:14 UTC 2015 - aloisio@gmx.com
- Version bump to 0.7.3:
Changes
* Several documentation updates and typo fixes.
* Don't show "0%" position when the stream is infinite / has
unknown length.
* Fixes the config file loading order so that lower priority
`mpv.conf` files don't override higher priority `config` files.
* The subtitle decoder now gets reset when cycling subtitles.
This makes the currently shown subtitle event disappear even if
cycling back to the current subtitle track.
* `--shuffle` and `--merge-files` now affects the contents of
playlist files, instead of just the list of files given as
arguments to mpv.
* (Linux) `ao_alsa` now deals better with audio device
disconnection.
Bug fixes
* Fixes for handling mono audio on various AOs.
* (Linux) Fixes resuming from suspend on ao_alsa.
* Fixes for playlist file parsing.
* Fix rendering resolution of certain DVB subtitles (bug #1425).
* Fix EDL or --merge-files breaking timestamps with .avi files.
* Workaround for libavcodec bug with the VP9 codec parser
(bug #1448), fixes possible crash.
* Improve robustness of the matroska parser with broken files
(bugs #1457, #1461).
* Improve 10bit video compatibility with older GPUs (specially Intel)
(bug #1383).
* Fixes flashing the VO window when playing a list of files that
includes non-media files (bug #1459).
* Workaround for window embedding in OpenBox (bug #1235)
* Fixes for several crashes and lockups (bugs #838, #1389, #1408,
#1463, #1473, #1474).
* Fixes for the zsh completion script (bugs #997)
New features
* mpv now prints the contents of its config.h when running in
verbose mode, to aid with debugging.
* The `include=` option now accepts `~` to refer to the HOME dir
(bug #1406).
* `af_volume` now prints ReplayGain values in verbose mode.
* m3u playlists that don't have the `#EXTM3U` header are now
accepted if they "look like" ASCII or UTF-8 text and have the
.m3u extension.
* Chapter marks in the seek bar now update when switching files.
* Supports embedded cover art in MKV files (bug #1374).
* (Linux) vo_wayland now supports key modifiers (Meta, Alt,
Control, Shift)
-------------------------------------------------------------------
Thu Dec 25 14:15:44 UTC 2014 - scarabeus@opensuse.org
- Version bump to 0.7.2:
* update waf to 0.8.5
* Give precedence to the DVD menu navigation keyboard bindings so that user
defined LEFT/RIGHT/... bindings don't break DVD menu navigation.
* Try to fallback to the "default" device if the selected device is busy in
the alsa AO.
* Restore ab-loop settings with playback resume.
* Don't signal an error if --stream-dump is used.
* Fix removing key bindings from Lua scripts.
* Reject channel descriptions with too many channels in the coreaudio AO.
* Don't async redraw when waiting for VO redraw on OS X (this fixes the very
annoying glitch where the black bars disappear for a single frame when
going fullscreen).
* Fix mono playback with the also AO.
* Don't crash if framebuffers are not available in the opengl VO.
-------------------------------------------------------------------
Sat Dec 20 20:06:01 UTC 2014 - seife+obs@b1-systems.com
- fix the UNKNOWN replacement :-)
-------------------------------------------------------------------
Tue Dec 16 08:26:27 UTC 2014 - scarabeus@opensuse.org
- Replace the UNKNOWN in --version with date from changelog
-------------------------------------------------------------------
Sun Dec 14 11:09:17 UTC 2014 - scarabeus@opensuse.org
- Quvi was dropped so remove it from the deps
-------------------------------------------------------------------
Fri Dec 5 15:23:57 UTC 2014 - scarabeus@opensuse.org
- Version bump to 0.7.1:
* Don't show the volume neutral marker on the OSD if softvol is disabled.
* Don't select a subtitle track when executing the sub_add input command in "auto" mode.
* Fix busy loop when seeking while paused (this fixes a problem with pulseaudio that caused mpv and the pulseaudio daemon to use 100% CPU).
* Fix Lua function utils.subprocess() in Windows versions older than Vista.
* Avoid creating a window bigger than the screen on Windows.
* Don't ignore the last line in m3u playlists.
* Don't crash if a codec could not be opened.
* Dynamically allocate audio channel map entries (this should fix a crash in the alsa and coreaudio AOs with audio devices that support more than 20 channel maps).
* Ignore the "srgb" option in the opengl VO if hardware decoding is enabled.
* Linearize non-RGB sRGB files correctly (eg. JPEG).
* Fix opening reference URLs (.file/id=) on OS X.
* Buffer partial log messages in the client API (the client API will now only pass full log messages to clients).
* Remove ncurses/terminfo/termcap support (it was disabled by default and replaced by new code since v0.6.0).
* Enable cdda:// support by default again (it was disabled since v0.6.0).
* Cascade-load input.conf (if there are several input.confs in the set of valid config paths, load them all).
* Draw the OSD twice in 3D mode (this fixes subtitles display in 3D mode).
* Make wasapi the default AO on Windows again since many of its problems have been solved.
* Use "site-functions" subdir to install the zsh completion script instead of the Debian-specific "vendor-completions" (also provide the --zshdir waf configure option for changing this value).
* Improve synchronization between the Cocoa GUI and the player (this fixes some long standing deadlock issues on Mac OS X).
* Remove --fs-missioncontrol option (only relevant to Mac OS X).
* Enable pitch correction by default when playing at higher speeds (this can be controlled with the --audio-pitch-correction option).
* Open stream and demuxer asynchronously (this should avoid having the player get blocked on network streams).
* Add cache-buffering-state property for querying the cache fill status until the player unpauses.
* Add support for listing and selecting the audio device (note that it is not implemented for all AOs, see the --audio-device option for more information).
* Add support for a JSON-based IPC mechanism (note that this is not currently supported on Windows, see the JSON IPC section in the manpage for more information).
* Add Lua utility function for starting processes (see utils.subprocess() in the manpage).
* Add Lua utility function for parsing JSON (see utils.parse_json() in the manpage).
* Add field-dominance property (see --field-dominance option).
* Add video-rotate property (see --video-rotate option).
* Add playback-abort property for querying whether playback is stopped or is to be stopped.
* Add cursor-autohide property (see --cursor-autohide option).
* Add vo-configured property for querying whether a window is created.
* Add support for dxva2 hardware acceleration on Windows.
* Drop libquvi support (this has been replaced by a built-in Lua script that invokes the youtube-dl tool, which needs to be installed, see the --ytdl option).
* Add support for loading chapters from an external file (see the --chapters-file option).
* Add window-minimized property for querying whether the window is minimized (works for X11 only).
* Make it possible to configure the OSC seekbar style (see the "seekbarstyle" OSC option).
* Add support for libmpv on Mac OS X (it used to be broken, now it's fully functional and also provides support for embedding the mpv window inside a Cocoa/Qt application).
* Try to use the audio channel map reported by ALSA in the alsa AO.
* Add option to disable text OSD rendering completely (useful for working around certain fontconfig issues, see the --use-text-osd option).
-------------------------------------------------------------------
Mon Nov 24 19:48:13 UTC 2014 - scarabeus@opensuse.org
- Add --enable-libmpv-shared to build shared library.
-------------------------------------------------------------------
Mon Nov 24 12:39:54 UTC 2014 - scarabeus@opensuse.org
- Revert back to support wayland.
-------------------------------------------------------------------
Fri Nov 21 11:30:17 UTC 2014 - scarabeus@opensuse.org
- Blacklist the wayland as it for some reason now have trouble properly
linking resulting in unresolvable package
-------------------------------------------------------------------
Mon Oct 27 20:24:54 UTC 2014 - scarabeus@opensuse.org
- Version bump to 0.6.2:
* The --ass-style-override option now requires a newer version of libass.
* Correctly signal EOF when using --frames.
* Strictly endorce the limit imposed by --frames (i.e. avoid producing an extra frame at the end).
* Fix \x-style escaping when parsing commands.
* Correctly handle ^h key on the terminal (this should fix the when inserted from Backspace key on new versions of xterm).
* Don't put the player to sleep after audio reinit.
* Properly exit if both audio and video fail to initialize.
-------------------------------------------------------------------
Thu Oct 16 14:38:23 UTC 2014 - scarabeus@opensuse.org
- Version bump to 0.6.1:
* Don't show message on "osd" command by default (this essentially reverts a change introduced in the last release).
* Add an alternative input configuration that reverts the key binding changes introduced by previous releases (see etc/restore-old-bindings.conf in the sources).
* Automatically install example input configuration files.
* Fix stream languages with Bluray
* Don't try to create surfaces of size 0 in the VDPAU vo.
* Don't print audio/video init failure message twice.
* Fix playback on the root window on X11 (i.e. when using --wid=0).
* Fix the autodetection of the input format in the vf_stereo3d filter when mpv is built against libav (this makes --video-stereo-mode work with libav as well).
* Fix compilation with PulseAudio 1.0.
* Fix compilation with clang.
* Try harder to decode cover art picture only once.
* Fix cursor autohide (--cursor-autohide) with audio-only files on file change (e.g. when skipping to the next playlist file).
-------------------------------------------------------------------
Wed Oct 1 11:39:10 UTC 2014 - aloisio@gmx.com
- Version bump to 0.6.0
* Numerous changes and new features, see official changelog
-------------------------------------------------------------------
Thu Sep 11 10:49:42 UTC 2014 - scarabeus@opensuse.org
- Version bump to 0.5.3:
* Do not honor XDG_CONFIG_DIRS to always read global configs
* Fix speed behaviour changes
* Seeking fixes
* Handle EOF better
-------------------------------------------------------------------
Fri Aug 29 14:18:50 UTC 2014 - scarabeus@opensuse.org
- Version bump to 0.5.1:
* Various changes with major release
* Also look in XDG folders for config
* Default config renamed to mpv.conf
-------------------------------------------------------------------
Mon Aug 4 18:21:36 UTC 2014 - scarabeus@opensuse.org
- Version bump to 0.4.2:
* Fix --cache-file operation when file size is unknown (e.g. when playing from a pipe).
* Don't sleep if playback is stopped when reconnecting for remote stream.
* Suspend read on vts change even if the requested title is not found when using dvdnav (dvd://) (this fixes a bug where the DVD menu was not shown properly after a DVD track ended).
* Avoid draining if the audio output is paused (this fixes a bug where mpv would hang when switching tracks when paused).
* Drop buffered audio when switching tracks or filters (this fixes a possible regression when using gapless audio).
* Reverse video rotation direction.
* Fix initialization of the input when playing from a pipe.
* Fix description of the --mf option in the manpage (the --mf syntax changed a while ago, but was not documented).
* Actually append entries to the end of the playlist instead of after the current entry with the "loadlist append" command.
-------------------------------------------------------------------
Sun Jul 13 18:39:04 UTC 2014 - scarabeus@opensuse.org
- Version bump to 0.4.1:
* Various small bugfixes
-------------------------------------------------------------------
Tue Jul 1 10:42:00 UTC 2014 - scarabeus@opensuse.org
- Version bump to 0.4.0:
* Manpages generating now uses only rst2...
* Enforce enabling cdda
* Update requirement for new waf tarball
+ Use dvdnav for dvd:// parsing
+ Various cli arguments changed name see --help for changes
+ Removed radio support
+ For more read https://github.com/mpv-player/mpv/releases/tag/v0.4.0
-------------------------------------------------------------------
Mon Jun 23 12:57:19 UTC 2014 - scarabeus@opensuse.org
- Version bump to 0.3.11:
* Small fixes
* Fix to build with latest git ffmpeg
-------------------------------------------------------------------
Mon May 26 08:42:16 UTC 2014 - scarabeus@opensuse.org
- Version bump to 0.3.10
* Various small fixes.
-------------------------------------------------------------------
Wed Apr 30 12:35:33 UTC 2014 - scarabeus@opensuse.org
- Version bump to 0.3.9:
* Various small fixes.
-------------------------------------------------------------------
Sun Apr 20 19:51:42 UTC 2014 - scarabeus@opensuse.org
- Version bump to 0.3.8:
* Bugfixes around vo=vdpau mostly
-------------------------------------------------------------------
Mon Mar 31 13:10:58 UTC 2014 - scarabeus@opensuse.org
- Version bump to 0.3.7:
* Small bugfixes especially around old ffmpeg/libav versions.
-------------------------------------------------------------------
Wed Mar 12 13:04:12 UTC 2014 - scarabeus@opensuse.org
- Version bumjp to 0.3.6:
* Various minor bug fixes.
-------------------------------------------------------------------
Sun Feb 16 11:01:24 UTC 2014 - scarabeus@opensuse.org
- Version bump to 0.3.5:
* use the c99 to avoid few issues
* fixes in vo_opengl output
-------------------------------------------------------------------
Tue Feb 4 08:42:16 UTC 2014 - scarabeus@opensuse.org
- Version bump to 0.3.4:
* bugfixes all around
* disabled quvi 0.9 subtitles as they were too broken
-------------------------------------------------------------------
Thu Jan 16 19:50:57 UTC 2014 - scarabeus@opensuse.org
- Version bump to 0.3.3:
* Fixes matroska containers
* Wayland fixes
-------------------------------------------------------------------
Wed Jan 8 07:14:07 UTC 2014 - scarabeus@opensuse.org
- Version bump to 0.3.2:
* Fix regression with autoenabling subtitles with quvi
* Various unspecified bugfixes
-------------------------------------------------------------------
Mon Jan 6 14:54:46 UTC 2014 - scarabeus@opensuse.org
- Version bump to 0.3.1, fixing few issues.
-------------------------------------------------------------------
Thu Jan 2 17:44:15 UTC 2014 - scarabeus@opensuse.org
- Drop support for < 12.3 as even 12.2 will be out of scope in 13
days.
-------------------------------------------------------------------
Mon Dec 30 23:25:07 UTC 2013 - scarabeus@opensuse.org
- Enable libv4l.
-------------------------------------------------------------------
Mon Dec 30 21:06:38 UTC 2013 - scarabeus@opensuse.org
- Version bump to 0.3.0:
* Feature update in various areas, notably support for dvdnav
* Build system was rewritten under waf
* Multiple subtitles can be now displayed at once
* vdpau/vaapi acceleration can be used with opengl output
- Run .desktop file updaters
-------------------------------------------------------------------
Sun Dec 8 11:36:41 UTC 2013 - scarabeus@opensuse.org
- Version bump to 0.2.4:
* Audio fixes
* Small bugfixes
-------------------------------------------------------------------
Sat Nov 23 10:42:49 UTC 2013 - scarabeus@opensuse.org
- Reduce pkgconfig deps where it seems proper.
-------------------------------------------------------------------
Sat Nov 23 09:51:15 UTC 2013 - scarabeus@opensuse.org
- Fix docu generating and add luajit dependency.
- Try to convert the deps to pkgconfig syntax.
-------------------------------------------------------------------
Sat Nov 9 10:02:42 UTC 2013 - scarabeus@opensuse.org
- Verison bump to 0.2.3:
* Handle more signals
* Fix audio detection with some formats
* More tiny fixes
-------------------------------------------------------------------
Wed Nov 6 13:15:30 UTC 2013 - scarabeus@opensuse.org
- Version bump to 0.2.2:
* Tiny bugfixes
- Depend on rst2tex when available, still broken configure check
to be fixed next time.
-------------------------------------------------------------------
Mon Oct 21 12:19:06 UTC 2013 - scarabeus@opensuse.org
- Version bump to 0.2.1:
* Various small fixes
- Fix build with samba again, fixed in git properly for next
release.
-------------------------------------------------------------------
Thu Oct 17 20:39:01 UTC 2013 - scarabeus@opensuse.org
- Fix directory ownership on icondirs.
-------------------------------------------------------------------
Thu Oct 17 19:46:34 UTC 2013 - scarabeus@opensuse.org
- Version bump to 0.2.0:
* new icon
* Add an On Screen Controller (OSC)
* Subtitles: make automatic charset detection the default
* More intuitive chapter seeking behavior
* support for VA-API hardware decoding and display
* Preliminary Lua scripting support
* Switch to GPL version 2 or later for mpv as a whole
-------------------------------------------------------------------
Tue Sep 24 09:18:50 UTC 2013 - scarabeus@opensuse.org
- Install configuration examples for users to inspire themselves.
-------------------------------------------------------------------
Mon Sep 23 14:06:05 UTC 2013 - scarabeus@opensuse.org
- Version bump to 0.1.7:
* manpage fixes
* mkv subtitle fixes
* various bugfixes
-------------------------------------------------------------------
Mon Sep 16 14:57:14 UTC 2013 - scarabeus@opensuse.org
- Make mpv build on 12.2 too, what a release.
-------------------------------------------------------------------
Mon Sep 16 14:49:45 UTC 2013 - scarabeus@opensuse.org
- Disable jack on 11.4 so the package actually builds.
-------------------------------------------------------------------
Mon Sep 16 13:16:24 UTC 2013 - scarabeus@opensuse.org
- And make 11.4 happy too wrt dep resolution.
-------------------------------------------------------------------
Mon Sep 16 13:10:42 UTC 2013 - scarabeus@opensuse.org
- Make this work with older releases too (versioned ifs for deps).
-------------------------------------------------------------------
Sun Sep 15 14:26:44 UTC 2013 - scarabeus@opensuse.org
- Update license and ship readme.
-------------------------------------------------------------------
Sun Sep 15 14:22:01 UTC 2013 - scarabeus@opensuse.org
- Fix description.
-------------------------------------------------------------------
Sun Sep 15 14:18:11 UTC 2013 - scarabeus@opensuse.org
- Fix dep on python3-docutils as they are borked now, use py2 for
time being, told sachpe to figure it out.
-------------------------------------------------------------------
Sun Sep 15 14:09:57 UTC 2013 - scarabeus@opensuse.org
- Sort out remaining dependencies so we can build.
-------------------------------------------------------------------
Sun Sep 15 13:43:50 UTC 2013 - scarabeus@opensuse.org
- Initial spec file for mpv media player.
* Based from mplayer2 spec.

188
mpv.spec Normal file
View File

@ -0,0 +1,188 @@
#
# spec file for package mpv
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2012 Jiri Slaby <jslaby@suse.de>
# Copyright (c) 2011-2012 Pascal Bleser <pascal.bleser@opensuse.org>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define libname libmpv1
Name: mpv
Version: 0.8.3
Release: 0
Summary: Advanced General Purpose Video Player
License: GPL-2.0+
Group: Productivity/Multimedia/Video/Players
Url: http://mpv.io/
Source0: https://github.com/mpv-player/mpv/archive/v%{version}.tar.gz
Source1: %{name}.changes
#BuildRequires: ffmpeg-devel
BuildRequires: hicolor-icon-theme
BuildRequires: ladspa-devel
BuildRequires: libjpeg-devel
BuildRequires: libmng-devel
BuildRequires: libv4l-devel
BuildRequires: linux-kernel-headers
BuildRequires: lirc-devel
BuildRequires: lua-devel
BuildRequires: luajit-devel
BuildRequires: ncurses-devel
BuildRequires: perl
BuildRequires: pkgconfig
BuildRequires: pulseaudio-devel
# replace with python3-docutils when they are fixed
BuildRequires: python-docutils
BuildRequires: python-rst2pdf
BuildRequires: python3
BuildRequires: update-desktop-files
BuildRequires: waf
BuildRequires: yasm
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(caca)
BuildRequires: pkgconfig(dri)
BuildRequires: pkgconfig(dvdnav)
BuildRequires: pkgconfig(dvdread)
BuildRequires: pkgconfig(egl)
BuildRequires: pkgconfig(enca)
BuildRequires: pkgconfig(jack)
BuildRequires: pkgconfig(lcms2)
BuildRequires: pkgconfig(libass)
BuildRequires: pkgconfig(libavcodec)
BuildRequires: pkgconfig(libavdevice)
BuildRequires: pkgconfig(libavfilter)
BuildRequires: pkgconfig(libavformat)
BuildRequires: pkgconfig(libavresample)
BuildRequires: pkgconfig(libavutil)
BuildRequires: pkgconfig(libbluray)
BuildRequires: pkgconfig(libbs2b)
BuildRequires: pkgconfig(libcdio)
BuildRequires: pkgconfig(libcdio_cdda)
BuildRequires: pkgconfig(libcdio_paranoia)
BuildRequires: pkgconfig(libguess)
BuildRequires: pkgconfig(libiso9660)
BuildRequires: pkgconfig(libswscale)
BuildRequires: pkgconfig(libudf)
BuildRequires: pkgconfig(libva)
BuildRequires: pkgconfig(libva-x11)
BuildRequires: pkgconfig(openal)
BuildRequires: pkgconfig(portaudio-2.0)
BuildRequires: pkgconfig(smbclient)
BuildRequires: pkgconfig(vdpau)
BuildRequires: pkgconfig(wayland-client)
BuildRequires: pkgconfig(wayland-cursor)
BuildRequires: pkgconfig(wayland-egl)
BuildRequires: pkgconfig(wayland-scanner)
BuildRequires: pkgconfig(wayland-server)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xinerama)
BuildRequires: pkgconfig(xkbcommon)
BuildRequires: pkgconfig(xrandr)
BuildRequires: pkgconfig(xscrnsaver)
BuildRequires: pkgconfig(xv)
BuildRequires: pkgconfig(xxf86vm)
BuildRequires: pkgconfig(zlib)
# Used via LUA scripts
Recommends: youtube-dl
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
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.
%package devel
Summary: A library to link together with mpv player
Group: Development/Libraries/C and C++
Requires: %{libname} = %{version}
%description devel
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.
This package contains all the development files.
%package -n %{libname}
Summary: A library to link together with mpv player
Group: Development/Libraries/C and C++
%description -n %{libname}
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.
This package contains a library that can other apps use to utilize the mpv
features.
%prep
%setup -q
# I hate UNKNOWN so lets put decent info there
modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{SOURCE1}")"
DATE="$(date -d "${modified}" "+%%b %%e %%Y")"
sed -i \
-e "s:UNKNOWN:${DATE}:g" \
common/version.c
%build
CCFLAGS="%{optflags}" \
waf configure \
--prefix="%{_prefix}" \
--bindir="%{_bindir}" \
--mandir="%{_mandir}" \
--libdir="%{_libdir}" \
--docdir="%{_docdir}/%{name}" \
--confdir="%{_sysconfdir}/%{name}" \
--enable-openal \
--enable-cdda \
--enable-libmpv-shared \
--disable-sdl1 \
--disable-sdl2 \
--disable-build-date \
--disable-debug
waf build --verbose %{?_smp_mflags}
%install
waf --destdir=%{buildroot} install %{?_smp_mflags}
%post
%desktop_database_post
%postun
%desktop_database_postun
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%files -n %{libname}
%defattr(-,root,root,-)
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root,-)
%{_includedir}/%{name}
%{_libdir}/*.so
%{_libdir}/pkgconfig/%{name}.pc
%files
%defattr(-,root,root)
%doc LICENSE Copyright README.md etc/example.conf etc/input.conf
%dir %{_sysconfdir}/%{name}
%config %{_sysconfdir}/%{name}/encoding-profiles.conf
%{_bindir}/%{name}
%doc %{_mandir}/man1/%{name}.1*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%changelog

3
v0.8.3.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:091038c802866848e3647f2a50215fa64ead0dc36f9114457db8b353528689cf
size 2664730