mpv/mpv.spec

209 lines
5.9 KiB
RPMSpec

Name: mpv
Version: 0.36.0
Release: 1mamba
Summary: A free (as in freedom) media player for the command line
Group: Applications/Multimedia
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://mpv.io/
Source: https://github.com/mpv-player/mpv.git/v%{version}/mpv-%{version}.tar.bz2
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libSDL2-devel
BuildRequires: libX11-devel
BuildRequires: libXScrnSaver-devel
BuildRequires: libXext-devel
BuildRequires: libXinerama-devel
BuildRequires: libXrandr-devel
BuildRequires: libXv-devel
BuildRequires: libalsa-devel
BuildRequires: libarchive-devel
BuildRequires: libass-devel
BuildRequires: libavcodec-ffmpeg-devel
BuildRequires: libavdevice-ffmpeg-devel
BuildRequires: libavfilter-ffmpeg-devel
BuildRequires: libavformat-ffmpeg-devel
BuildRequires: libavutil-ffmpeg-devel
BuildRequires: libbluray-devel
BuildRequires: libcaca-devel
BuildRequires: libcdio-devel
BuildRequires: libcdio-paranoia-devel
BuildRequires: libdrm-devel
BuildRequires: libdvdnav-devel
BuildRequires: libdvdread-devel
BuildRequires: libglvnd-devel
BuildRequires: libjack-devel
BuildRequires: libjpeg-devel
BuildRequires: liblcms2-devel
BuildRequires: liblua-devel
BuildRequires: libmesa-devel
BuildRequires: libopenal-devel
BuildRequires: libpipewire-devel
BuildRequires: libpulseaudio-devel
BuildRequires: libreadline-devel
BuildRequires: librubberband-devel
BuildRequires: libswresample-ffmpeg-devel
BuildRequires: libswscale-ffmpeg-devel
BuildRequires: libuchardet-devel
BuildRequires: libva-devel
BuildRequires: libvdpau-devel
BuildRequires: libwayland-devel
BuildRequires: libwayland-egl-devel
BuildRequires: libxkbcommon-devel
BuildRequires: libxpresent-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description
mpv is a free (as in freedom) media player for the command line.
It 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}.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Development files for lib%{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n lib%{name}-devel
This package contains development files for lib%{name}.
%debug_package
%prep
%setup -q
./bootstrap.py
%build
./waf configure \
--prefix=%{_prefix} \
--libdir=%{_libdir} \
--confdir=%{_sysconfdir}/mpv \
--enable-alsa \
--enable-cdda \
--enable-cplugins \
--enable-dvb \
--enable-dvdnav \
--enable-iconv \
--enable-jack \
--enable-lcms2 \
--enable-libavdevice \
--enable-libbluray \
--enable-libarchive \
--enable-libmpv-shared \
--enable-manpage-build \
--enable-openal \
--enable-pulse \
--enable-rubberband \
--enable-sdl2 \
--enable-drm \
--enable-gbm \
--enable-wayland \
--enable-x11 \
--enable-xv \
--enable-gl-x11 \
--enable-egl-x11 \
--enable-egl-drm \
--enable-gl-wayland \
--enable-vdpau \
--enable-vdpau-gl-x11 \
--enable-vaapi \
--enable-vaapi-x11 \
--enable-vaapi-wayland \
--enable-vaapi-drm \
--enable-vaapi-x-egl \
--enable-caca \
--enable-jpeg \
--enable-plain-gl \
--enable-gl \
--enable-dvbin \
--disable-build-date
./waf build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
./waf install --destdir=%{buildroot}
install -d -m0755 %{buildroot}%{_datadir}/mpv/scripts
install -D -m0644 TOOLS/lua/* %{buildroot}%{_datadir}/mpv/scripts/
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%dir %{_sysconfdir}/mpv
%config(noreplace) %{_sysconfdir}/mpv/encoding-profiles.conf
%{_bindir}/mpv
%{_datadir}/applications/mpv.desktop
%{_datadir}/metainfo/mpv.metainfo.xml
%{_datadir}/bash-completion/completions/mpv
%{_datadir}/icons/hicolor/*/apps/mpv.png
%{_datadir}/icons/hicolor/scalable/apps/mpv.svg
%{_datadir}/icons/hicolor/symbolic/apps/mpv-symbolic.svg
%dir %{_datadir}/mpv
%dir %{_datadir}/mpv/scripts
%{_datadir}/mpv/scripts/*
%{_datadir}/zsh/site-functions/_mpv
%dir %{_datadir}/doc/mpv
%{_datadir}/doc/mpv/*
%{_mandir}/man1/mpv.1*
%doc LICENSE.GPL
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libmpv.so.*
%doc LICENSE.LGPL
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/mpv
%{_includedir}/mpv/*.h
%{_libdir}/libmpv.so
%{_libdir}/pkgconfig/mpv.pc
%doc README.md
%changelog
* Mon Jul 24 2023 Automatic Build System <autodist@mambasoft.it> 0.36.0-1mamba
- automatic version update by autodist
* Sun Jan 29 2023 Automatic Build System <autodist@mambasoft.it> 0.35.1-1mamba
- automatic version update by autodist
* Tue Nov 22 2022 Automatic Build System <autodist@mambasoft.it> 0.35.0-1mamba
- automatic version update by autodist
* Tue Jan 04 2022 Automatic Build System <autodist@mambasoft.it> 0.34.1-1mamba
- automatic version update by autodist
* Tue Nov 02 2021 Automatic Build System <autodist@mambasoft.it> 0.34.0-1mamba
- automatic version update by autodist
* Tue Apr 06 2021 Automatic Build System <autodist@mambasoft.it> 0.33.1-1mamba
- automatic version update by autodist
* Sun Feb 21 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.33.0-2mamba
- specfile reworked to fix errors and install headers
* Mon Jan 25 2021 Automatic Build System <autodist@mambasoft.it> 0.33.0-1mamba
- automatic version update by autodist
* Tue May 12 2020 Automatic Build System <autodist@mambasoft.it> 0.32.0-1mamba
- automatic version update by autodist
* Mon Apr 17 2017 Ercole 'ercolinux' Carpanetto <ercole69@gmail.com> 0.24.0-1mamba
- package created using the webbuild interface