specfile reworked to fix errors and install headers [release 0.33.0-2mamba;Sun Feb 21 2021]

This commit is contained in:
Silvan Calarco 2024-01-06 07:21:00 +01:00
parent e20d80fdfd
commit 0f388e29d4

163
mpv.spec
View File

@ -1,13 +1,13 @@
Name: mpv Name: mpv
Version: 0.33.0 Version: 0.33.0
Release: 1mamba Release: 2mamba
Summary: A free (as in freedom) media player for the command line Summary: A free (as in freedom) media player for the command line
Group: Applications/Multimedia Group: Applications/Multimedia
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Ercole 'ercolinux' Carpanetto <ercole69@gmail.com> Packager: Ercole 'ercolinux' Carpanetto <ercole69@gmail.com>
URL: https://mpv.io/ URL: https://mpv.io/
Source: https://github.com/mpv-player/mpv/archive/v%{version}.zip Source: https://github.com/mpv-player/mpv.git/v%{version}/mpv-%{version}.tar.bz2
License: LGPL License: LGPL
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel BuildRequires: glibc-devel
@ -30,6 +30,8 @@ BuildRequires: libavformat-ffmpeg-devel
BuildRequires: libavutil-ffmpeg-devel BuildRequires: libavutil-ffmpeg-devel
BuildRequires: libbluray-devel BuildRequires: libbluray-devel
BuildRequires: libcaca-devel BuildRequires: libcaca-devel
BuildRequires: libcdio-devel
BuildRequires: libcdio-paranoia-devel
BuildRequires: libdrm-devel BuildRequires: libdrm-devel
BuildRequires: libdvdnav-devel BuildRequires: libdvdnav-devel
BuildRequires: libdvdread-devel BuildRequires: libdvdread-devel
@ -37,12 +39,14 @@ BuildRequires: libgbm-devel
BuildRequires: libjack-devel BuildRequires: libjack-devel
BuildRequires: libjpeg-devel BuildRequires: libjpeg-devel
BuildRequires: liblcms2-devel BuildRequires: liblcms2-devel
BuildRequires: liblua-devel
BuildRequires: libopenal-devel BuildRequires: libopenal-devel
BuildRequires: libpulseaudio-devel BuildRequires: libpulseaudio-devel
BuildRequires: libreadline-devel
BuildRequires: librubberband-devel BuildRequires: librubberband-devel
BuildRequires: libsmbclient-devel
BuildRequires: libswresample-ffmpeg-devel BuildRequires: libswresample-ffmpeg-devel
BuildRequires: libswscale-ffmpeg-devel BuildRequires: libswscale-ffmpeg-devel
BuildRequires: libuchardet-devel
BuildRequires: libva-devel BuildRequires: libva-devel
BuildRequires: libvdpau-devel BuildRequires: libvdpau-devel
BuildRequires: libwayland-devel BuildRequires: libwayland-devel
@ -67,6 +71,7 @@ This package contains shared libraries for %{name}.
%package -n lib%{name}-devel %package -n lib%{name}-devel
Group: Development/Libraries Group: Development/Libraries
Summary: Development files for lib%{name} Summary: Development files for lib%{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n lib%{name}-devel %description -n lib%{name}-devel
This package contains development files for lib%{name}. This package contains development files for lib%{name}.
@ -74,98 +79,63 @@ This package contains development files for lib%{name}.
%debug_package %debug_package
%prep %prep
%setup -q -n %{name}-%{version} %setup -q
./bootstrap.py
%build %build
./bootstrap.py
./waf configure \ ./waf configure \
--color=yes \ --prefix=%{_prefix} \
--bindir=%{buildroot}%{_bindir} \ --libdir=%{_libdir} \
--mandir=%{buildroot}%{_mandir} \ --confdir=%{_sysconfdir}/mpv \
--libdir=%{buildroot}%{_libdir} \ --enable-alsa \
--docdir=%{buildroot}%{_docdir}/%{name} \ --enable-cdda \
--confdir=%{buildroot}%{_sysconfdir}/%{name} \ --enable-cplugins \
--prefix=%{buildroot}usr \ --enable-dvb \
--progress \ --enable-dvdnav \
\ --enable-iconv \
--enable-libmpv-shared \ --enable-jack \
--disable-libmpv-static \ --enable-lcms2 \
--disable-static-build \ --enable-libavdevice \
--disable-debug-build \ --enable-libbluray \
\ --enable-libarchive \
--enable-manpage-build \ --enable-libmpv-shared \
--disable-html-build \ --enable-manpage-build \
--disable-pdf-build \ --enable-openal \
\ --enable-pulse \
--enable-cplugins \ --enable-rubberband \
--disable-test \ --enable-sdl2 \
--disable-clang-database \ --enable-drm \
\ --enable-gbm \
--disable-win32-internal-pthreads \ --enable-wayland \
--enable-iconv \ --enable-x11 \
--disable-lua \ --enable-xv \
--enable-libbluray \ --enable-gl-x11 \
--enable-dvdnav \ --enable-egl-x11 \
--disable-cdda \ --enable-egl-drm \
--disable-uchardet \ --enable-gl-wayland \
--enable-rubberband \ --enable-vdpau \
--enable-lcms2 \ --enable-vdpau-gl-x11 \
--disable-vapoursynth \ --enable-vaapi \
--enable-libarchive \ --enable-vaapi-x11 \
--enable-libavdevice \ --enable-vaapi-wayland \
\ --enable-vaapi-drm \
--enable-sdl2 \ --enable-vaapi-x-egl \
--enable-pulse \ --enable-caca \
--enable-jack \ --enable-jpeg \
--enable-openal \ --enable-plain-gl \
--disable-opensles \ --enable-gl \
--enable-alsa \ --enable-dvbin \
--disable-coreaudio \ --disable-build-date
--disable-audiounit \
--disable-wasapi \
\
--disable-cocoa \
--enable-drm \
--enable-gbm \
--enable-wayland \
--enable-x11 \
--enable-xv \
--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-x-egl \
--enable-caca \
--enable-jpeg \
--disable-direct3d \
--disable-android \
--disable-rpi \
--disable-ios-gl \
--enable-plain-gl \
--enable-gl \
\
--disable-videotoolbox-gl \
--disable-d3d-hwaccel \
--disable-cuda-hwaccel \
\
--enable-dvbin
./waf build ./waf build
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
./waf install ./waf install --destdir=%{buildroot}
install -d -m0755 %{buildroot}%{_datadir}/mpv/scripts
install -D -m0644 TOOLS/lua/* %{buildroot}%{_datadir}/mpv/scripts/
%clean %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
@ -175,8 +145,18 @@ This package contains development files for lib%{name}.
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%{_sysconfdir}/mpv/encoding-profiles.conf %dir %{_sysconfdir}/mpv
%config(noreplace) %{_sysconfdir}/mpv/encoding-profiles.conf
%{_bindir}/mpv %{_bindir}/mpv
%{_datadir}/applications/mpv.desktop
%{_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 %dir %{_datadir}/doc/mpv
%{_datadir}/doc/mpv/* %{_datadir}/doc/mpv/*
%{_mandir}/man1/mpv.1* %{_mandir}/man1/mpv.1*
@ -185,17 +165,20 @@ This package contains development files for lib%{name}.
%files -n lib%{name} %files -n lib%{name}
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/libmpv.so.* %{_libdir}/libmpv.so.*
#%dir %{_libdir}/mpv
#%{_libdir}/mpv/*.so
%doc LICENSE.LGPL %doc LICENSE.LGPL
%files -n lib%{name}-devel %files -n lib%{name}-devel
%defattr(-,root,root) %defattr(-,root,root)
%dir %{_includedir}/mpv
%{_includedir}/mpv/*.h
%{_libdir}/libmpv.so %{_libdir}/libmpv.so
%{_libdir}/pkgconfig/mpv.pc %{_libdir}/pkgconfig/mpv.pc
%doc README.md %doc README.md
%changelog %changelog
* 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 * Mon Jan 25 2021 Automatic Build System <autodist@mambasoft.it> 0.33.0-1mamba
- automatic version update by autodist - automatic version update by autodist