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
121
mpv.spec
121
mpv.spec
@ -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,71 +79,40 @@ 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} \
|
|
||||||
--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 \
|
--enable-alsa \
|
||||||
--disable-coreaudio \
|
--enable-cdda \
|
||||||
--disable-audiounit \
|
--enable-cplugins \
|
||||||
--disable-wasapi \
|
--enable-dvb \
|
||||||
\
|
--enable-dvdnav \
|
||||||
--disable-cocoa \
|
--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-drm \
|
||||||
--enable-gbm \
|
--enable-gbm \
|
||||||
--enable-wayland \
|
--enable-wayland \
|
||||||
--enable-x11 \
|
--enable-x11 \
|
||||||
--enable-xv \
|
--enable-xv \
|
||||||
--disable-gl-cocoa \
|
|
||||||
--enable-gl-x11 \
|
--enable-gl-x11 \
|
||||||
--enable-egl-x11 \
|
--enable-egl-x11 \
|
||||||
--enable-egl-drm \
|
--enable-egl-drm \
|
||||||
--enable-gl-wayland \
|
--enable-gl-wayland \
|
||||||
--disable-gl-win32 \
|
|
||||||
--disable-gl-dxinterop \
|
|
||||||
--disable-egl-angle \
|
|
||||||
--disable-egl-angle-lib \
|
|
||||||
--enable-vdpau \
|
--enable-vdpau \
|
||||||
--enable-vdpau-gl-x11 \
|
--enable-vdpau-gl-x11 \
|
||||||
--enable-vaapi \
|
--enable-vaapi \
|
||||||
@ -148,24 +122,20 @@ This package contains development files for lib%{name}.
|
|||||||
--enable-vaapi-x-egl \
|
--enable-vaapi-x-egl \
|
||||||
--enable-caca \
|
--enable-caca \
|
||||||
--enable-jpeg \
|
--enable-jpeg \
|
||||||
--disable-direct3d \
|
|
||||||
--disable-android \
|
|
||||||
--disable-rpi \
|
|
||||||
--disable-ios-gl \
|
|
||||||
--enable-plain-gl \
|
--enable-plain-gl \
|
||||||
--enable-gl \
|
--enable-gl \
|
||||||
\
|
--enable-dvbin \
|
||||||
--disable-videotoolbox-gl \
|
--disable-build-date
|
||||||
--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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user