%bcond_without joystick # joystick support
%bcond_without lirc # lirc support
%bcond_without live # LIVE555 Streaming Media support
+%bcond_without live_cpp20 # LIVE555 library with C++20 atomic_flag
%bcond_without mencoder # mencoder (a/v encoder) compilation
%bcond_without nemesi # NeMeSi Streaming Media support
%bcond_without osd # osd menu support
Summary(pl.UTF-8): Odtwarzacz filmów dla systemów uniksowych
Summary(pt_BR.UTF-8): Reprodutor de filmes
Name: mplayer
-Version: 1.4
+Version: 1.5
Release: 6
# DO NOT increase epoch unless it's really neccessary!
# especially such changes like pre7->pre7try2, increase Release instead!
Group: Applications/Multimedia
# Source0: http://mplayerhq.hu/MPlayer/releases/mplayer-export-snapshot.tar.bz2
Source0: http://mplayerhq.hu/MPlayer/releases/MPlayer-%{version}.tar.xz
-# Source0-md5: 58d39f72bf7f3ddaa9e019224bffcb74
+# Source0-md5: 0419b64db24b6db0943dbc6afece7c44
%if 0
Source1: http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2
# Source1-md5: b1b71cc56b15da49cee1ede9a7b8134e
Patch13: %{name}-visibility-hidden-fix.patch
Patch14: cflags.patch
Patch15: %{name}-live555-async.patch
-
+Patch16: %{name}-live555-config.patch
Patch17: %{name}-gsm.patch
Patch19: %{name}-shared.patch
# update, hard to fix right now because of gnome bug 579430:
# https://bugzilla.gnome.org/show_bug.cgi?id=579430
#Patch32: %{name}-gnome-screensaver.patch
+Patch33: binutils2.41.patch
+Patch34: po-charset.patch
Patch101: %{name}-link.patch
BuildRequires: a52dec-libs-devel
%{?with_aalib:BuildRequires: aalib-devel}
%{?with_alsa:BuildRequires: alsa-lib-devel}
+BuildRequires: aom-devel
%{?with_arts:BuildRequires: artsc-devel}
-BuildRequires: binutils >= 2.10.1
+BuildRequires: binutils >= 1:2.10.1
%{?with_ssse3:BuildRequires: binutils >= 3:2.16.92}
BuildRequires: bzip2-devel
#%{?with_cdparanoia:BuildRequires: cdparanoia-III-devel}
+BuildRequires: dav1d-devel
%{?with_gnomess:BuildRequires: dbus-glib-devel}
%{?with_doc:BuildRequires: docbook-dtd45-xml}
%{?with_doc:BuildRequires: docbook-style-xsl}
%{?with_esd:BuildRequires: esound-devel}
BuildRequires: faac-devel
%{?with_faad:BuildRequires: faad2-devel >= 2.0}
-%{?with_system_ffmpeg:BuildRequires: ffmpeg-devel >= 4.1}
+%{?with_system_ffmpeg:BuildRequires: ffmpeg-devel >= 5.1}
BuildRequires: fontconfig-devel >= 1:2.4.2
BuildRequires: freetype-devel >= 1:2.2.1
BuildRequires: fribidi-devel
BuildRequires: libvpx-devel
# build >= 118
%{?with_x264:BuildRequires: libx264-devel >= 0.1.3}
+BuildRequires: libxml2-devel >= 2.0
BuildRequires: libxslt-progs
# with v4l2 headers
BuildRequires: linux-libc-headers >= 7:2.6.22
%patch13 -p1
%patch14 -p1
%patch15 -p1
-
+%patch16 -p1
%patch17 -p1
%{?with_shared:%patch19 -p1}
%patch30 -p0
%patch31 -p1
#%{with_gnomess:%patch32 -p1}
+%patch33 -p1 -d ffmpeg
+%patch34 -p1
%patch101 -p1
%{__rm} -rf ffmpeg
%endif
+%if %{with live_cpp20}
+%{__sed} -i -e 's/-std=c++98/-std=c++20/' configure
+%else
+%{__sed} -i -e 's/-std=c++98/& -DNO_STD_LIB/' configure
+%endif
+
%build
CFLAGS="%{rpmcflags} %{?with_hidden_visibility:-fvisibility=hidden} %{?with_shared:-fvisibility=default -fPIC}"
-CFLAGS="$CFLAGS -I%{_includedir}/xvid%{?with_directfb: %{_includedir}/directfb} -DHAVE_GSM_H=1"
+CFLAGS="$CFLAGS -I%{_includedir}/xvid%{?with_directfb: -I%{_includedir}/directfb} -DHAVE_GSM_H=1"
# NOTE:
# - lircc refers to obsolete liblircc library (used in LIRCCD < 0.9)
%{__disable vorbis libvorbis} \
%{__enable_disable lirc} \
--disable-lircc \
- %{__disable live} \
+ %{__enable_disable live} \
%{__disable mad} \
%{__disable mencoder} \
%{__enable osd menu} \