|
|
@ -1,18 +1,17 @@
|
|
|
|
%ifarch x86_64
|
|
|
|
|
|
|
|
%global _lto_cflags %{nil}
|
|
|
|
%global _lto_cflags %{nil}
|
|
|
|
%endif
|
|
|
|
%global build_type_safety_c 0
|
|
|
|
|
|
|
|
|
|
|
|
%global codecdir %{_libdir}/codecs
|
|
|
|
%global codecdir %{_libdir}/codecs
|
|
|
|
%global pre 20220726svn
|
|
|
|
%global pre 20241008svn
|
|
|
|
%global svn 1
|
|
|
|
%global svn 1
|
|
|
|
%global svnbuild 2022-07-26
|
|
|
|
%global svnbuild 2024-10-08
|
|
|
|
|
|
|
|
|
|
|
|
Name: mplayer
|
|
|
|
Name: mplayer
|
|
|
|
Version: 1.5.1
|
|
|
|
Version: 1.5.1
|
|
|
|
%if 0%{?svn}
|
|
|
|
%if 0%{?svn}
|
|
|
|
Release: 0.3%{?pre:.%{pre}}%{?dist}
|
|
|
|
Release: 0.16%{?pre:.%{pre}}%{?dist}
|
|
|
|
%else
|
|
|
|
%else
|
|
|
|
Release: 3%{?dist}
|
|
|
|
Release: 16%{?dist}
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
Summary: Movie player playing most video formats and DVDs
|
|
|
|
Summary: Movie player playing most video formats and DVDs
|
|
|
|
|
|
|
|
|
|
|
@ -28,7 +27,6 @@ Source0: mplayer-export-%{svnbuild}.tar.xz
|
|
|
|
%else
|
|
|
|
%else
|
|
|
|
Source0: https://www.mplayerhq.hu/MPlayer/releases/MPlayer-%{version}%{?pre}.tar.xz
|
|
|
|
Source0: https://www.mplayerhq.hu/MPlayer/releases/MPlayer-%{version}%{?pre}.tar.xz
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
Source1: https://www.mplayerhq.hu/MPlayer/skins/Blue-1.11.tar.bz2
|
|
|
|
|
|
|
|
Source10: mplayer-snapshot.sh
|
|
|
|
Source10: mplayer-snapshot.sh
|
|
|
|
# set defaults for Fedora
|
|
|
|
# set defaults for Fedora
|
|
|
|
Patch0: %{name}-config.patch
|
|
|
|
Patch0: %{name}-config.patch
|
|
|
@ -36,22 +34,21 @@ Patch0: %{name}-config.patch
|
|
|
|
Patch1: %{name}-manlinks.patch
|
|
|
|
Patch1: %{name}-manlinks.patch
|
|
|
|
# use system FFmpeg libraries
|
|
|
|
# use system FFmpeg libraries
|
|
|
|
Patch2: %{name}-ffmpeg.patch
|
|
|
|
Patch2: %{name}-ffmpeg.patch
|
|
|
|
|
|
|
|
Patch3: 0204_fix-ftbfs-jack-ffmpeg7.patch
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: SDL-devel
|
|
|
|
BuildRequires: SDL-devel
|
|
|
|
BuildRequires: a52dec-devel
|
|
|
|
BuildRequires: a52dec-devel
|
|
|
|
BuildRequires: aalib-devel
|
|
|
|
BuildRequires: aalib-devel
|
|
|
|
BuildRequires: alsa-lib-devel
|
|
|
|
BuildRequires: alsa-lib-devel
|
|
|
|
BuildRequires: bzip2-devel
|
|
|
|
BuildRequires: bzip2-devel
|
|
|
|
BuildRequires: desktop-file-utils
|
|
|
|
|
|
|
|
BuildRequires: enca-devel
|
|
|
|
BuildRequires: enca-devel
|
|
|
|
BuildRequires: ffmpeg-devel >= 0.10
|
|
|
|
BuildRequires: ffmpeg-devel
|
|
|
|
BuildRequires: fontconfig-devel
|
|
|
|
BuildRequires: fontconfig-devel
|
|
|
|
BuildRequires: freetype-devel >= 2.0.9
|
|
|
|
BuildRequires: freetype-devel >= 2.0.9
|
|
|
|
BuildRequires: fribidi-devel
|
|
|
|
BuildRequires: fribidi-devel
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: giflib-devel
|
|
|
|
BuildRequires: giflib-devel
|
|
|
|
BuildRequires: gsm-devel
|
|
|
|
BuildRequires: gsm-devel
|
|
|
|
BuildRequires: gtk2-devel
|
|
|
|
|
|
|
|
BuildRequires: jack-audio-connection-kit-devel
|
|
|
|
BuildRequires: jack-audio-connection-kit-devel
|
|
|
|
BuildRequires: ladspa-devel
|
|
|
|
BuildRequires: ladspa-devel
|
|
|
|
BuildRequires: lame-devel
|
|
|
|
BuildRequires: lame-devel
|
|
|
@ -79,7 +76,7 @@ BuildRequires: speex-devel >= 1.1
|
|
|
|
BuildRequires: twolame-devel
|
|
|
|
BuildRequires: twolame-devel
|
|
|
|
BuildRequires: x264-devel >= 0.0.0-0.28
|
|
|
|
BuildRequires: x264-devel >= 0.0.0-0.28
|
|
|
|
BuildRequires: xvidcore-devel >= 0.9.2
|
|
|
|
BuildRequires: xvidcore-devel >= 0.9.2
|
|
|
|
BuildRequires: yasm
|
|
|
|
BuildRequires: nasm
|
|
|
|
%{?_with_a52dec:BuildRequires: a52dec-devel}
|
|
|
|
%{?_with_a52dec:BuildRequires: a52dec-devel}
|
|
|
|
%{?_with_arts:BuildRequires: arts-devel}
|
|
|
|
%{?_with_arts:BuildRequires: arts-devel}
|
|
|
|
%{?_with_dga:BuildRequires: libXxf86dga-devel}
|
|
|
|
%{?_with_dga:BuildRequires: libXxf86dga-devel}
|
|
|
@ -103,8 +100,8 @@ BuildRequires: libxml2
|
|
|
|
BuildRequires: libxslt
|
|
|
|
BuildRequires: libxslt
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
Requires: mplayer-common = %{version}-%{release}
|
|
|
|
Requires: mplayer-common = %{version}-%{release}
|
|
|
|
Requires: ffmpeg-libs%{?_isa}
|
|
|
|
|
|
|
|
Provides: mplayer-backend
|
|
|
|
Provides: mplayer-backend
|
|
|
|
|
|
|
|
Obsoletes: mplayer-gui
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
MPlayer is a movie player that plays most MPEG, VOB, AVI, OGG/OGM,
|
|
|
|
MPlayer is a movie player that plays most MPEG, VOB, AVI, OGG/OGM,
|
|
|
@ -138,19 +135,9 @@ Summary: MPlayer common files
|
|
|
|
%description common
|
|
|
|
%description common
|
|
|
|
This package contains common files for MPlayer packages.
|
|
|
|
This package contains common files for MPlayer packages.
|
|
|
|
|
|
|
|
|
|
|
|
%package gui
|
|
|
|
|
|
|
|
Summary: GUI for MPlayer
|
|
|
|
|
|
|
|
Requires: mplayer-common = %{version}-%{release}
|
|
|
|
|
|
|
|
Requires: ffmpeg-libs%{?_isa}
|
|
|
|
|
|
|
|
Requires: hicolor-icon-theme
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description gui
|
|
|
|
|
|
|
|
This package contains a GUI for MPlayer and a default skin for it.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n mencoder
|
|
|
|
%package -n mencoder
|
|
|
|
Summary: MPlayer movie encoder
|
|
|
|
Summary: MPlayer movie encoder
|
|
|
|
Requires: mplayer-common = %{version}-%{release}
|
|
|
|
Requires: mplayer-common = %{version}-%{release}
|
|
|
|
Requires: ffmpeg-libs%{?_isa}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description -n mencoder
|
|
|
|
%description -n mencoder
|
|
|
|
This package contains the MPlayer movie encoder.
|
|
|
|
This package contains the MPlayer movie encoder.
|
|
|
@ -228,24 +215,14 @@ This package contains various scripts from MPlayer TOOLS directory.
|
|
|
|
%setup -q -n MPlayer-%{version}%{?pre}
|
|
|
|
%setup -q -n MPlayer-%{version}%{?pre}
|
|
|
|
rm -rf ffmpeg
|
|
|
|
rm -rf ffmpeg
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%patch0 -p1 -b .config
|
|
|
|
%patch -P 0 -p1 -b .config
|
|
|
|
%patch1 -p1 -b .manlinks
|
|
|
|
%patch -P 1 -p1 -b .manlinks
|
|
|
|
%patch2 -p1 -b .ffmpeg
|
|
|
|
%patch -P 2 -p1 -b .ffmpeg
|
|
|
|
|
|
|
|
%patch -P 3 -p1 -b .ffmpeg7
|
|
|
|
mkdir GUI
|
|
|
|
|
|
|
|
cp -a `ls -1|grep -v GUI` GUI/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sed -i '1s=^#! */usr/bin/\(python\|env python\)[23]\?=#!%{__python3}=' TOOLS/{mphelp_check,vobshift}.py
|
|
|
|
sed -i '1s=^#! */usr/bin/\(python\|env python\)[23]\?=#!%{__python3}=' TOOLS/{mphelp_check,vobshift}.py
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
pushd GUI
|
|
|
|
|
|
|
|
export CC=gcc
|
|
|
|
|
|
|
|
export CXX=g++
|
|
|
|
|
|
|
|
%{mp_configure}--enable-gui --disable-mencoder
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%make_build V=1
|
|
|
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export CC=gcc
|
|
|
|
export CC=gcc
|
|
|
|
export CXX=g++
|
|
|
|
export CXX=g++
|
|
|
|
%{mp_configure}
|
|
|
|
%{mp_configure}
|
|
|
@ -289,27 +266,6 @@ install -Dpm 644 etc/example.conf \
|
|
|
|
|
|
|
|
|
|
|
|
install -pm 644 etc/{input,menu}.conf $RPM_BUILD_ROOT%{_sysconfdir}/mplayer/
|
|
|
|
install -pm 644 etc/{input,menu}.conf $RPM_BUILD_ROOT%{_sysconfdir}/mplayer/
|
|
|
|
|
|
|
|
|
|
|
|
# GUI mplayer
|
|
|
|
|
|
|
|
install -pm 755 GUI/%{name} $RPM_BUILD_ROOT%{_bindir}/gmplayer
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Default skin
|
|
|
|
|
|
|
|
install -dm 755 $RPM_BUILD_ROOT%{_datadir}/mplayer/skins
|
|
|
|
|
|
|
|
tar xjC $RPM_BUILD_ROOT%{_datadir}/mplayer/skins --exclude=.svn -f %{SOURCE1}
|
|
|
|
|
|
|
|
ln -s Blue $RPM_BUILD_ROOT%{_datadir}/mplayer/skins/default
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Icons
|
|
|
|
|
|
|
|
for iconsize in 16x16 22x22 24x24 32x32 48x48 256x256
|
|
|
|
|
|
|
|
do
|
|
|
|
|
|
|
|
install -dm 755 $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/$iconsize/apps
|
|
|
|
|
|
|
|
install -pm 644 etc/mplayer$iconsize.png \
|
|
|
|
|
|
|
|
$RPM_BUILD_ROOT%{_datadir}/icons/hicolor/$iconsize/apps/mplayer.png
|
|
|
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Desktop file
|
|
|
|
|
|
|
|
desktop-file-install \
|
|
|
|
|
|
|
|
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
|
|
|
|
|
|
|
|
etc/%{name}.desktop
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Codec dir
|
|
|
|
# Codec dir
|
|
|
|
install -dm 755 $RPM_BUILD_ROOT%{codecdir}
|
|
|
|
install -dm 755 $RPM_BUILD_ROOT%{codecdir}
|
|
|
|
sed -i '1s:#!/usr/bin/env python:#!/usr/bin/env python2:' %{buildroot}%{_bindir}/vobshift
|
|
|
|
sed -i '1s:#!/usr/bin/env python:#!/usr/bin/env python2:' %{buildroot}%{_bindir}/vobshift
|
|
|
@ -317,20 +273,6 @@ sed -i '1s:#!/usr/bin/env python:#!/usr/bin/env python2:' %{buildroot}%{_bindir}
|
|
|
|
%find_lang %{name} --with-man
|
|
|
|
%find_lang %{name} --with-man
|
|
|
|
%find_lang mencoder --with-man
|
|
|
|
%find_lang mencoder --with-man
|
|
|
|
|
|
|
|
|
|
|
|
%if (0%{?rhel} && 0%{?rhel} <= 7)
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
|
|
|
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
|
|
|
if [ $1 -eq 0 ] ; then
|
|
|
|
|
|
|
|
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
|
|
|
|
|
|
|
|
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%posttrans
|
|
|
|
|
|
|
|
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%{_bindir}/mplayer
|
|
|
|
%{_bindir}/mplayer
|
|
|
|
|
|
|
|
|
|
|
@ -345,12 +287,6 @@ fi
|
|
|
|
%dir %{_datadir}/mplayer/
|
|
|
|
%dir %{_datadir}/mplayer/
|
|
|
|
%{_mandir}/man1/mplayer.1*
|
|
|
|
%{_mandir}/man1/mplayer.1*
|
|
|
|
|
|
|
|
|
|
|
|
%files gui
|
|
|
|
|
|
|
|
%{_bindir}/gmplayer
|
|
|
|
|
|
|
|
%{_datadir}/applications/*mplayer.desktop
|
|
|
|
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/mplayer.png
|
|
|
|
|
|
|
|
%{_datadir}/mplayer/skins/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n mencoder -f mencoder.lang
|
|
|
|
%files -n mencoder -f mencoder.lang
|
|
|
|
%{_bindir}/mencoder
|
|
|
|
%{_bindir}/mencoder
|
|
|
|
%{_mandir}/man1/mencoder.1*
|
|
|
|
%{_mandir}/man1/mencoder.1*
|
|
|
@ -381,6 +317,50 @@ fi
|
|
|
|
%{_datadir}/mplayer/*.fp
|
|
|
|
%{_datadir}/mplayer/*.fp
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Sat Jan 04 2025 Arkady L. Shane <tigro@msvsphere-os.ru> - 1.5.1-0.16.20241008svn
|
|
|
|
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Oct 08 2024 Nicolas Chauvet <kwizart@gmail.com> - 1.5.1-0.16.20241008svn
|
|
|
|
|
|
|
|
- Update snapshot
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Aug 02 2024 RPM Fusion Release Engineering <sergiomb@rpmfusion.org> - 1.5.1-0.15.20240415svn
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Apr 15 2024 Leigh Scott <leigh123linux@gmail.com> - 1.5.1-0.14.20240415svn
|
|
|
|
|
|
|
|
- Update snapshot to fix AVChannelLayout issue (rfbz#6911)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Apr 09 2024 Leigh Scott <leigh123linux@gmail.com> - 1.5.1-0.13.20240409svn
|
|
|
|
|
|
|
|
- Update snapshot to fix AVChannelLayout issue (rfbz#6911)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Mar 18 2024 Leigh Scott <leigh123linux@gmail.com> - 1.5.1-0.12.20240317svn
|
|
|
|
|
|
|
|
- Drop GUI
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Mar 17 2024 Leigh Scott <leigh123linux@gmail.com> - 1.5.1-0.11.20240317svn
|
|
|
|
|
|
|
|
- Update snapshot
|
|
|
|
|
|
|
|
- Readd GUI
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Feb 04 2024 RPM Fusion Release Engineering <sergiomb@rpmfusion.org> - 1.5.1-0.10.20230811svn
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jan 09 2024 Leigh Scott <leigh123linux@gmail.com> - 1.5.1-0.9.20230811svn
|
|
|
|
|
|
|
|
- Use compat-ffmpeg5
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Aug 11 2023 Leigh Scott <leigh123linux@gmail.com> - 1.5.1-0.8.20230811svn
|
|
|
|
|
|
|
|
- Update snapshot
|
|
|
|
|
|
|
|
- Drop GUI
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Aug 02 2023 RPM Fusion Release Engineering <sergiomb@rpmfusion.org> - 1.5.1-0.7.20230530svn
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue May 30 2023 Leigh Scott <leigh123linux@gmail.com> - 1.5.1-0.6.20230530svn
|
|
|
|
|
|
|
|
- Drop requires ffmpeg-libs
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue May 30 2023 Leigh Scott <leigh123linux@gmail.com> - 1.5.1-0.5.20230530svn
|
|
|
|
|
|
|
|
- Use compat-ffmpeg4 as mplayer doesn't support ffmpeg-6.0 (rfbz#6692)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Feb 28 2023 Leigh Scott <leigh123linux@gmail.com> - 1.5.1-0.4.20230228svn
|
|
|
|
|
|
|
|
- Rebuild for new ffmpeg
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Nov 22 2022 Leigh Scott <leigh123linux@gmail.com> - 1.5.1-0.3.20220726svn
|
|
|
|
* Tue Nov 22 2022 Leigh Scott <leigh123linux@gmail.com> - 1.5.1-0.3.20220726svn
|
|
|
|
- Fix rfbz#6500
|
|
|
|
- Fix rfbz#6500
|
|
|
|
|
|
|
|
|