Mercurial > mplayer.hg
view rpm/mplayer.spec @ 27148:858c01b81117
r26502: Document rgbtest arguments
r26057: Fix copy&paste typo in rgbtest documentation
r26198: Grayscale encoding/decoding with FFmpeg is no longer enabled, remove references
r26221: Try to fix the description of what mbcmp influences, please fix if I misunderstood the code.
r26231: better syntax for A key
r26232: added missing escapes
r26260: Experimental support for -framedrop with -correct-pts.
r26271: Mention that '-frames 0' is useful with -identify, closes bug #1046.
r26273: add "ipod" to the list of formats handled by lavf
r26297: compacted new libavformat's 'ipod' description
r26402: Enable runtime control for colorful and/or module name output
r26427: Restore grayscale decoding support with FFmpeg.
r26449: 10L, forgot to commit the documentation for the -noconfig options.
r26460: restore options alphabetical order
r26650: Update documentation for the gl2 driver to make clear gl is usually preferred.
r26674: add h264 to list of supported codecs
r26732: Mark new options Michael committed as undocumented.
r26739: Oops, remove stray .TP.
r26749: -psprobe can be used in mpeg-pes streams, too
r26762: Add a new suboption to -vo xv and -vo xvmc that allows selection
r26763: Remove '(pass 1/2)' from some lavcopts. These options really worked on
r26795: Add support for AppleIR Remote as an input under Linux systems.
r26798: Document the -noar command-line option in en/fr manpages.
r26806: Document x264's AQ options
r26853: Update gl vo section with the new force-pbo suboption.
r26909: Add a slave command to stop stream playback.
r26979: small spelling/wording fixes
r26986: Document VIDIXIVTVALPHA environment variable.
r26997: Fix codec-specific options syntax declaration to be less confusing and wrong.
r27057: Ability for specifying TV standard individually for each TV channel.
r27132: Fix/restore the description of the rectangle video filter.
previously applied:
r27169: add missing escapes and full stops for scaletempo filter
r27179: remove two trailing whitespaces
author | kraymer |
---|---|
date | Mon, 30 Jun 2008 19:35:45 +0000 |
parents | 3f8e15bde43b |
children | 305dc504c407 |
line wrap: on
line source
%define date %(date --iso) %define svnbuild %(date +%Y%m%d) %define codecsdir %{_libdir}/codecs Name: mplayer Version: 1.0 Release: 0.%{svnbuild}svn%{?dist} Summary: Movie player playing most video formats and DVDs Group: Applications/Multimedia License: GPL URL: http://www.mplayerhq.hu/ Source0: http://www.mplayerhq.hu/MPlayer/releases/mplayer-export-snapshot.tar.bz2 Source1: http://www.mplayerhq.hu/MPlayer/skins/Blue-1.7.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: SDL-devel BuildRequires: aalib-devel BuildRequires: alsa-lib-devel BuildRequires: cdparanoia-devel BuildRequires: desktop-file-utils BuildRequires: em8300-devel BuildRequires: enca-devel BuildRequires: faac-devel BuildRequires: faad2-devel BuildRequires: fontconfig-devel BuildRequires: freetype-devel >= 2.0.9 BuildRequires: fribidi-devel BuildRequires: giflib-devel BuildRequires: gtk2-devel BuildRequires: ladspa-devel BuildRequires: lame-devel BuildRequires: libGL-devel BuildRequires: libXinerama-devel BuildRequires: libXv-devel BuildRequires: libXvMC-devel BuildRequires: libXxf86dga-devel BuildRequires: libXxf86vm-devel BuildRequires: libcaca-devel BuildRequires: libdca-devel BuildRequires: libdv-devel BuildRequires: libdvdnav-devel BuildRequires: libjpeg-devel BuildRequires: libmpcdec-devel BuildRequires: libtheora-devel BuildRequires: libvorbis-devel BuildRequires: lirc-devel BuildRequires: live-devel BuildRequires: lzo-devel >= 2 BuildRequires: speex-devel >= 1.1 BuildRequires: twolame-devel BuildRequires: x264-devel BuildRequires: xvidcore-devel >= 0.9.2 %{?_with_arts:BuildRequires: arts-devel} %{?_with_amr:BuildRequires: amrnb-devel amrwb-devel} %{?_with_directfb:BuildRequires: directfb-devel} %{?_with_esound:BuildRequires: esound-devel} %{?_with_jack:BuildRequires: jack-audio-connection-kit-devel} %{?_with_libmad:BuildRequires: libmad-devel} %{?_with_openal:BuildRequires: openal-devel} %{?_with_samba:BuildRequires: samba-common} %{?_with_svgalib:BuildRequires: svgalib-devel} %{?_with_xmms:BuildRequires: xmms-devel} # for XML docs, SVN only BuildRequires: docbook-dtds BuildRequires: docbook-style-xsl BuildRequires: libxml2 BuildRequires: libxslt %description MPlayer is a movie player that plays most MPEG, VOB, AVI, OGG/OGM, VIVO, ASF/WMA/WMV, QT/MOV/MP4, FLI, RM, NuppelVideo, yuv4mpeg, FILM, RoQ, and PVA files. You can also use it to watch VCDs, SVCDs, DVDs, 3ivx, RealMedia, and DivX movies. It supports a wide range of output drivers including X11, XVideo, DGA, OpenGL, SVGAlib, fbdev, AAlib, DirectFB etc. There are also nice antialiased shaded subtitles and OSD. Non-default rpmbuild options: --with samba: Enable Samba (smb://) support --with xmms: Enable XMMS input plugin support --with amr: Enable AMR support --with libmad: Enable libmad support --with openal: Enable OpenAL support --with jack: Enable JACK support --with arts: Enable aRts support --with esound: Enable EsounD support --with directfb:Enable DirectFB support --with svgalib: Enable SVGAlib support %package gui Summary: GUI for MPlayer Group: Applications/Multimedia Requires: mplayer = %{version}-%{release} %description gui This package contains a GUI for MPlayer and a default skin for it. %package -n mencoder Summary: MPlayer movie encoder Group: Applications/Multimedia Requires: mplayer = %{version}-%{release} %description -n mencoder This package contains the MPlayer movie encoder. %package doc Summary: MPlayer documentation in various languages Group: Documentation %description doc MPlayer documentation in various languages. %prep %setup -q -n mplayer-export-%{date} doconv() { 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 } 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 ru ; do doconv koi8-r utf-8 $lang ; done mv DOCS/man/zh DOCS/man/zh_CN %build ./configure \ --prefix=%{_prefix} \ --bindir=%{_bindir} \ --datadir=%{_datadir}/mplayer \ --mandir=%{_mandir} \ --confdir=%{_sysconfdir}/mplayer \ --libdir=%{_libdir} \ --codecsdir=%{codecsdir} \ \ --disable-encoder=FAAC \ --disable-encoder=MP3LAME \ --disable-encoder=X264 \ \ --enable-gui \ --enable-largefiles \ --disable-termcap \ --disable-bitmap-font \ --enable-lirc \ --enable-joystick \ %{!?_with_samba:--disable-smb} \ --disable-dvdread-internal \ --disable-libdvdcss-internal \ --enable-menu \ \ --disable-faad-internal \ --disable-tremor-internal \ %{!?_with_amr:--disable-libamr_nb --disable-libamr_wb} \ %{!?_with_libmad:--disable-mad} \ %{?_with_xmms:--enable-xmms} \ \ --disable-svga \ --enable-xvmc \ --%{?_with_directfb:enable}%{!?_with_directfb:disable}-directfb \ %{!?_with_svgalib:--disable-svga} \ \ %{!?_with_arts:--disable-arts} \ %{!?_with_esound:--disable-esd} \ %{!?_with_jack:--disable-jack} \ %{!?_with_openal:--disable-openal} \ \ --language=all \ \ %{?_with_xmms:--with-xmmslibdir=%{_libdir}} \ --with-xvmclib=XvMCW %{__make} mv -f mplayer gmplayer %{__make} distclean ./configure \ --prefix=%{_prefix} \ --bindir=%{_bindir} \ --datadir=%{_datadir}/mplayer \ --mandir=%{_mandir} \ --confdir=%{_sysconfdir}/mplayer \ --libdir=%{_libdir} \ --codecsdir=%{codecsdir} \ \ --disable-encoder=FAAC \ --disable-encoder=MP3LAME \ --disable-encoder=X264 \ \ --enable-largefiles \ --disable-termcap \ --disable-bitmap-font \ --enable-lirc \ --enable-joystick \ %{!?_with_samba:--disable-smb} \ --disable-dvdread-internal \ --disable-libdvdcss-internal \ --enable-menu \ \ --disable-faad-internal \ --disable-tremor-internal \ %{!?_with_amr:--disable-libamr_nb --disable-libamr_wb} \ %{!?_with_libmad:--disable-mad} \ %{?_with_xmms:--enable-xmms} \ \ --disable-svga \ --enable-xvmc \ --%{?_with_directfb:enable}%{!?_with_directfb:disable}-directfb \ %{!?_with_svgalib:--disable-svga} \ \ %{!?_with_arts:--disable-arts} \ %{!?_with_esound:--disable-esd} \ %{!?_with_jack:--disable-jack} \ %{!?_with_openal:--disable-openal} \ \ --language=all \ \ %{?_with_xmms:--with-xmmslibdir=%{_libdir}} \ --with-xvmclib=XvMCW %{__make} # build HTML documentation from XML files pushd DOCS/xml %{__make} html-chunked popd %install rm -rf $RPM_BUILD_ROOT doc make install DESTDIR=$RPM_BUILD_ROOT STRIPBINARIES=no install -pm 755 TOOLS/midentify $RPM_BUILD_ROOT%{_bindir}/ # Clean up documentation mkdir doc cp -pR DOCS/* doc/ rm -r doc/man doc/xml doc/README mv doc/HTML/* doc/ rm -rf doc/HTML # Default config files install -Dpm 644 etc/example.conf \ $RPM_BUILD_ROOT%{_sysconfdir}/mplayer/mplayer.conf # use Nimbus Sans L font for OSD (via fontconfig) echo "fontconfig=yes" >>$RPM_BUILD_ROOT%{_sysconfdir}/mplayer/mplayer.conf echo "font=\"Sans\"" >>$RPM_BUILD_ROOT%{_sysconfdir}/mplayer/mplayer.conf install -pm 644 etc/{input,menu}.conf $RPM_BUILD_ROOT%{_sysconfdir}/mplayer/ # GUI mplayer install -pm 755 g%{name} $RPM_BUILD_ROOT%{_bindir}/ # Default skin install -dm 755 $RPM_BUILD_ROOT%{_datadir}/mplayer/skins tar xjC $RPM_BUILD_ROOT%{_datadir}/mplayer/skins --exclude=.svn -f %{SOURCE1} ln -s Blue $RPM_BUILD_ROOT%{_datadir}/mplayer/skins/default # Icons install -dm 755 $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps install -pm 644 etc/mplayer.xpm \ $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps # Desktop file desktop-file-install \ --dir $RPM_BUILD_ROOT%{_datadir}/applications \ etc/%{name}.desktop # Codec dir install -dm 755 $RPM_BUILD_ROOT%{codecsdir} %post gui gtk-update-icon-cache -qf %{_datadir}/icons/hicolor &>/dev/null || : update-desktop-database &>/dev/null || : %postun gui gtk-update-icon-cache -qf %{_datadir}/icons/hicolor &>/dev/null || : update-desktop-database &>/dev/null || : %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-, root, root, -) %doc AUTHORS Changelog LICENSE README %dir %{_sysconfdir}/mplayer %config(noreplace) %{_sysconfdir}/mplayer/mplayer.conf %config(noreplace) %{_sysconfdir}/mplayer/input.conf %config(noreplace) %{_sysconfdir}/mplayer/menu.conf %{_bindir}/midentify %{_bindir}/mplayer %dir %{codecsdir}/ %dir %{_datadir}/mplayer/ %{_mandir}/man1/mplayer.1* %lang(cs) %{_mandir}/cs/man1/mplayer.1* %lang(de) %{_mandir}/de/man1/mplayer.1* %lang(es) %{_mandir}/es/man1/mplayer.1* %lang(fr) %{_mandir}/fr/man1/mplayer.1* %lang(hu) %{_mandir}/hu/man1/mplayer.1* %lang(it) %{_mandir}/it/man1/mplayer.1* %lang(pl) %{_mandir}/pl/man1/mplayer.1* %lang(ru) %{_mandir}/ru/man1/mplayer.1* %lang(zh_CN) %{_mandir}/zh_CN/man1/mplayer.1* %files gui %defattr(-, root, root, -) %{_bindir}/gmplayer %{_datadir}/applications/*mplayer.desktop %{_datadir}/icons/hicolor/32x32/apps/mplayer.xpm %{_datadir}/mplayer/skins/ %files -n mencoder %defattr(-, root, root, -) %{_bindir}/mencoder %{_mandir}/man1/mencoder.1* %lang(cs) %{_mandir}/cs/man1/mencoder.1* %lang(de) %{_mandir}/de/man1/mencoder.1* %lang(es) %{_mandir}/es/man1/mencoder.1* %lang(fr) %{_mandir}/fr/man1/mencoder.1* %lang(hu) %{_mandir}/hu/man1/mencoder.1* %lang(it) %{_mandir}/it/man1/mencoder.1* %lang(pl) %{_mandir}/pl/man1/mencoder.1* %lang(ru) %{_mandir}/ru/man1/mencoder.1* %lang(zh_CN) %{_mandir}/zh_CN/man1/mencoder.1* %files doc %defattr(-, root, root, -) %doc doc/en/ doc/tech/ %lang(cs) %doc doc/cs/ %lang(de) %doc doc/de/ %lang(es) %doc doc/es/ %lang(fr) %doc doc/fr/ %lang(hu) %doc doc/hu/ %lang(pl) %doc doc/pl/ %lang(ru) %doc doc/ru/ %lang(zh_CN) %doc doc/zh_CN/ %changelog * Sat Oct 06 2007 Dominik Mierzejewski <rpm at greysector.net> - adapted livna specfile for inclusion in SVN