[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: mplayer (was: Save As - how do I save html ...)
- From: Matthias Saou <matthias rpmforge net>
- To: enigma-list redhat com
- Subject: Re: mplayer (was: Save As - how do I save html ...)
- Date: Wed, 2 Jan 2002 13:07:29 +0100
Once upon a time, Rui wrote :
> Easier yet:
>
> install gcc3 and set CC=/usr/bin/gcc3
Yup, that's what I did.
> One way for redhat to distribute mplayer (I oddily enough can't see what
> is the problem to get that) is to distribute it in an src.rpm.
Yup again. I asked the mplayer people just in case, and a source rpm is
fine. I've updated my source rpm since my last post, attached is the
(short) spec file for those of you who don't want the whole download, just
the recipe.
Matthias
--
Clean custom Red Hat Linux rpm packages : http://freshrpms.net/
Red Hat Linux release 7.2 (Enigma) running Linux kernel 2.4.17-rc2i8k
Load : 0.00 0.02 0.04, AC on-line, battery charging: 100% (11:28)
# Change this to the release you are building
%define date 20020102
# The font size for subtitles : 14, 18, 24 or 28
%define fontsize 18
# Here, you may easily change to iso-8859-2 if needed
%define fontdir iso-8859-1
# The language to use in mplayer, one of : cz de dk en es fr hu nl no pl ro ru
%define mplang en
Summary: MPlayer, the Movie Player for Linux.
Name: mplayer
Version: %{date}
Release: fr2
#Epoch: 0
Copyright: Source only
Group: Applications/Multimedia
Source0: http://mplayerhq.hu/MPlayer/cvs/MPlayer-current.tar.bz2
Source1: http://mplayerhq.hu/MPlayer/Skin/default.tar.bz2
Source2: http://mplayerhq.hu/MPlayer/releases/mp-arial-%{fontdir}.zip
Source3: http://mplayerhq.hu/MPlayer/Skin/neutron.tar.bz2
URL: http://mplayerhq.hu/
BuildRoot: %{_tmppath}/%{name}-root
Requires: libdvdread, libdvdcss, gtk+, SDL, divx4linux
BuildRequires: libdvdread-devel, gtk+-devel, SDL-devel, divx4linux, gcc3
BuildRequires: /usr/bin/find
%description
MPlayer plays most MPEG, VOB, AVI, VIVO, ASF/WMV, QT/MOV, FLI files,
supported by many native, XAnim, and Win32 DLL codecs. You can watch
VideoCD, SVCD, DVD, 3ivx, and even DivX movies too (and you don't need
the avifile library at all!). The other big feature of mplayer is the
wide range of supported output drivers. It works with X11, Xv, DGA,
OpenGL, SVGAlib, fbdev, AAlib, DirectFB but you can use GGI and SDL
(and this way all their drivers) and some lowlevel card-specific
drivers (for Matrox, 3Dfx and Radeon) too! Most of them support
software or hardware scaling, so you can enjoy movies in fullscreen.
MPlayer supports displaying through some hardware MPEG decoder boards,
such as the DVB and DXR3/Hollywood+ ! And what about the nice big
antialiased shaded subtitles (9 supported types!!!).
Note that this package is only available as source since the license
forbidds binary redistribution.
%prep
%setup -q -n MPlayer-%{date}
%build
find . -name "CVS" | xargs rm -rf
./configure \
--prefix=%{_prefix} \
--enable-gui \
--cc=gcc3 \
--target=%{_target_platform} \
--language=%{mplang}
make
%install
rm -rf %{buildroot}
make install \
prefix=%{buildroot}%{_prefix} \
CONFDIR=%{buildroot}%{_prefix}/share/mplayer/
# Overwrite the absolute link that was created
ln -s -f mplayer %{buildroot}%{_prefix}/bin/gmplayer
# Install man page and remove it from the package docs
install -D -m 644 DOCS/mplayer.1 %{buildroot}%{_mandir}/man1/mplayer.1 \
&& rm -f DOCS/*.1
# The skin
mkdir -p %{buildroot}%{_prefix}/share/mplayer/Skin
pushd %{buildroot}%{_prefix}/share/mplayer/Skin
tar -x -j -f %{SOURCE1}
tar -x -j -f %{SOURCE3}
popd
# The font for the subtitles
pushd %{buildroot}%{_prefix}/share/mplayer
unzip %{SOURCE2}
ln -s -f %{fontdir}/arial-%{fontsize} font
popd
# Last, add a system menu entry!
mkdir -p %{buildroot}%{_sysconfdir}/X11/applnk/Multimedia
cat > %{buildroot}%{_sysconfdir}/X11/applnk/Multimedia/mplayer.desktop << EOF
[Desktop Entry]
Name=MPlayer
Comment=%{summary}
Icon=
Exec=gmplayer
Terminal=0
Type=Application
EOF
%clean
rm -rf %{buildroot}
%files
%defattr(-, root, root, 755)
%doc DOCS etc/*.conf
%{_sysconfdir}/X11/applnk/Multimedia/mplayer.desktop
%{_prefix}/bin/*
%dir %{_prefix}/share/mplayer
%{_prefix}/share/mplayer/font
%{_prefix}/share/mplayer/%{fontdir}
# Workaround bad file modes for the skins
%dir %{_prefix}/share/mplayer/Skin
%dir %{_prefix}/share/mplayer/Skin/default
%attr(644, root, root) %{_prefix}/share/mplayer/Skin/default/*
%dir %{_prefix}/share/mplayer/Skin/neutron
%attr(644, root, root) %{_prefix}/share/mplayer/Skin/neutron/*
%config %{_prefix}/share/mplayer/*.conf
%{_mandir}/man1/*
%changelog
* Wed Jan 2 2002 Matthias Saou <matthias saou est une marmotte net>
- %doc cleanup and update to today's build.
- Modified for the new CONFDIR stuff.
* Wed Dec 12 2001 Matthias Saou <matthias saou est une marmotte net>
- Initial RPM release.
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]