Accepting request 542474 from home:dimstar:Factory
- Add mpv-vaapi2.patch: Fix build iwth vaapi 2.0. The patch is a backport of the commits 93c52b, f35126 and 2ecf24. - Conditionalize use of %desktop_database_post/postun and icon_theme_cache_post/postun to suse_version < 1330. The functionality has since been replaced by file triggers and the macros expand to %nil. OBS-URL: https://build.opensuse.org/request/show/542474 OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/mpv?expand=0&rev=125
This commit is contained in:
committed by
Git OBS Bridge
parent
b3b16add9d
commit
151ef96e76
5
mpv.spec
5
mpv.spec
@@ -37,6 +37,8 @@ Source2: %{name}.changes
|
||||
Source3: https://github.com/2ion/mpv-bash-completion/archive/%{_mbc_ver}.tar.gz#/mpv-bash-completion-%{_mbc_ver}.tar.gz
|
||||
# PATCH-FIX-OPENSUSE do not require equal libav versions, obs rebuilds as needed
|
||||
Patch0: mpv-make-ffmpeg-version-check-non-fatal.patch
|
||||
# PATCH-FIx-UPSTREAM mpv-vaapi2.patch dimstar@opensuse.org -- Fix build with vaapi 2.0
|
||||
Patch1: mpv-vaapi2.patch
|
||||
BuildRequires: bash
|
||||
BuildRequires: hicolor-icon-theme
|
||||
BuildRequires: libjpeg-devel
|
||||
@@ -194,6 +196,7 @@ features.
|
||||
%prep
|
||||
%setup -q -a 3 -n %{name}-%{_mpv_ver}
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
|
||||
# As we downloaded specific waf version we need to put and prepare it in place.
|
||||
cp -f %{SOURCE1} waf
|
||||
@@ -250,6 +253,7 @@ install -D -m 0644 etc/mpv.conf %{buildroot}%{_sysconfdir}/%{name}/mpv.conf
|
||||
# remove shebang
|
||||
sed -i -e '1d' %{buildroot}%{_datadir}/bash-completion/completions/mpv
|
||||
|
||||
%if 0%{?suse_version} < 1330
|
||||
%post
|
||||
%desktop_database_post
|
||||
%icon_theme_cache_post
|
||||
@@ -257,6 +261,7 @@ sed -i -e '1d' %{buildroot}%{_datadir}/bash-completion/completions/mpv
|
||||
%postun
|
||||
%desktop_database_postun
|
||||
%icon_theme_cache_postun
|
||||
%endif
|
||||
|
||||
%post -n %{lname} -p /sbin/ldconfig
|
||||
%postun -n %{lname} -p /sbin/ldconfig
|
||||
|
Reference in New Issue
Block a user