@ -1,12 +1,12 @@
%define codecdir %{_libdir}/codecs
%define codecdir %{_libdir}/codecs
%define pre 20091021 svn
%define pre 20091029 svn
%define svn 1
%define svn 1
%define svnbuild 20091021
%define svnbuild 2009-10-29
%define faad2min 1:2.6.1
%define faad2min 1:2.6.1
Name: mplayer
Name: mplayer
Version: 1.0
Version: 1.0
Release: 0.110 .%{pre}%{?dist}
Release: 0.111 .%{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
@ -21,11 +21,13 @@ Source0: http://www.mplayerhq.hu/MPlayer/releases/MPlayer-%{version}%{pre
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
Source10: mplayer-snapshot.sh
Patch2: %{name}-config.patch
Patch2: %{name}-config.patch
Patch8: %{name}-manlinks.patch
Patch10: %{name}-qcelp.patch
Patch10: %{name}-qcelp.patch
Patch14: %{name}-nodvdcss.patch
Patch14: %{name}-nodvdcss.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: SDL-devel
BuildRequires: SDL-devel
BuildRequires: a52dec-devel
BuildRequires: aalib-devel
BuildRequires: aalib-devel
BuildRequires: alsa-lib-devel
BuildRequires: alsa-lib-devel
BuildRequires: cdparanoia-devel
BuildRequires: cdparanoia-devel
@ -61,9 +63,10 @@ BuildRequires: lirc-devel
BuildRequires: live555-devel
BuildRequires: live555-devel
BuildRequires: lzo-devel >= 2
BuildRequires: lzo-devel >= 2
BuildRequires: pulseaudio-lib-devel
BuildRequires: pulseaudio-lib-devel
BuildRequires: schroedinger-devel
BuildRequires: speex-devel >= 1.1
BuildRequires: speex-devel >= 1.1
BuildRequires: twolame-devel
BuildRequires: twolame-devel
BuildRequires: x264-devel >= 0.0.0-0.14.20080613
BuildRequires: x264-devel >= 0.0.0-0.26.20091026
BuildRequires: xvidcore-devel >= 0.9.2
BuildRequires: xvidcore-devel >= 0.9.2
BuildRequires: yasm
BuildRequires: yasm
%{?_with_arts:BuildRequires: arts-devel}
%{?_with_arts:BuildRequires: arts-devel}
@ -142,7 +145,7 @@ MPlayer documentation in various languages.
--libdir=%{_libdir} \\\
--libdir=%{_libdir} \\\
--codecsdir=%{codecdir} \\\
--codecsdir=%{codecdir} \\\
\\\
\\\
--extra-cflags="`echo $RPM_OPT_FLAGS|sed -e s,i386,i486,` " \\\
--extra-cflags="$RPM_OPT_FLAGS" \\\
--language=all \\\
--language=all \\\
\\\
\\\
--enable-joystick \\\
--enable-joystick \\\
@ -161,6 +164,7 @@ MPlayer documentation in various languages.
--disable-mp3lame-lavc \\\
--disable-mp3lame-lavc \\\
--disable-x264-lavc \\\
--disable-x264-lavc \\\
\\\
\\\
--disable-liba52-internal \\\
%{?_without_amr:--disable-libopencore_amrnb --disable-libopencore_amrwb} \\\
%{?_without_amr:--disable-libopencore_amrnb --disable-libopencore_amrwb} \\\
--disable-faad-internal \\\
--disable-faad-internal \\\
%{!?_with_libmad:--disable-mad} \\\
%{!?_with_libmad:--disable-mad} \\\
@ -191,6 +195,9 @@ MPlayer documentation in various languages.
%patch2 -p1 -b .config
%patch2 -p1 -b .config
%patch8 -p1 -b .manlinks
%patch10 -p1 -b .qcelp
%patch14 -p1 -b .nodvdcss
doconv() {
doconv() {
iconv -f $1 -t $2 -o DOCS/man/$3/mplayer.1.utf8 DOCS/man/$3/mplayer.1 && \
iconv -f $1 -t $2 -o DOCS/man/$3/mplayer.1.utf8 DOCS/man/$3/mplayer.1 && \
mv DOCS/man/$3/mplayer.1.utf8 DOCS/man/$3/mplayer.1
mv DOCS/man/$3/mplayer.1.utf8 DOCS/man/$3/mplayer.1
@ -199,13 +206,15 @@ for lang in de es fr it ; do doconv iso-8859-1 utf-8 $lang ; done
for lang in hu pl ; do doconv iso-8859-2 utf-8 $lang ; done
for lang in hu pl ; do doconv iso-8859-2 utf-8 $lang ; done
for lang in ru ; do doconv koi8-r utf-8 $lang ; done
for lang in ru ; do doconv koi8-r utf-8 $lang ; done
mkdir GUI
cp -a `ls -1|grep -v GUI` GUI/
%build
%build
%{mp_configure}--enable-gui
pushd GUI
%{mp_configure}--enable-gui --disable-mencoder
%{__make} %{?_smp_mflags}
%{__make} %{?_smp_mflags}
popd
mv -f mplayer gmplayer
%{__make} distclean
%{mp_configure}
%{mp_configure}
@ -240,7 +249,7 @@ 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
# GUI mplayer
install -pm 755 g%{name} $RPM_BUILD_ROOT%{_bindir}/
install -pm 755 GUI/%{name} $RPM_BUILD_ROOT%{_bindir}/gmplayer
# Default skin
# Default skin
install -dm 755 $RPM_BUILD_ROOT%{_datadir}/mplayer/skins
install -dm 755 $RPM_BUILD_ROOT%{_datadir}/mplayer/skins
@ -283,7 +292,6 @@ rm -rf $RPM_BUILD_ROOT
%config(noreplace) %{_sysconfdir}/mplayer/mplayer.conf
%config(noreplace) %{_sysconfdir}/mplayer/mplayer.conf
%config(noreplace) %{_sysconfdir}/mplayer/input.conf
%config(noreplace) %{_sysconfdir}/mplayer/input.conf
%config(noreplace) %{_sysconfdir}/mplayer/menu.conf
%config(noreplace) %{_sysconfdir}/mplayer/menu.conf
%{_bindir}/aconvert
%{_bindir}/midentify
%{_bindir}/midentify
%{_bindir}/mplayer
%{_bindir}/mplayer
%dir %{codecdir}/
%dir %{codecdir}/
@ -308,6 +316,7 @@ rm -rf $RPM_BUILD_ROOT
%files -n mencoder
%files -n mencoder
%defattr(-, root, root, -)
%defattr(-, root, root, -)
%{_bindir}/aconvert
%{_bindir}/mencoder
%{_bindir}/mencoder
%{_mandir}/man1/mencoder.1*
%{_mandir}/man1/mencoder.1*
%lang(cs) %{_mandir}/cs/man1/mencoder.1*
%lang(cs) %{_mandir}/cs/man1/mencoder.1*
@ -334,6 +343,17 @@ rm -rf $RPM_BUILD_ROOT
%changelog
%changelog
* Thu Oct 29 2009 Dominik Mierzejewski <rpm at greysector.net> - 1.0-0.111.20091029svn
- 20091029 snapshot
- rebuild against current x264
- fix debuginfo generation (bug #101)
- move aconvert to mencoder package (bug #544)
- fix snapshot script not to mangle version string (bug #577)
- disable screensaver by default (bug #672)
- restore and rebase some of the dropped patches
- build against external liba52
- enable dirac decoding via libschroedinger
* Wed Oct 21 2009 kwizart < kwizart at gmail.com > - 1.0-0.110.20091021svn
* Wed Oct 21 2009 kwizart < kwizart at gmail.com > - 1.0-0.110.20091021svn
- Update to snapshot 20091021
- Update to snapshot 20091021
mplayer svn rev: 29776
mplayer svn rev: 29776