specfile reworked to fix errors and install headers [release 0.33.0-2mamba;Sun Feb 21 2021]
This commit is contained in:
parent
e20d80fdfd
commit
0f388e29d4
163
mpv.spec
163
mpv.spec
@ -1,13 +1,13 @@
|
||||
Name: mpv
|
||||
Version: 0.33.0
|
||||
Release: 1mamba
|
||||
Release: 2mamba
|
||||
Summary: A free (as in freedom) media player for the command line
|
||||
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
|
||||
Source: https://github.com/mpv-player/mpv.git/v%{version}/mpv-%{version}.tar.bz2
|
||||
License: LGPL
|
||||
## AUTOBUILDREQ-BEGIN
|
||||
BuildRequires: glibc-devel
|
||||
@ -30,6 +30,8 @@ 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
|
||||
@ -37,12 +39,14 @@ BuildRequires: libgbm-devel
|
||||
BuildRequires: libjack-devel
|
||||
BuildRequires: libjpeg-devel
|
||||
BuildRequires: liblcms2-devel
|
||||
BuildRequires: liblua-devel
|
||||
BuildRequires: libopenal-devel
|
||||
BuildRequires: libpulseaudio-devel
|
||||
BuildRequires: libreadline-devel
|
||||
BuildRequires: librubberband-devel
|
||||
BuildRequires: libsmbclient-devel
|
||||
BuildRequires: libswresample-ffmpeg-devel
|
||||
BuildRequires: libswscale-ffmpeg-devel
|
||||
BuildRequires: libuchardet-devel
|
||||
BuildRequires: libva-devel
|
||||
BuildRequires: libvdpau-devel
|
||||
BuildRequires: libwayland-devel
|
||||
@ -67,6 +71,7 @@ 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}.
|
||||
@ -74,98 +79,63 @@ This package contains development files for lib%{name}.
|
||||
%debug_package
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{version}
|
||||
%setup -q
|
||||
./bootstrap.py
|
||||
|
||||
%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 \
|
||||
--disable-test \
|
||||
--disable-clang-database \
|
||||
\
|
||||
--disable-win32-internal-pthreads \
|
||||
--enable-iconv \
|
||||
--disable-lua \
|
||||
--enable-libbluray \
|
||||
--enable-dvdnav \
|
||||
--disable-cdda \
|
||||
--disable-uchardet \
|
||||
--enable-rubberband \
|
||||
--enable-lcms2 \
|
||||
--disable-vapoursynth \
|
||||
--enable-libarchive \
|
||||
--enable-libavdevice \
|
||||
\
|
||||
--enable-sdl2 \
|
||||
--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-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
|
||||
--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
|
||||
./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}"
|
||||
@ -175,8 +145,18 @@ This package contains development files for lib%{name}.
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_sysconfdir}/mpv/encoding-profiles.conf
|
||||
%dir %{_sysconfdir}/mpv
|
||||
%config(noreplace) %{_sysconfdir}/mpv/encoding-profiles.conf
|
||||
%{_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
|
||||
%{_datadir}/doc/mpv/*
|
||||
%{_mandir}/man1/mpv.1*
|
||||
@ -185,17 +165,20 @@ This package contains development files for lib%{name}.
|
||||
%files -n lib%{name}
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/libmpv.so.*
|
||||
#%dir %{_libdir}/mpv
|
||||
#%{_libdir}/mpv/*.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
|
||||
* 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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user