%define build_3264bit 0 %{?_with_3264bit: %{expand: %%global build_3264bit 1}} %{?_without_3264bit: %{expand: %%global build_3264bit 0}} %if %{build_3264bit} %define pkgext 32 %else %define pkgext %{nil} %endif %define name mplayer%{pkgext} %define Name MPlayer %define Summary Movie player for linux %define prerel %{nil} %define version 1.1 %define svn %{nil} %define ffmpegversion 0.11.1 %if "%{svn}" != "" %define fversion %{svn} %else %define fversion %{version} %endif %if "%{prerel}" != "" %if "%{svn}" != "" %define rel 1.%{prerel}.0.%{svn}.1 %else %define rel 1.%{prerel}.1 %endif %else %if "%{svn}" != "" %define rel 0.%{svn}.1 %else %define rel 1 %endif %endif %define release %mkrel %{rel} %define build_plf 0 %define build_optimization 0 %define build_debug 0 %define build_mencoder 1 %define build_gui 1 %define build_system_ffmpeg 1 %define build_yasm 1 %define build_live 1 %define build_vesa 1 %define build_theora 1 %define build_ggi 0 %define build_lirc 1 %define build_xmms 0 %define build_amr 0 %define build_arts 0 %define build_aa 1 %define build_cdda 0 %define build_compiz 0 %define build_dirac 1 %define build_dv 1 %define build_sdl 1 %define build_lzo 1 %define build_smb 1 %define build_mga 1 %define build_fbdev 1 %define build_dvb 1 %define build_fribidi 1 %define build_enca 1 %define build_alsa 1 %define build_jack 1 %define build_openal 0 %define build_pulse 1 %define build_schroedinger 1 %define build_twolame 0 %define build_lame 0 %define build_faac 0 %define build_faad 0 %define build_x264 0 %define build_xvid 0 %define build_dts 0 %define build_directfb 1 %define build_v4l2 1 %define build_xvmc 1 %define build_vdpau 1 %define build_ivtv 0 %define build_libass 1 %define build_vpx 1 %define build_rtmp 1 %define build_zr 0 %define build_libnut 1 %define build_cdio 1 %if %build_cdio %define build_cdda 0 %endif %define build_bluray 1 %define build_smb 0 %ifnarch %ix86 %define build_vesa 0 %endif %if "%{?distro_section}" == "tainted" %define build_plf 1 %endif %if %build_plf %define build_amr 1 %define build_twolame 1 %define build_lame 1 %define build_faac 0 %define build_faad 1 %define build_x264 1 %define build_xvid 1 %define build_dts 1 %define build_yasm 1 %define build_dirac 1 %define build_schroedinger 1 %endif %if %build_system_ffmpeg %define build_amr 0 %define build_dirac 0 %define build_schroedinger 0 %define build_vpx 0 %define build_zr 0 %endif %{?_with_amr: %{expand: %%global build_amr 1}} %{?_without_amr: %{expand: %%global build_amr 0}} %{?_with_live: %{expand: %%global build_live 1}} %{?_without_live: %{expand: %%global build_live 0}} %{?_with_yasm: %{expand: %%global build_yasm 1}} %{?_without_yasm: %{expand: %%global build_yasm 0}} %{?_with_vesa: %{expand: %%global build_vesa 1}} %{?_without_vesa: %{expand: %%global build_vesa 0}} %{?_with_optimization: %{expand: %%global build_optimization 1}} %{?_with_debug: %{expand: %%global build_debug 1}} %{?_without_debug: %{expand: %%global build_debug 0}} %{?_with_mencoder: %{expand: %%global build_mencoder 1}} %{?_without_mencoder: %{expand: %%global build_mencoder 0}} %{?_with_gui: %{expand: %%global build_gui 1}} %{?_without_gui: %{expand: %%global build_gui 0}} %{?_with_system_ffmpeg: %{expand: %%global build_system_ffmpeg 1}} %{?_without_system_ffmpeg: %{expand: %%global build_system_ffmpeg 0}} %{?_with_theora: %{expand: %%global build_theora 1}} %{?_without_theora: %{expand: %%global build_theora 0}} %{?_with_smb: %{expand: %%global build_smb 1}} %{?_without_smb: %{expand: %%global build_smb 0}} %{?_with_ggi: %{expand: %%global build_ggi 1}} %{?_without_ggi: %{expand: %%global build_ggi 0}} %{?_with_lirc: %{expand: %%global build_lirc 1}} %{?_without_lirc: %{expand: %%global build_lirc 0}} %{?_with_xmms: %{expand: %%global build_xmms 1}} %{?_without_xmms: %{expand: %%global build_xmms 0}} %{?_with_arts: %{expand: %%global build_arts 1}} %{?_without_arts: %{expand: %%global build_arts 0}} %{?_with_aa: %{expand: %%global build_aa 1}} %{?_without_aa: %{expand: %%global build_aa 0}} %{?_with_cdda: %{expand: %%global build_cdda 1}} %{?_without_cdda: %{expand: %%global build_cdda 0}} %{?_with_dirac: %{expand: %%global build_dirac 1}} %{?_without_dirac: %{expand: %%global build_dirac 0}} %{?_with_dv: %{expand: %%global build_dv 1}} %{?_without_dv: %{expand: %%global build_dv 0}} %{?_with_sdl: %{expand: %%global build_sdl 1}} %{?_without_sdl: %{expand: %%global build_sdl 0}} %{?_with_lzo: %{expand: %%global build_lzo 1}} %{?_without_lzo: %{expand: %%global build_lzo 0}} %{?_with_mga: %{expand: %%global build_mga 1}} %{?_without_mga: %{expand: %%global build_mga 0}} %{?_with_fribidi: %{expand: %%global build_fribidi 1}} %{?_without_fribidi: %{expand: %%global build_fribidi 0}} %{?_with_enca: %{expand: %%global build_enca 1}} %{?_without_enca: %{expand: %%global build_enca 0}} %{?_with_jack: %{expand: %%global build_jack 1}} %{?_without_jack: %{expand: %%global build_jack 0}} %{?_with_libass: %{expand: %%global build_libass 1}} %{?_without_libass: %{expand: %%global build_libass 0}} %{?_with_pulse: %{expand: %%global build_pulse 1}} %{?_without_pulse: %{expand: %%global build_pulse 0}} %{?_with_openal: %{expand: %%global build_openal 1}} %{?_without_openal: %{expand: %%global build_openal 0}} %{?_with_schroedinger: %{expand: %%global build_schroedinger 1}} %{?_without_schroedinger: %{expand: %%global build_schroedinger 0}} %{?_with_twolame: %{expand: %%global build_twolame 1}} %{?_without_twolame: %{expand: %%global build_twolame 0}} %{?_with_lame: %{expand: %%global build_lame 1}} %{?_without_lame: %{expand: %%global build_lame 0}} %{?_with_faac: %{expand: %%global build_faac 1}} %{?_without_faac: %{expand: %%global build_faac 0}} %{?_with_faad: %{expand: %%global build_faad 1}} %{?_without_faad: %{expand: %%global build_faad 0}} %{?_with_x264: %{expand: %%global build_x264 1}} %{?_without_x264: %{expand: %%global build_x264 0}} %{?_with_xvid: %{expand: %%global build_xvid 1}} %{?_without_xvid: %{expand: %%global build_xvid 0}} %{?_with_dts: %{expand: %%global build_dts 1}} %{?_without_dts: %{expand: %%global build_dts 0}} %{?_with_directfb: %{expand: %%global build_directfb 1}} %{?_without_directfb: %{expand: %%global build_directfb 0}} %{?_with_rtmp: %{expand: %%global build_rtmp 1}} %{?_without_rtmp: %{expand: %%global build_rtmp 0}} %{?_with_v4l2: %{expand: %%global build_v4l2 1}} %{?_without_v4l2: %{expand: %%global build_v4l2 0}} %{?_with_xvmc: %{expand: %%global build_xvmc 1}} %{?_without_xvmc: %{expand: %%global build_xvmc 0}} %{?_with_vdpau: %{expand: %%global build_vdpau 1}} %{?_without_vdpau: %{expand: %%global build_vdpau 0}} %{?_with_vpx: %{expand: %%global build_vpx 1}} %{?_without_vpx: %{expand: %%global build_vpx 0}} %{?_with_libnut: %{expand: %%global build_libnut 1}} %{?_without_libnut: %{expand: %%global build_libnut 0}} %{?_with_cdio: %{expand: %%global build_cdio 1}} %{?_without_cdio: %{expand: %%global build_cdio 0}} %{?_with_bluray: %{expand: %%global build_bluray 1}} %{?_without_bluray: %{expand: %%global build_bluray 0}} Name: %{name} Version: %{version} Release: %{release} Summary: %{Summary} %if "%{svn}" != "" #gw generated using svn export Source0: %{name}-%{svn}.tar.xz %else Source0: ftp://ftp.mplayerhq.hu/MPlayer/releases/%{Name}-%{fversion}.tar.xz %endif Source1: ffmpeg-%{ffmpegversion}.tar.bz2 #gw default skin Source4: Blue-1.8.tar.bz2 Patch0: mplayer-1.0rc4-distro-config.patch Patch3: mplayer-mp3lib-no-strict-aliasing.patch Patch7: mplayer-1.0pre1-nomgafirst.patch Patch21: mplayer-1.0rc2-compiz.patch # fixes for crashes found while fixing CVE-2008-1558 Patch28: mplayer-rtsp-extra-fixes.patch Patch31: mplayer-format-string-literal.patch #gw HAVE_DLFCN_H isn't defined Patch33: mplayer-have-dlfcn_h.patch #gw fix crash: https://qa.mandriva.com/show_bug.cgi?id=55443 Patch35: mplayer-fix-dvd-crash.patch Patch43: mplayer-r34911-dont-use-ffmpeg-functionality-outside-stable-release.patch # hack to build video filters that require internal FFmpeg headers - # this requires the private headers to be present during build # (it is somewhat bad, but there are many other files in mplayer that # already require them, so we couldn't remove them anyway) Patch49: mplayer-filters-hack-with-shared.patch Patch50: mplayer-1.1-fix-live-test.patch URL: http://www.mplayerhq.hu License: GPLv2 Group: Video BuildRequires: libncurses-devel %if %build_aa BuildRequires: libaa-devel %endif BuildRequires: a52dec-devel %if %build_arts BuildRequires: libarts-devel %endif %if %build_amr BuildRequires: opencore-amr-devel %endif %if %build_jack BuildRequires: libjack-devel %endif %if %build_pulse BuildRequires: libpulseaudio-devel %endif %if %build_openal BuildRequires: libopenal-devel %endif %if %build_cdda BuildRequires: libcdda-devel %endif %if %build_dirac BuildRequires: libdirac-devel >= 0.9.0 %endif %if %build_schroedinger BuildRequires: libschroedinger-devel %endif %if %build_dv BuildRequires: libdv-devel %endif BuildRequires: libdxr3-devel BuildRequires: libjpeg-devel BuildRequires: openjpeg-devel %if %build_lirc BuildRequires: liblirc-devel %endif %if %build_lzo BuildRequires: liblzo-devel %endif BuildRequires: libmad-devel BuildRequires: libnas-devel BuildRequires: libpng-devel %if %build_sdl BuildRequires: libSDL-devel >= 1.1.8 %endif BuildRequires: libtermcap-devel %if %build_xmms BuildRequires: libxmms-devel %endif %if %build_ggi BuildRequires: libggiwmh-devel %endif %if %build_smb # require samba < 3.2.0 to avoid shipping GPLv2 vs GPLv3 BuildRequires: libsmbclient-devel < 3.2.0 %endif %if %build_twolame BuildRequires: libtwolame-devel %endif %if %build_faac BuildRequires: libfaac-devel %endif %if %build_faad BuildRequires: libfaad2-devel %endif %if %build_x264 BuildRequires: libx264-devel >= 0.120 %endif %if %build_xvid BuildRequires: xvid-devel >= 1.0.0-0.beta2.1plf %endif %if %build_dts BuildRequires: dtsdec-devel %endif %if %build_lame BuildRequires: liblame-devel %endif %if %build_plf Requires: %mklibname dvdcss 2 %endif %if %build_live BuildRequires: live-devel %endif %if %build_vesa BuildRequires: libvbe-devel liblrmi-devel %endif %if %build_theora BuildRequires: libtheora-devel %endif %if %build_fribidi BuildRequires: libfribidi-devel >= 0.10.4 %endif %if %build_enca BuildRequires: libenca-devel %endif %if %build_directfb BuildRequires: libdirectfb-devel %endif %if %build_xvmc BuildRequires: libxvmc-devel %endif %if %build_vdpau BuildRequires: vdpau-devel %endif %if %build_libass BuildRequires: libass-devel %endif BuildRequires: gsm-devel BuildRequires: libmpg123-devel %if %build_vpx BuildRequires: libvpx-devel %endif %if %build_rtmp BuildRequires: rtmp-devel %endif %if %build_libnut BuildRequires: libnut-devel %endif %if %build_cdio BuildRequires: libcdio-devel %endif %if %build_bluray BuildRequires: bluray-devel %endif BuildRequires: bzip2-devel BuildRequires: libmng-devel BuildRequires: libmesagl-devel BuildRequires: libxxf86vm-devel BuildRequires: libxxf86dga-devel BuildRequires: libxscrnsaver-devel BuildRequires: libspeex-devel BuildRequires: libmpcdec-devel BuildRequires: ladspa-devel BuildRequires: libxslt-proc BuildRequires: docbook-style-xsl BuildRequires: docbook-dtd412-xml BuildRequires: libcaca-devel BuildRequires: giflib-devel %if %build_yasm BuildRequires: yasm %endif BuildRequires: libbs2b-devel %if %build_system_ffmpeg BuildRequires: ffmpeg-devel %endif BuildRequires: libdvdread-devel BuildRequires: libdvdnav-devel Provides: mplayer%{pkgext}1.0 Obsoletes: mplayer%{pkgext}1.0 %description MPlayer is a movie player for LINUX (runs on many other Unices, and non-x86 CPUs, see the documentation). It plays most MPEG, VOB, AVI, VIVO, ASF/WMV, QT/MOV, FLI, NuppelVideo, yuv4mpeg, FILM, RoQ, and some RealMedia files, supported by many native, XAnim, and Win32 DLL codecs. You can watch VideoCD, SVCD, DVD, 3ivx, FLI, and even DivX movies too (and you don't need the avifile library at all!). The another big feature of mplayer is the wide range of supported output drivers. It works with X11, Xv, DGA, OpenGL, SVGAlib, fbdev, AAlib, but you can use SDL (and this way all drivers of SDL), VESA (on every VESA compatible card, even without X!), and some lowlevel card-specific drivers (for Matrox, 3Dfx and Radeon) too! Most of them supports 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!!!) with european/ISO 8859-1,2 (hungarian, english, czech, etc), cyrillic, korean fonts, and OSD? %if %build_plf This package is in the 'tainted' section because some included codecs are covered by patents. It also includes support for reading DVDs encrypted with CSS which might be illegal in some countries. %endif %package doc Summary: %{Name} documentation Group: Books/Computer books BuildArch: noarch %description doc This package contains documentation for %{Name}. %if %build_gui %package gui Summary: GUI for %{name} Group: Video Requires: %{name} = %{version} BuildRequires: gtk+2-devel BuildRequires: imagemagick Requires: soundwrapper Provides: mplayer%{pkgext}1.0-gui Obsoletes: mplayer%{pkgext}1.0-gui Conflicts: mplayer-skins < 1.3-8 %description gui This package contains a GUI for %{name}. %endif %if %build_mencoder %package -n mencoder%{pkgext} Summary: MPlayer's movie encoder Group: Video Requires: %{name} = %{version} Provides: mencoder%{pkgext}1.0 Obsoletes: mencoder%{pkgext}1.0 %description -n mencoder%{pkgext} MEncoder a movie encoder and is a part of the MPlayer package. %if !%build_plf Note: this version doesn't have support for encoding mp3 audio streams in the video files. %else This 'tainted' build has additional support for AAC decoding with libfaad and MP3 encoding with lame, both are covered by software patents. It also includes support for reading DVDs encrypted with CSS which might be illegal in some countries. %endif %endif %prep %if "%{svn}" != "" %setup -q -n %{name} -a 4 #gw as we have have used svn export: echo %{svn}|sed s/^r// > snapshot_version perl -pi -e 's^r\$svn_revision^%{release}^' version.sh find DOCS -name .svn|xargs rm -rf %else %setup -q -n MPlayer-%{version}%{prerel} -a 4 echo %{version}%{prerel}-%{release} > VERSION %endif #gw fix permissions chmod 644 AUTHORS Changelog README Copyright rm -f Blue/README %patch0 -p1 -b .distro-config #%patch3 -p1 -b .mp2 #%patch7 -p1 -b .mga #%patch21 -p0 -b .compiz %patch28 -p1 -b .rtsp-extra-fixes %patch31 -p1 -b .format~ %patch33 -p0 %patch35 -p0 %patch43 -p1 -b .ffm-stable %patch49 -p1 %patch50 -p0 mv DOCS/README README.DOCS tar -xjf %{SOURCE1} mv ffmpeg-%{ffmpegversion} ffmpeg pushd ffmpeg popd %build %if !%build_optimization export CFLAGS="$CFLAGS $RPM_OPT_FLAGS" %endif %if %build_debug export CFLAGS="$CFLAGS -g" %endif %ifarch ppc export CFLAGS="$CFLAGS -mcpu=7450 -maltivec" %endif %if %build_directfb export CPPFLAGS="-I%_includedir/directfb" %endif %if %{build_3264bit} export EXESUF=32 %endif export LDFLAGS="%{?ldflags}" ./configure \ --prefix=%{_prefix} \ --datadir=%{_datadir}/%{name} \ --confdir=%{_sysconfdir}/%{name} \ --libdir=%{_libdir} \ %if !%build_optimization --enable-runtime-cpudetection \ %ifarch %ix86 --enable-mmx \ --enable-3dnow \ --enable-sse \ --enable-sse2 \ --enable-fastmemcpy \ %endif %endif --enable-freetype \ --enable-nas \ %if %build_debug --enable-debug=3 \ %else --disable-sighandler \ %endif %if %build_gui --enable-gui \ %endif %if %build_system_ffmpeg --disable-ffmpeg_a \ %else --enable-ffmpeg_a \ --disable-ffmpeg_so \ %endif --language=all \ %if ! %build_faad --disable-faad \ --disable-decoder=AAC \ %endif --disable-libdvdcss-internal \ --enable-dvdnav \ --disable-dvdread-internal \ --enable-dvdread \ %if %build_lirc --enable-lirc \ %else --disable-lirc \ %endif --enable-tv \ %if ! %build_v4l2 --disable-tv-v4l2 \ %endif --enable-joystick \ \ --enable-gl \ --disable-svga \ %if ! %build_mga --disable-mga \ %endif %if ! %build_fbdev --disable-fbdev \ %endif %if %build_directfb --enable-directfb \ %else --disable-directfb \ %endif %if %build_mencoder --enable-mencoder \ %else --disable-mencoder \ %endif %if ! %build_live --disable-live \ %endif %if ! %build_vesa --disable-vesa \ %endif %if %build_theora --enable-theora \ %else --disable-theora \ %endif --enable-menu \ %if %build_xmms --enable-xmms --with-xmmslibdir=%{_libdir} \ %endif %if %build_smb --enable-smb \ %endif %if ! %build_dvb --disable-dvb \ %endif %if ! %build_ggi --disable-ggi \ %endif --codecsdir=%{_libdir}/codecs \ %if ! %build_arts --disable-arts \ %endif %if ! %build_jack --disable-jack \ %endif %if ! %build_aa --disable-aa \ %endif %if ! %build_cdda --disable-cdparanoia \ %endif %if ! %build_dv --disable-libdv \ %endif %if ! %build_lzo --disable-liblzo \ %endif %if ! %build_sdl --disable-sdl \ %endif %if ! %build_alsa --disable-alsa \ %endif %if ! %build_fribidi --disable-fribidi \ %endif %if !%build_enca --disable-enca \ %endif %if %build_pulse --enable-pulse \ %endif %if !%build_openal --disable-openal \ %endif %if %build_zr --enable-zr \ %endif %if %build_xvmc --enable-xvmc \ %endif %if ! %build_ivtv --disable-ivtv \ %endif %if ! %build_vdpau --disable-vdpau %endif # Keep this line before empty end %%configure (ppc conditionnal pb) make EXESUF=%{pkgext} #gw make sure we have our version string included: fgrep %{release} version.h %install rm -rf %{buildroot} install -d -m 755 %{buildroot}%{_bindir} install -d -m 755 %{buildroot}%{_datadir}/%{name} install -d -m 755 %{buildroot}%{_sysconfdir}/%{name} install -m 755 mplayer%{pkgext} -D %{buildroot}%{_bindir}/mplayer%{pkgext} for lang in en de fr hu pl zh_CN es it; do install -m 644 DOCS/man/$lang/mplayer.1 -D %{buildroot}%{_mandir}/$([ "$lang" != "en" ] && echo $lang)/man1/mplayer%{pkgext}.1 done %find_lang mplayer%{pkgext} --with-man %if %build_mencoder install -m 755 mencoder%{pkgext} -D %{buildroot}%{_bindir}/mencoder%{pkgext} for lang in en de fr hu pl zh_CN es it; do ln -s mplayer%{pkgext}.1 %{buildroot}%{_mandir}/$([ "$lang" != "en" ] && echo $lang)/man1/mencoder%{pkgext}.1 done %find_lang mencoder%{pkgext} --with-man install -m 755 TOOLS/mencvcd.sh %{buildroot}%_bindir/mencvcd%{pkgext} install -m 755 TOOLS/divx2svcd.sh %{buildroot}%_bindir/divx2svcd%{pkgext} install -m 755 TOOLS/wma2ogg.pl %{buildroot}%_bindir/wma2ogg%{pkgext}.pl install -m 755 TOOLS/midentify.sh %{buildroot}%_bindir/midentify%{pkgext} %endif install -m 644 etc/example.conf %{buildroot}%{_sysconfdir}/%{name}/mplayer.conf install -m 644 etc/menu.conf %{buildroot}%{_sysconfdir}/%{name} %if %build_gui # default Skin install -d -m 755 %{buildroot}%{_datadir}/%{name}/skins/ cp -r Blue %{buildroot}%{_datadir}/%{name}/skins/ ln -s Blue %{buildroot}%{_datadir}/%{name}/skins/default # gmplayer equals mplayer -gui ln -s mplayer%{pkgext} %{buildroot}%{_bindir}/gmplayer%{pkgext} # icons mkdir -p %{buildroot}{%_liconsdir,%_iconsdir,%{_miconsdir}} convert -transparent white Blue/icons/icon48x48.png %{buildroot}%{_liconsdir}/mplayer%{pkgext}.png convert -transparent white Blue/icons/icon32x32.png %{buildroot}%{_iconsdir}/mplayer%{pkgext}.png convert -transparent white -scale 16x16 Blue/icons/icon48x48.png %{buildroot}%{_miconsdir}/mplayer%{pkgext}.png install -D -m 644 etc/mplayer.desktop %{buildroot}%{_datadir}/applications/mplayer%{pkgext}.desktop perl -pi -e 's@mplayer$@mplayer%{pkgext}@g' %{buildroot}%{_datadir}/applications/mplayer%{pkgext}.desktop %endif %if %{build_3264bit} if [ -e %{buildroot}%{_liconsdir}/mplayer%{pkgext}.png ]; then convert %{buildroot}%{_liconsdir}/mplayer%{pkgext}.png -channel green -negate \ %{buildroot}%{_liconsdir}/mplayer%{pkgext}.png fi if [ -e %{buildroot}%{_iconsdir}/mplayer%{pkgext}.png ]; then convert %{buildroot}%{_iconsdir}/mplayer%{pkgext}.png -channel green -negate \ %{buildroot}%{_iconsdir}/mplayer%{pkgext}.png fi if [ -e %{buildroot}%{_miconsdir}/mplayer%{pkgext}.png ]; then convert %{buildroot}%{_miconsdir}/mplayer%{pkgext}.png -channel green -negate \ %{buildroot}%{_miconsdir}/mplayer%{pkgext}.png fi %endif %if %build_debug export DONT_STRIP=1 %endif %if %build_gui %pre gui if [ -d %{_datadir}/%{name}/skins/default ] then rm -rf %{_datadir}/%{name}/skins/default fi %endif %clean rm -rf %{buildroot} %files -f mplayer%{pkgext}.lang %doc AUTHORS Changelog README Copyright %dir %{_sysconfdir}/%{name} %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/%{name}/mplayer.conf %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/%{name}/menu.conf %{_bindir}/midentify%{pkgext} %{_bindir}/mplayer%{pkgext} %{_mandir}/man1/mplayer%{pkgext}.1* %dir %{_datadir}/%{name} %files doc %defattr(-,root,root,755) %doc README.DOCS %doc DOCS/default.css DOCS/xml DOCS/tech/ %if %build_mencoder %files -n mencoder%{pkgext} -f mencoder%{pkgext}.lang %{_bindir}/mencoder%{pkgext} %{_bindir}/divx2svcd%{pkgext} %{_bindir}/mencvcd%{pkgext} %{_bindir}/wma2ogg%{pkgext}.pl %{_mandir}/man1/mencoder%{pkgext}.1* %endif %if %build_gui %files gui %{_bindir}/gmplayer%{pkgext} %{_datadir}/applications/mplayer%{pkgext}.desktop %{_datadir}/%{name}/skins/ %{_iconsdir}/mplayer%{pkgext}.png %{_miconsdir}/mplayer%{pkgext}.png %{_liconsdir}/mplayer%{pkgext}.png %endif