Projects
Multimedia
MPlayer
MPlayer.spec
Sign Up
Log In
Username
Password
Sorry, you are not authorized to perform this action.
×
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 blue_version 1.11 %define clearlooks_version 1.7 Name: MPlayer Version: 1.5.r38666 Release: 0 License: GPL-2.0+ Summary: Multimedia Player Url: http://www.mplayerhq.hu ## 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 Patch0: %name.patch 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 Patch32: 60_arm-private-symbols.patch Patch36: MPlayer-column_fidct_mmx.patch Patch37: MPlayer-codec-cfg_optflags.patch Patch38: MPlayer-libopus_support.patch Patch39: MPlayer-linking_dvdread.patch BuildRequires: (pkgconfig(libavcodec) > 60 with pkgconfig(libavcodec) < 61) BuildRequires: (pkgconfig(libavformat) > 60 with pkgconfig(libavformat) < 61) BuildRequires: (pkgconfig(libavutil) > 58 with pkgconfig(libavutil) < 59) BuildRequires: (pkgconfig(libswresample) > 4 with pkgconfig(libswresample) < 5) BuildRequires: (pkgconfig(libswscale) > 7 with pkgconfig(libswscale) < 8) BuildRequires: (pkgconfig(libpostproc) > 57 with pkgconfig(libpostproc) < 58) BuildRequires: ImageMagick BuildRequires: aalib-devel BuildRequires: docbook-xsl-stylesheets BuildRequires: gcc-c++ BuildRequires: gettext-devel BuildRequires: giflib-devel BuildRequires: ladspa-devel BuildRequires: libdca-devel BuildRequires: libfaac-devel BuildRequires: libgsm-devel BuildRequires: libmpcdec-devel BuildRequires: libxslt-tools BuildRequires: libxvidcore-devel BuildRequires: nasm BuildRequires: pkgconfig(alsa) BuildRequires: pkgconfig(caca) BuildRequires: pkgconfig(dvdnav) BuildRequires: pkgconfig(dvdread) BuildRequires: pkgconfig(enca) BuildRequires: pkgconfig(faad2) BuildRequires: pkgconfig(fribidi) BuildRequires: pkgconfig(gail) BuildRequires: pkgconfig(gl) BuildRequires: pkgconfig(gnutls) BuildRequires: pkgconfig(gtk+-2.0) BuildRequires: pkgconfig(jack) BuildRequires: pkgconfig(lame) BuildRequires: pkgconfig(liba52) BuildRequires: pkgconfig(libass) BuildRequires: pkgconfig(libbluray) BuildRequires: pkgconfig(libbs2b) BuildRequires: pkgconfig(libcdio_paranoia) BuildRequires: pkgconfig(libdca) BuildRequires: pkgconfig(libdv) BuildRequires: pkgconfig(libjpeg) BuildRequires: pkgconfig(libmng) BuildRequires: pkgconfig(libmp3lame) BuildRequires: pkgconfig(libmpeg2) BuildRequires: pkgconfig(libmpg123) BuildRequires: pkgconfig(libopenjp2) BuildRequires: pkgconfig(libpng) BuildRequires: pkgconfig(libpulse) BuildRequires: pkgconfig(librtmp) BuildRequires: pkgconfig(libzip) BuildRequires: pkgconfig(lirc) BuildRequires: pkgconfig(live555) BuildRequires: pkgconfig(lzo2) BuildRequires: pkgconfig(mad) BuildRequires: pkgconfig(ncurses) BuildRequires: pkgconfig(opus) BuildRequires: pkgconfig(sdl) BuildRequires: pkgconfig(smbclient) BuildRequires: pkgconfig(speex) BuildRequires: pkgconfig(theora) BuildRequires: pkgconfig(twolame) BuildRequires: pkgconfig(vdpau) BuildRequires: pkgconfig(vorbis) BuildRequires: pkgconfig(x264) BuildRequires: pkgconfig(xscrnsaver) BuildRequires: pkgconfig(xt) BuildRequires: pkgconfig(xvmc) BuildRequires: pkgconfig(xxf86dga) BuildRequires: pkgconfig(xxf86vm) BuildRequires: update-desktop-files Recommends: gmplayer = %{version} Provides: mplayer = %{version}-%{release} Provides: mencoder = %{version}-%{release} 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}-%{release} Provides: mplayer-gui = %{version}-%{release} Provides: %{name}-gui = %{version}-%{release} %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}-%{release} BuildArch: noarch %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="%{optflags} `pkg-config --cflags libavutil`" export CFLAGS='%{optflags} -fno-strict-aliasing -fomit-frame-pointer -Wno-unused-but-set-variable -Wno-deprecated-declarations -Wno-misleading-indentation' 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 --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 \ --disable-sdl \ --enable-smb \ --codecsdir=%{_libdir}/codecs \ --disable-arts \ --enable-pulse \ --disable-openal \ --disable-qtx \ --disable-win32dll \ %{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
.