190 lines
5.5 KiB
RPMSpec
190 lines
5.5 KiB
RPMSpec
Name: mpv
|
|
Version: 0.24.0
|
|
Release: 1mamba
|
|
Summary: a fork of mplayer2 and MPlayer
|
|
Group: Applications/Multimedia
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Ercole 'ercolinux' Carpanetto <ercole69@gmail.com>
|
|
URL: https://mpv.io/
|
|
Source: https://github.com/mpv-player/mpv/archive/v%{version}.zip
|
|
License: LGPL
|
|
## AUTOBUILDREQ-BEGIN
|
|
## note: run 'autospec -u -a6 mpv' to get the list of build requirements.
|
|
## AUTOBUILDREQ-END
|
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
%description
|
|
mpv is a fork of mplayer2 and MPlayer. It shares some features with the former projects while introducing many more.
|
|
|
|
%package -n lib%{name}
|
|
Group: System/Libraries
|
|
Summary: Shared libraries for %{name}
|
|
|
|
%description -n lib%{name}
|
|
This package contains shared libraries for %{name}.
|
|
|
|
|
|
%debug_package
|
|
|
|
%prep
|
|
%setup -q -n %{name}-%{version}
|
|
|
|
%build
|
|
./bootstrap.py
|
|
./waf configure \
|
|
--color=yes \
|
|
--bindir=%{buildroot}%{_bindir} \
|
|
--mandir=%{buildroot}%{_mandir} \
|
|
--libdir=%{buildroot}%{_libdir} \
|
|
--docdir=%{buildroot}%{_docdir}/%{name} \
|
|
--confdir=%{buildroot}%{_sysconfdir}/%{name} \
|
|
--prefix=%{buildroot}usr \
|
|
--progress \
|
|
\
|
|
--enable-libmpv-shared \
|
|
--disable-libmpv-static \
|
|
--disable-static-build \
|
|
--disable-debug-build \
|
|
\
|
|
--enable-manpage-build \
|
|
--disable-html-build \
|
|
--disable-pdf-build \
|
|
\
|
|
--enable-cplugins \
|
|
--enable-vf-dlopen-filters \
|
|
--enable-zsh-comp \
|
|
--disable-test \
|
|
--disable-clang-database \
|
|
\
|
|
--disable-win32-internal-pthreads \
|
|
--enable-iconv \
|
|
--enable-termios \
|
|
--enable-shm \
|
|
--enable-libsmbclient \
|
|
--disable-lua \
|
|
--enable-libass \
|
|
--enable-libass-osd \
|
|
--enable-encoding \
|
|
--enable-libbluray \
|
|
--enable-dvdread \
|
|
--enable-dvdnav \
|
|
--disable-cdda \
|
|
--disable-uchardet \
|
|
--enable-rubberband \
|
|
--enable-lcms2 \
|
|
--disable-vapoursynth \
|
|
--disable-vapoursynth-lazy \
|
|
--enable-libarchive \
|
|
--enable-libavdevice \
|
|
\
|
|
--enable-sdl2 \
|
|
--disable-sdl1 \
|
|
--enable-oss-audio \
|
|
--disable-rsound \
|
|
--disable-sndio \
|
|
--enable-pulse \
|
|
--enable-jack \
|
|
--enable-openal \
|
|
--disable-opensles \
|
|
--enable-alsa \
|
|
--disable-coreaudio \
|
|
--disable-audiounit \
|
|
--disable-wasapi \
|
|
\
|
|
--disable-cocoa \
|
|
--enable-drm \
|
|
--enable-gbm \
|
|
--enable-wayland \
|
|
--enable-x11 \
|
|
--enable-xss \
|
|
--enable-xext \
|
|
--enable-xv \
|
|
--enable-xinerama \
|
|
--enable-xrandr \
|
|
--disable-gl-cocoa \
|
|
--enable-gl-x11 \
|
|
--enable-egl-x11 \
|
|
--enable-egl-drm \
|
|
--enable-gl-wayland \
|
|
--disable-gl-win32 \
|
|
--disable-gl-dxinterop \
|
|
--disable-egl-angle \
|
|
--disable-egl-angle-lib \
|
|
--enable-vdpau \
|
|
--enable-vdpau-gl-x11 \
|
|
--enable-vaapi \
|
|
--enable-vaapi-x11 \
|
|
--enable-vaapi-wayland \
|
|
--enable-vaapi-drm \
|
|
--enable-vaapi-glx \
|
|
--enable-vaapi-x-egl \
|
|
--enable-caca \
|
|
--enable-jpeg \
|
|
--disable-direct3d \
|
|
--disable-android \
|
|
--disable-rpi \
|
|
--enable-standard-gl \
|
|
--disable-android-gl \
|
|
--disable-ios-gl \
|
|
--enable-any-gl \
|
|
--enable-plain-gl \
|
|
--disable-mali-fbdev \
|
|
--enable-gl \
|
|
\
|
|
--enable-vaapi-hwaccel \
|
|
--disable-vaapi-hwaccel-new \
|
|
--disable-videotoolbox-hwaccel \
|
|
--disable-videotoolbox-gl \
|
|
--enable-vdpau-hwaccel \
|
|
--disable-d3d-hwaccel \
|
|
--disable-cuda-hwaccel \
|
|
\
|
|
--enable-tv \
|
|
--enable-tv-v4l2 \
|
|
--enable-libv4l2 \
|
|
--enable-audio-input \
|
|
--enable-dvbin \
|
|
--disable-apple-remote
|
|
|
|
./waf build
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
./waf install
|
|
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%post -n lib%{name} -p /sbin/ldconfig
|
|
%postun -n lib%{name} -p /sbin/ldconfig
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_sysconfdir}/mpv/encoding-profiles.conf
|
|
%{_bindir}/mpv
|
|
%{_datadir}/doc/mpv/input.conf
|
|
%{_datadir}/doc/mpv/mplayer-input.conf
|
|
%{_datadir}/doc/mpv/mpv.conf
|
|
%{_datadir}/doc/mpv/restore-old-bindings.conf
|
|
%{_mandir}/man1/mpv.1.gz
|
|
## note: this list is just an example; modify as required
|
|
# %{_bindir}/%{name}
|
|
# %{_mandir}/man1/%{name}.*
|
|
%doc LICENSE
|
|
|
|
%files -n lib%{name}
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libmpv.so
|
|
%{_libdir}/libmpv.so.*
|
|
%{_libdir}/mpv/*.so
|
|
%{_libdir}/pkgconfig/mpv.pc
|
|
%doc README.md
|
|
|
|
|
|
%changelog
|
|
* Mon Apr 17 2017 Ercole 'ercolinux' Carpanetto <ercole69@gmail.com> 0.24.0-1mamba
|
|
- package created using the webbuild interface
|