* 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
el8
Dominik Mierzejewski 17 years ago
parent 39fe124265
commit c976ef78a5

1
.gitignore vendored

@ -1,2 +1,3 @@
Blue-1.7.tar.bz2 Blue-1.7.tar.bz2
mplayer-export-2008-08-18.tar.bz2 mplayer-export-2008-08-18.tar.bz2
mplayer-export-2008-09-03.tar.bz2

@ -0,0 +1,32 @@
#!/bin/bash
set -e
tmp=$(mktemp -d)
trap cleanup EXIT
cleanup() {
set +e
[ -z "$tmp" -o ! -d "$tmp" ] || rm -rf "$tmp"
}
unset CDPATH
pwd=$(pwd)
svn=$(date +%Y-%m-%d)
svn=2008-09-03
dirname=mplayer-export-$svn
cd "$tmp"
svn checkout -r {$svn} svn://svn.mplayerhq.hu/mplayer/trunk $dirname
cd $dirname
for dir in libav* libpostproc ; do
cd $dir
svn update -r {$svn}
cd ..
done
svn_revision=`LC_ALL=C svn info 2> /dev/null | grep Revision | cut -d' ' -f2`
sed -i -e 's/\(SVN-r[0-9]* \)/\1rpmfusion /' -e "s/UNKNOWN/$svn_revision/" version.sh
find . -type d -name .svn -print0 | xargs -0r rm -rf
cd ..
tar jcf "$pwd"/$dirname.tar.bz2 $dirname
cd - >/dev/null

@ -1,24 +1,25 @@
%define codecdir %{_libdir}/codecs %define codecdir %{_libdir}/codecs
%define pre 20080818svn %define pre 20080903svn
%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

@ -1,2 +1,3 @@
e4e2020d11b681aac898103b3ba723c4 Blue-1.7.tar.bz2 e4e2020d11b681aac898103b3ba723c4 Blue-1.7.tar.bz2
f09caa71435c9c8818c2f681722042a7 mplayer-export-2008-08-18.tar.bz2 f09caa71435c9c8818c2f681722042a7 mplayer-export-2008-08-18.tar.bz2
9eaaadb3e6636a828edd06e2454d09d4 mplayer-export-2008-09-03.tar.bz2

Loading…
Cancel
Save