Projects
home:DarkWav
MPlayer
MPlayer.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File MPlayer.spec of Package MPlayer
# vim: set sw=4 ts=4 et: # Copyright (c) 2010-2012 Pascal Bleser <pascal.bleser@opensuse.org> and # the Packman team <packman@links2linux.de>. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via packman@links2linux.de %define _lto_cflags %{nil} %define _libexecdir %{_prefix}/lib %define suseversion %(echo "openSUSE Linux `echo "scale=1; 0%{?suse_version}/100" | bc 2>/dev/null || echo UNKNOWN` (%{_build_cpu})") %define revision 37916 %define blue_version 1.11 %define clearlooks_version 1.7 Name: MPlayer Version: 1.2.r38304 Release: 0 License: GPL-2.0+ Summary: Multimedia Player Summary(de): Multimedia-Abspielprogramm Url: http://www.mplayerhq.hu Group: Productivity/Multimedia/Video/Players ## svn://svn.mplayerhq.hu/mplayer/trunk Source0: %{name}-%{version}.tar.xz Source1: http://www1.mplayerhq.hu/MPlayer/skins/Blue-%{blue_version}.tar.bz2 Source2: http://www1.mplayerhq.hu/MPlayer/skins/Clearlooks-%{clearlooks_version}.tar.bz2 Patch1: MPlayer-1.0rc4-warn.patch Patch2: MPlayer-vdpau.patch Patch3: MPlayer-pci_linux_gnu_source.patch Patch4: MPlayer-amd64-detection.patch Patch5: bug490-demux_lavf.patch Patch13: MPlayer-fix_win32_pointer_casts.patch # PATCH-PACKMAN-FIX change include path for libsmbclient with samba 4.0 Patch15: MPlayer-samba4-include-path.patch Patch21: MPlayer-1.0rc4-distro-config.patch # fixes for crashes found while fixing CVE-2008-1558 Patch22: MPlayer-rtsp-extra-fixes.patch #gw fix crash: https://qa.mandriva.com/show_bug.cgi?id=55443 Patch25: MPlayer-fix-dvd-crash.patch Patch28: MPlayer-bypass_live_detection.patch Patch32: 60_arm-private-symbols.patch Patch33: MPlayer-fix_tcp_pointer_casts.patch Patch34: MPlayer-coverity_shebang.patch Patch35: MPlayer-fix_vd_ffmpeg_pointer_casts.patch Patch36: MPlayer-column_fidct_mmx.patch Patch37: MPlayer-codec-cfg_optflags.patch Patch38: MPlayer-libopus_support.patch Patch39: MPlayer-linking_dvdread.patch patch40: MPlayer-ve_lavc-intptr.patch BuildRequires: (pkgconfig(libavcodec) >= 58.18.100 with pkgconfig(libavcodec) < 59) BuildRequires: (pkgconfig(libavformat) >= 58.12.100 with pkgconfig(libavformat) < 59) BuildRequires: (pkgconfig(libavutil) >= 56.14.100 with pkgconfig(libavutil) < 57) BuildRequires: (pkgconfig(libswresample) >= 3.1.100 with pkgconfig(libswresample) < 4) BuildRequires: (pkgconfig(libswscale) >= 4.8.100 with pkgconfig(libswscale) < 6) BuildRequires: (pkgconfig(libpostproc) >= 54.7.100 with pkgconfig(libpostproc) < 56) BuildRequires: aalib-devel BuildRequires: pkgconfig(jack) BuildRequires: pkgconfig(libpulse) >= 0.9 BuildRequires: libcdio-paranoia-devel BuildRequires: libdv-devel BuildRequires: pkgconfig(libjpeg) %if 0%{?suse_version} > 1320 BuildRequires: pkgconfig(libopenjp2) %else BuildRequires: openjpeg-devel %endif BuildRequires: lirc-devel BuildRequires: lzo-devel BuildRequires: libSDL-devel >= 1.1.8 BuildRequires: pkgconfig(smbclient) BuildRequires: libtwolame-devel BuildRequires: pkgconfig(opus) BuildRequires: libfaac-devel BuildRequires: libfaad-devel BuildRequires: pkgconfig(dvdread) BuildRequires: pkgconfig(dvdnav) BuildRequires: libmpeg2-devel BuildRequires: libx264-devel >= 0.120 BuildRequires: libxvidcore-devel >= 1.0.0 BuildRequires: libdca-devel BuildRequires: libmp3lame-devel BuildRequires: live555-devel BuildRequires: libtheora-devel BuildRequires: fribidi-devel >= 0.10.4 BuildRequires: enca-devel BuildRequires: alsa-devel BuildRequires: libXvMC-devel BuildRequires: libvdpau-devel BuildRequires: libass-devel BuildRequires: librtmp-devel BuildRequires: libbluray-devel BuildRequires: yasm BuildRequires: libvorbis-devel BuildRequires: gtk2-devel BuildRequires: ImageMagick BuildRequires: Mesa-libGL-devel BuildRequires: libXxf86vm-devel BuildRequires: libXxf86dga-devel BuildRequires: libXScrnSaver-devel BuildRequires: libxslt-tools BuildRequires: libXt-devel BuildRequires: gcc-c++ BuildRequires: ncurses-devel BuildRequires: gettext-devel BuildRequires: liba52dec-devel BuildRequires: libmad-devel BuildRequires: libpng-devel BuildRequires: termcap BuildRequires: libgsm-devel BuildRequires: pkgconfig(libmpg123) BuildRequires: libzip-devel BuildRequires: libmng-devel BuildRequires: speex-devel BuildRequires: libmpcdec-devel BuildRequires: ladspa-devel BuildRequires: docbook-xsl-stylesheets BuildRequires: libcaca-devel >= 0.99.beta16 BuildRequires: giflib-devel BuildRequires: libbs2b-devel BuildRequires: pkgconfig(gnutls) BuildRequires: update-desktop-files BuildRoot: %{_tmppath}/%{name}-%{version}-build Recommends: gmplayer = %{version} Provides: mplayer = %{version} Provides: mencoder = %{version} Conflicts: MPlayer-unstable Conflicts: mplayer-unstable %description MPlayer plays most MPEG/VOB, AVI, Ogg/OGM, VIVO, ASF/WMA/WMV, QT/MOV/MP4, RealMedia, Matroska, NuppelVideo, FLI, YUV4MPEG, FILM, RoQ, PVA files, supported by many native, XAnim, and Win32 DLL codecs. You can watch VideoCD, SVCD, DVD, 3ivx, DivX 3/4/5 and even WMV movies.. Note that the GUI frontend "gmplayer" is not part of this package. Instead, you must also install the package "gmplayer". %package -n gmplayer Summary: GUI Frontend for the %{name} Multimedia Player Group: Productivity/Multimedia/Video/Players Requires: %{name} = %{version} Provides: mplayer-gui = %{version} Provides: %{name}-gui = %{version} %description -n gmplayer MPlayer plays most MPEG/VOB, AVI, Ogg/OGM, VIVO, ASF/WMA/WMV, QT/MOV/MP4, RealMedia, Matroska, NuppelVideo, FLI, YUV4MPEG, FILM, RoQ, PVA files, supported by many native, XAnim, and Win32 DLL codecs. You can watch VideoCD, SVCD, DVD, 3ivx, DivX 3/4/5 and even WMV movies.. This subpackage contains the GUI frontend "gmplayer". %package doc Summary: Multimedia Player Group: Productivity/Multimedia/Video/Players Requires: %{name} = %{version} %description doc MPlayer plays most MPEG/VOB, AVI, Ogg/OGM, VIVO, ASF/WMA/WMV, QT/MOV/MP4, RealMedia, Matroska, NuppelVideo, FLI, YUV4MPEG, FILM, RoQ, PVA files, supported by many native, XAnim, and Win32 DLL codecs. You can watch VideoCD, SVCD, DVD, 3ivx, DivX 3/4/5 and even WMV movies.. This subpackage contains technical documentation about codecs, formats, and MPlayer implementation details. %prep %autosetup -p1 %build tar xfa %{S:1} tar xfa %{S:2} echo '%{version}-Packman' > VERSION export HOSTCFLAGS="$RPM_OPT_FLAGS `pkg-config --cflags libavutil`" export CFLAGS="$CFLAGS %{optflags} -fno-strict-aliasing -fomit-frame-pointer -Wno-unused-but-set-variable -Wno-deprecated-declarations" %ifarch ppc export CFLAGS="$CFLAGS -mcpu=7450 -maltivec" %endif export LDFLAGS="%{?ldflags}" ./configure \ --prefix="%{_prefix}" \ --confdir="%{_sysconfdir}/mplayer" \ --datadir="%{_datadir}/mplayer" \ --libdir="%{_libdir}" \ --mandir="%{_mandir}" \ --strip=$(type -P true) \ --disable-nls \ %ifarch %ix86 x86_64 ppc --enable-runtime-cpudetection \ %endif %ifarch %ix86 x86_64 --enable-mmx \ --enable-3dnow \ --enable-sse \ --enable-sse2 \ --enable-fastmemcpy \ %endif --disable-ffmpeg_a \ --enable-freetype \ --disable-sighandler \ --enable-gui \ --language=all \ --enable-dvdnav \ --enable-dvdread \ --enable-lirc \ --enable-tv \ --enable-radio \ --enable-radio-capture \ --enable-joystick \ --enable-gl \ --disable-svga \ --disable-mga \ --disable-directfb \ --enable-mencoder \ --enable-theora \ --enable-menu \ --enable-smb \ --codecsdir=%{_libdir}/codecs \ --disable-arts \ --enable-pulse \ --disable-openal \ --enable-xvmc \ %{nil} chmod 0755 ./version.sh make version.h %make_build %install %make_install # skin install -m 755 -d "%{buildroot}%{_datadir}/mplayer/skins" cp -r Blue "%{buildroot}%{_datadir}/mplayer/skins/default" cp -r Clearlooks "%{buildroot}%{_datadir}/mplayer/skins/" # configs install -m 644 etc/example.conf "%{buildroot}%{_sysconfdir}/mplayer/mplayer.conf" echo "fontconfig=yes" >> "%{buildroot}%{_sysconfdir}/mplayer/mplayer.conf" install -m 644 etc/input.conf "%{buildroot}%{_sysconfdir}/mplayer/" install -m 644 etc/menu.conf "%{buildroot}%{_sysconfdir}/mplayer/" # mencvcd install -m 755 TOOLS/mencvcd.sh "%{buildroot}%{_bindir}/mencvcd" # TOOLS pushd TOOLS rm -f \ alaw-gen alaw-gen.c \ binary_codecs.sh \ bmovl-test bmovl-test.c \ calcbpp.pl \ checktree.sh \ compare compare.c \ fastmemcpybench fastmemcpybench.c \ modify_reg.c \ mphelp_check.py \ plotpsnr.pl \ vfw2menc.c popd #TOOLS install -d "%{buildroot}%{_libexecdir}/mplayer" for f in TOOLS/*; do if [ -f "$f" -a -x "$f" ]; then mv "$f" "%{buildroot}%{_libexecdir}/mplayer/" \ && ln -s "%{_libexecdir}/mplayer/${f##*/}" TOOLS/ fi done rm -rf DOCS/man DOCS/xml MANPAGES="$PWD/manpages.lst" GMANPAGES="$PWD/gmanpages.lst" echo -n > "$MANPAGES" echo -n > "$GMANPAGES" pushd "%{buildroot}%{_mandir}" for f in */man?/*; do lang=${f%%/*} case $f in *gmplayer*) MPFILE="$GMANPAGES" ;; *) MPFILE="$MANPAGES" ;; esac echo "%doc %lang(${lang}) %{_mandir}/${f}*" >>"$MPFILE" done popd %suse_update_desktop_file -n -r mplayer AudioVideo Video Player echo -n >docfiles.lst install -d "%{buildroot}%{_docdir}/%{name}" for x in TOOLS README AUTHORS Changelog; do cp -a "$x" "%{buildroot}%{_docdir}/%{name}/" echo "%doc %{_docdir}/%{name}/${x}" >>docfiles.lst done cp -a DOCS/tech "%{buildroot}%{_docdir}/%{name}/" cat manpages.lst docfiles.lst > mainpackagefiles.lst %files -f mainpackagefiles.lst %doc %dir %{_docdir}/%{name} %dir %{_sysconfdir}/mplayer %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mplayer/mplayer.conf %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mplayer/input.conf %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mplayer/menu.conf %{_mandir}/man1/mplayer.1%{ext_man} %{_mandir}/man1/mencoder.1%{ext_man} %{_bindir}/mplayer %{_bindir}/mencoder %{_bindir}/mencvcd %dir %{_datadir}/mplayer %{_libexecdir}/mplayer %lang(cs) %doc %dir %{_mandir}/cs %lang(cs) %doc %dir %{_mandir}/cs/man1 %lang(hu) %doc %dir %{_mandir}/hu %lang(hu) %doc %dir %{_mandir}/hu/man1 %lang(pl) %doc %dir %{_mandir}/pl %lang(pl) %doc %dir %{_mandir}/pl/man1 %lang(ru) %doc %dir %{_mandir}/ru %lang(ru) %doc %dir %{_mandir}/ru/man1 %lang(zh_CN) %doc %dir %{_mandir}/zh_CN %lang(zh_CN) %doc %dir %{_mandir}/zh_CN/man1 %files -n gmplayer -f gmanpages.lst %{_bindir}/gmplayer %{_datadir}/mplayer/skins/ %{_datadir}/applications/mplayer.desktop %{_datadir}/icons/* %{_mandir}/man1/gmplayer.1%{ext_man} %files doc %doc %{_docdir}/%{name}/tech %changelog
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.