@ -1,24 +1,25 @@
%define codecdir %{_libdir}/codecs
%define codecdir %{_libdir}/codecs
%define pre 20080818 svn
%define pre 20080903 svn
%define svn 1
%define svn 1
%define svnbuild 2008-08-18
%define svnbuild 2008-09-03
%define svnrev 27470
%define faad2min 1:2.6.1
%define faad2min 1:2.6.1
Name: mplayer
Name: mplayer
Version: 1.0
Version: 1.0
Release: 0.98 .%{pre}%{?dist}
Release: 0.99 .%{pre}%{?dist}
Summary: Movie player playing most video formats and DVDs
Summary: Movie player playing most video formats and DVDs
Group: Applications/Multimedia
Group: Applications/Multimedia
License: GPLv2+
License: GPLv2+
URL: http://www.mplayerhq.hu/
URL: http://www.mplayerhq.hu/
%if %{svn}
%if %{svn}
Source0: http://rpm.greysector.net/livna/mplayer-export-%{svnbuild}.tar.bz2
# run ./mplayer-snapshot.sh to get this
Source0: mplayer-export-%{svnbuild}.tar.bz2
%else
%else
Source0: http://www.mplayerhq.hu/MPlayer/releases/MPlayer-%{version}%{pre}.tar.bz2
Source0: http://www.mplayerhq.hu/MPlayer/releases/MPlayer-%{version}%{pre}.tar.bz2
%endif
%endif
Source1: http://www.mplayerhq.hu/MPlayer/skins/Blue-1.7.tar.bz2
Source1: http://www.mplayerhq.hu/MPlayer/skins/Blue-1.7.tar.bz2
Source10: mplayer-snapshot.sh
Patch2: %{name}-config.patch
Patch2: %{name}-config.patch
Patch5: %{name}-x86_32-compile.patch
Patch5: %{name}-x86_32-compile.patch
Patch8: %{name}-manlinks.patch
Patch8: %{name}-manlinks.patch
@ -53,9 +54,10 @@ BuildRequires: libXxf86vm-devel
BuildRequires: libcaca-devel
BuildRequires: libcaca-devel
BuildRequires: libdca-devel
BuildRequires: libdca-devel
BuildRequires: libdv-devel
BuildRequires: libdv-devel
BuildRequires: libdvdnav-devel >= 4.1.3
BuildRequires: libdvdnav-devel >= 4.1.3-0.4
BuildRequires: libjpeg-devel
BuildRequires: libjpeg-devel
BuildRequires: libmpcdec-devel
BuildRequires: libmpcdec-devel
BuildRequires: libsmbclient-devel
BuildRequires: libtheora-devel
BuildRequires: libtheora-devel
BuildRequires: libvorbis-devel
BuildRequires: libvorbis-devel
BuildRequires: lirc-devel
BuildRequires: lirc-devel
@ -74,7 +76,6 @@ BuildRequires: xvidcore-devel >= 0.9.2
%{?_with_libmad:BuildRequires: libmad-devel}
%{?_with_libmad:BuildRequires: libmad-devel}
%{?_with_nemesi:BuildRequires: libnemesi-devel >= 0.6.3}
%{?_with_nemesi:BuildRequires: libnemesi-devel >= 0.6.3}
%{?_with_openal:BuildRequires: openal-devel}
%{?_with_openal:BuildRequires: openal-devel}
%{?_with_samba:BuildRequires: libsmbclient-devel}
%{?_with_svgalib:BuildRequires: svgalib-devel}
%{?_with_svgalib:BuildRequires: svgalib-devel}
%{?_with_xmms:BuildRequires: xmms-devel}
%{?_with_xmms:BuildRequires: xmms-devel}
%if %{svn}
%if %{svn}
@ -96,7 +97,6 @@ It supports a wide range of output drivers including X11, XVideo, DGA,
OpenGL, SVGAlib, fbdev, AAlib, DirectFB etc. There are also nice
OpenGL, SVGAlib, fbdev, AAlib, DirectFB etc. There are also nice
antialiased shaded subtitles and OSD.
antialiased shaded subtitles and OSD.
Non-default rpmbuild options:
Non-default rpmbuild options:
--with samba: Enable Samba (smb://) support
--with xmms: Enable XMMS input plugin support
--with xmms: Enable XMMS input plugin support
--with amr: Enable AMR support
--with amr: Enable AMR support
--with libmad: Enable libmad support
--with libmad: Enable libmad support
@ -156,10 +156,8 @@ for lang in ru ; do doconv koi8-r utf-8 $lang ; done
mv DOCS/man/zh DOCS/man/zh_CN
mv DOCS/man/zh DOCS/man/zh_CN
sed -i -e 's/\(SVN-r[0-9]* \)/\1rpm.livna.org /' -e 's/UNKNOWN/%{svnrev}/' version.sh
%build
%build
export CFLAGS="$RPM_OPT_FLAGS -ffast-math"
export CFLAGS="$RPM_OPT_FLAGS -ffast-math --std=gnu99"
%ifarch ppc
%ifarch ppc
export CFLAGS="$CFLAGS -maltivec -mabi=altivec"
export CFLAGS="$CFLAGS -maltivec -mabi=altivec"
%endif
%endif
@ -184,7 +182,6 @@ export CFLAGS="$CFLAGS -maltivec -mabi=altivec"
--enable-lirc \
--enable-lirc \
--enable-joystick \
--enable-joystick \
%{!?_with_nemesi:--disable-nemesi} \
%{!?_with_nemesi:--disable-nemesi} \
%{!?_with_samba:--disable-smb} \
--disable-dvdread-internal \
--disable-dvdread-internal \
--disable-libdvdcss-internal \
--disable-libdvdcss-internal \
--enable-menu \
--enable-menu \
@ -237,7 +234,6 @@ mv -f mplayer gmplayer
--enable-lirc \
--enable-lirc \
--enable-joystick \
--enable-joystick \
%{!?_with_nemesi:--disable-nemesi} \
%{!?_with_nemesi:--disable-nemesi} \
%{!?_with_samba:--disable-smb} \
--disable-dvdread-internal \
--disable-dvdread-internal \
--disable-libdvdcss-internal \
--disable-libdvdcss-internal \
--enable-menu \
--enable-menu \
@ -390,6 +386,12 @@ rm -rf $RPM_BUILD_ROOT
%changelog
%changelog
* Tue Sep 09 2008 Dominik Mierzejewski <rpm at greysector.net> - 1.0-0.99.20080903svn
- updated to 20080903 SVN snapshot
- added snapshot creation script
- dropped version sed-patching (happens in the snapshot script now)
- enabled samba support by default
* Tue Aug 19 2008 Dominik Mierzejewski <rpm at greysector.net> - 1.0-0.98.20080818svn
* Tue Aug 19 2008 Dominik Mierzejewski <rpm at greysector.net> - 1.0-0.98.20080818svn
- moved config settings to config patch
- moved config settings to config patch
- rebased patches against current snapshot
- rebased patches against current snapshot