Accepting request 724722 from home:namtrac:branches:multimedia:apps
Since mpv no longer does release since a year or so, switch to git snapshots. - Update to version 0.30.0+git.1566288741.80552ab28e: * vo_gpu: d3d11: fix storage lifetime of compound literals * encode: set sample_aspect_ratio on AVStream struct * vo_gpu: fix taking screenshots of rotated videos * vo_gpu: hwdec_vaapi: Synchronise after exporting VA surface * DOCS/compile-windows: remove angleproject-git from deps * TOOLS/travis-rebuild-website: update condition after docker transition * cocoa-cb: migrate to swift 5 with swift 4 fallback * cocoa-cb: fix optional cases on macOS 10.12 * build: fix build with older command line tools * build: make macOS SDK path and version configurable via env vars OBS-URL: https://build.opensuse.org/request/show/724722 OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/mpv?expand=0&rev=152
This commit is contained in:
committed by
Git OBS Bridge
parent
169d649834
commit
e23a797d28
18
mpv.spec
18
mpv.spec
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package mpv
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2015 Packman Team <packman@links2linux.de>
|
||||
# Copyright (c) 2012 Jiri Slaby <jslaby@suse.de>
|
||||
# Copyright (c) 2011-2012 Pascal Bleser <pascal.bleser@opensuse.org>
|
||||
@@ -21,16 +21,15 @@
|
||||
|
||||
%define _waf_ver 2.0.9
|
||||
%define _mbc_ver 3.3.17
|
||||
%define _mpv_ver 0.29.1
|
||||
%define lname libmpv1
|
||||
Name: mpv
|
||||
Version: %{_mpv_ver}
|
||||
Version: 0.30.0+git.1566288741.80552ab28e
|
||||
Release: 0
|
||||
Summary: Advanced general-purpose multimedia player
|
||||
License: GPL-2.0-or-later
|
||||
Group: Productivity/Multimedia/Video/Players
|
||||
Url: http://mpv.io/
|
||||
Source: http://github.com/mpv-player/%{name}/archive/v%{_mpv_ver}.tar.gz#/%{name}-%{_mpv_ver}.tar.gz
|
||||
Source: %{name}-%{version}.tar.xz
|
||||
Source1: https://waf.io/waf-%{_waf_ver}
|
||||
Source2: %{name}.changes
|
||||
# mpv-bash-completion is licensed with GPL-3.0+
|
||||
@@ -71,6 +70,7 @@ BuildRequires: pkgconfig(libcdio_paranoia)
|
||||
BuildRequires: pkgconfig(libdrm)
|
||||
BuildRequires: pkgconfig(libiso9660)
|
||||
BuildRequires: pkgconfig(libkms)
|
||||
BuildRequires: pkgconfig(libplacebo) >= 1.18.0
|
||||
BuildRequires: pkgconfig(libpulse) >= 1.0
|
||||
BuildRequires: pkgconfig(libswresample) >= 3.0.100
|
||||
BuildRequires: pkgconfig(libswscale) >= 5.0.101
|
||||
@@ -141,7 +141,7 @@ Release: 0
|
||||
Summary: Bash Completion for %{name}
|
||||
License: GPL-3.0-or-later
|
||||
Group: Productivity/Multimedia/Video/Players
|
||||
Requires: %{name} = %{_mpv_ver}
|
||||
Requires: %{name} = %{version}
|
||||
Requires: bash-completion
|
||||
Recommends: xrandr
|
||||
Supplements: packageand(mpv:bash)
|
||||
@@ -164,7 +164,7 @@ A Bash completion script for the mpv video player. It features
|
||||
Summary: ZSH Completion for %{name}
|
||||
License: GPL-2.0-or-later
|
||||
Group: Productivity/Multimedia/Video/Players
|
||||
Requires: %{name} = %{_mpv_ver}
|
||||
Requires: %{name} = %{version}
|
||||
Supplements: packageand(mpv:zsh)
|
||||
BuildArch: noarch
|
||||
|
||||
@@ -175,7 +175,7 @@ ZSH command line completion support for %{name}.
|
||||
Summary: A library to link together with mpv player
|
||||
License: GPL-2.0-or-later
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: %{lname} = %{_mpv_ver}
|
||||
Requires: %{lname} = %{version}
|
||||
|
||||
%description devel
|
||||
mpv is a movie player based on MPlayer and mplayer2. It supports a wide variety
|
||||
@@ -196,7 +196,7 @@ This package contains a library that can other apps use to utilize the mpv
|
||||
features.
|
||||
|
||||
%prep
|
||||
%setup -q -a 3 -n %{name}-%{_mpv_ver}
|
||||
%setup -q -a 3
|
||||
%patch0 -p1
|
||||
|
||||
# As we downloaded specific waf version we need to put and prepare it in place.
|
||||
@@ -206,7 +206,7 @@ chmod a+x waf
|
||||
# I hate UNKNOWN so lets put decent info there.
|
||||
MODIFIED="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{SOURCE2}")"
|
||||
DATE="$(date -d "$MODIFIED" "+%%b %%e %%Y")"
|
||||
sed -i "s|UNKNOWN|$DATE|g;s|VERSION|\"%{_mpv_ver}\"|g" common/version.c
|
||||
sed -i "s|UNKNOWN|$DATE|g;s|VERSION|\"%{version}\"|g" common/version.c
|
||||
|
||||
%build
|
||||
# SDL: disable as it is pointless to have on Linux, it is Windows/OS X fallback.
|
||||
|
Reference in New Issue
Block a user