# $Id: videolan-client.spec 4217 2006-03-22 17:49:36Z thias $ # Authority: matthias # Upstream: %{?dist: %{expand: %%define %dist 1}} %{?fedora: %{expand: %%define fc%{fedora} 1}} %{!?dist:%define _with_modxorg 1} %{!?dist:%define _with_avahi 1} %{?fc5:%define _with_modxorg 1} %{?fc5:%define _with_avahi 1} %{?el4:%define _without_wxwidgets 1} %{?fc3:%define _without_wxwidgets 1} %{?fc2:%define _without_wxwidgets 1} %{?fc1:%define _without_alsa 1} %{?fc1:%define _without_theora 1} %{?fc1:%define _without_wxwidgets 1} %{?el3:%define _without_alsa 1} %{?el3:%define _without_fribidi 1} %{?el3:%define _without_theora 1} %{?el3:%define _without_wxwidgets 1} %{?rh9:%define _without_alsa 1} %{?rh9:%define _without_fribidi 1} %{?rh9:%define _without_theora 1} %{?rh9:%define _without_wxwidgets 1} %{?rh9:%define _without_x264 1} %{?rh8:%define _without_alsa 1} %{?rh8:%define _without_fribidi 1} %{?rh8:%define _without_theora 1} %{?rh8:%define _without_wxwidgets 1} %{?rh8:%define _without_x264 1} %{?rh7:%define _without_alsa 1} %{?rh7:%define _without_freedesktop 1} %{?rh7:%define _without_fribidi 1} %{?rh7:%define _without_theora 1} %{?rh7:%define _without_vorbis 1} %{?rh7:%define _without_wxwidgets 1} %{?rh7:%define _without_x264 1} %{?rh7:%define _without_xosd 1} %{?el2:%define _without_alsa 1} %{?el2:%define _without_arts 1} %{?el2:%define _without_freedesktop 1} %{?el2:%define _without_fribidi 1} %{?el2:%define _without_glx 1} %{?el2:%define _without_theora 1} %{?el2:%define _without_vorbis 1} %{?el2:%define _without_wxwidgets 1} %{?el2:%define _without_x264 1} %{?el2:%define _without_xosd 1} %{?yd3:%define _without_alsa 1} %{?yd3:%define _without_fribidi 1} %define desktop_vendor rpmforge %define ffmpeg_date 20051126 %define real_name vlc Summary: The VideoLAN client, also a very good standalone video player Name: videolan-client Version: 0.8.4a Release: 4 License: GPL Group: Applications/Multimedia URL: http://www.videolan.org/ Source0: http://downloads.videolan.org/pub/videolan/vlc/%{version}/vlc-%{version}.tar.bz2 Source1: http://downloads.videolan.org/pub/videolan/vlc/%{version}/contrib/ffmpeg-%{ffmpeg_date}.tar.bz2 Source2: http://www.live555.com/liveMedia/public/live.2006.01.05.tar.gz Patch0: vlc-0.8.4a-extraqualif.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: gcc-c++, libpng-devel, libxml2-devel, libtiff-devel BuildRequires: libgcrypt-devel, gnutls-devel %{!?_without_freedesktop:BuildRequires: desktop-file-utils} %{?_with_modxorg:BuildRequires: libGLU-devel, libXv-devel, libXinerama-devel} %{!?_with_modxorg:BuildRequires: XFree86-devel} %{!?_without_dvdread:BuildRequires: libdvdread-devel} %{!?_without_dvdnav:BuildRequires: libdvdnav-devel} %{!?_without_smb:BuildRequires: samba-common} %{!?_without_dvbpsi:BuildRequires: libdvbpsi-devel} %{!?_without_ogg:BuildRequires: libogg-devel} %{!?_without_mkv:BuildRequires: libebml-devel >= 0.7.6, libmatroska-devel} %{!?_without_modplug:BuildRequires: libmodplug-devel} %{!?_without_mad:BuildRequires: libmad-devel} %{!?_without_id3tag:BuildRequires: libid3tag-devel} %{!?_without_ffmpeg:BuildRequires: lame-devel, faac-devel} %{!?_without_faad2:BuildRequires: faad2-devel} %{!?_without_a52:BuildRequires: a52dec-devel} %{!?_without_flac:BuildRequires: flac-devel} %{!?_without_mpeg2dec:BuildRequires: mpeg2dec-devel} %{!?_without_vorbis:BuildRequires: libvorbis-devel} %{!?_without_speex:BuildRequires: speex-devel} %{!?_without_theora:BuildRequires: libtheora-devel} %{!?_without_x264:BuildRequires: x264-devel} %{!?_without_sdl:BuildRequires: SDL-devel, SDL_image-devel} %{!?_without_fribidi:BuildRequires: fribidi-devel} %{!?_without_aa:BuildRequires: aalib-devel} %{!?_without_caca:BuildRequires: libcaca-devel} %{!?_without_esd:BuildRequires: esound-devel} %{?_with_portaudio:BuildRequires: portaudio-devel} %{!?_without_arts:BuildRequires: arts-devel} %{!?_without_alsa:BuildRequires: alsa-lib-devel} %{!?_without_wxwidgets:BuildRequires: wxGTK-devel} %{!?_without_xosd:BuildRequires: xosd-devel} %{!?_without_lirc:BuildRequires: lirc-devel} %{?_with_mozilla:BuildRequires: mozilla-devel} %{?_with_ncurses:BuildRequires: ncurses-devel} %{?_with_glide:BuildRequires: Glide3-devel} %{!?_without_cdio:BuildRequires: libcdio-devel} # Added in 0.8.4 %{!?_without_gnomevfs:BuildRequires: gnome-vfs2-devel} %{?_with_hal:BuildRequires: hal-devel} %{!?_without_vcd:BuildRequires: vcdimager-devel} %{?_with_avahi:BuildRequires: avahi-devel} %{!?_without_daap:BuildRequires: libopendaap-devel} %{?_with_avahi:BuildRequires: avahi-devel} Conflicts: vlc %description VideoLAN Client (VLC) is a highly portable multimedia player for various audio and video formats (MPEG-1, MPEG-2, MPEG-4, DivX, mp3, ogg, ...) as well as DVDs, VCDs, and various streaming protocols. Available rpmbuild rebuild options : --with mga ncurses glide pth mozilla portaudio avahi hal --without dvdread dvdnav dvbpsi v4l avi asf aac ogg mad ffmpeg cdio a52 vorbis mpeg2dec flac aa caca esd arts alsa wxwidgets xosd lsp lirc id3tag faad2 theora mkv modplug smb speex glx x264 gnomevfs vcd daap pvr live Options that would need not yet existing add-on packages : --with tremor tarkin svgalib ggi %package devel Summary: Header files and static library from the Videolan Client Group: Development/Libraries Requires: %{name} = %{version} %description devel VideoLAN Client (VLC) is a highly portable multimedia player for various audio and video formats (MPEG-1, MPEG-2, MPEG-4, DivX, mp3, ogg, ...) as well as DVDs, VCDs, and various streaming protocols. Install this package if you need to build Videolan Client plugins or intend to link statically to it. %prep %setup -n %{real_name}-%{version} -a 1 -a 2 %patch0 -p1 -b .extraqualif # Fix PLUGIN_PATH path for lib64 %{__perl} -pi -e 's|/lib/vlc|/%{_lib}/vlc|g' vlc-config.in.in configure* %build export CFLAGS="%{optflags}" # Build bundeled ffmpeg first pushd ffmpeg-%{ffmpeg_date} ./configure \ --enable-mp3lame \ --enable-faac \ --enable-pp \ --enable-gpl %{__make} %{?_smp_mflags} popd # Then bundled live555 %if 0%{!?_without_live:1} pushd live # Force the use of our CFLAGS %{__perl} -pi -e 's|-O2|%{optflags}|g' config.linux # Configure and build ./genMakefiles linux && %{__make} popd %endif # Altivec compiler flags aren't set properly (0.8.2) %ifarch ppc ppc64 export CFLAGS="%{optflags} -maltivec -mabi=altivec" %endif %configure \ --enable-release \ %{!?_without_dvdread:--enable-dvdread} \ %{?_without_dvdnav:--disable-dvdnav} \ %{?_without_smb:--disable-smb} \ %{!?_without_dvbpsi:--enable-dvbpsi} \ %{!?_without_v4l:--enable-v4l} \ %{!?_without_pvr:--enable-pvr} \ %{?_without_cdio--disable-libcdio} \ %{?_without_ogg:--disable-ogg} \ %{?_without_mkv:--disable-mkv} \ %{?_without_modplug:--disable-mod} \ %{?_without_mad:--disable-mad} \ %{!?_without_ffmpeg:--enable-ffmpeg} \ %{!?_without_ffmpeg:--with-ffmpeg-mp3lame --with-ffmpeg-faac} \ %{!?_without_ffmpeg:--with-ffmpeg-tree=ffmpeg-%{ffmpeg_date}} \ %{!?_without_faad2:--enable-faad} \ %{?_without_a52:--disable-a52} \ %{!?_without_flac:--enable-flac} \ %{?_without_mpeg2dec:--disable-libmpeg2} \ %{?_without_vorbis:--disable-vorbis} \ %{?_without_speex:--disable-speex} \ %{!?_without_theora:--enable-theora} \ %{?_without_x264:--disable-theora} \ %{?_without_sdl:--disable-sdl} \ %{?_without_fribidi:--disable-fribidi} \ %{!?_without_aa:--enable-aa} \ %{!?_without_caca:--enable-caca} \ %{!?_without_esd:--enable-esd} \ %{?_with_portaudio:--enable-portaudio} \ %{!?_without_arts:--enable-arts} \ %{!?_without_alsa:--enable-alsa} \ %{?_without_wxwidgets:--disable-wxwidgets} \ %{!?_without_xosd:--enable-xosd} \ %{!?_without_lirc:--enable-lirc} \ %{?_with_mozilla:--enable-mozilla} \ %{?_with_tremor:--enable-tremor} \ %{?_with_tarkin:--enable-tarkin} \ %{?_without_glx:--disable-glx} \ %{?_with_mga:--enable-mga} \ %{?_with_svgalib:--enable-svgalib} \ %{?_with_ggi:--enable-ggi} \ %{?_with_glide:--enable-glide} \ %{?_with_ncurses:--enable-ncurses} \ %{?_without_slp:--disable-slp} \ %{?_with_pth:--enable-pth} \ %{!?_without_live:--enable-livedotcom --with-livedotcom-tree="`pwd`/live"} %{__make} %{?_smp_mflags} %install %{__rm} -rf %{buildroot} _docs %makeinstall %find_lang vlc # Include the docs below, our way %{__mv} %{buildroot}%{_docdir}/vlc _docs # So that the icon gets themable %{__mkdir_p} %{buildroot}%{_datadir}/pixmaps %{__cp} -ap %{buildroot}%{_datadir}/vlc/vlc48x48.png \ %{buildroot}%{_datadir}/pixmaps/vlc.png %{__cat} <videolan-client.desktop [Desktop Entry] Name=VideoLAN Client Comment=Play DVDs, other various video formats and network streamed videos Icon=vlc.png Exec=vlc Terminal=false Type=Application Encoding=UTF-8 MimeType=video/mpeg;video/msvideo;video/quicktime;video/x-avi;video/x-ms-asf;video/x-ms-wmv;video/x-msvideo;application/x-ogg;application/ogg;audio/x-mp3;audio/x-mpeg;video/x-mpeg;video/x-fli;audio/x-wav;audio/x-mpegurl;audio/x-scpls;audio/x-ms-asx;application/vnd.rn-realmedia;audio/x-real-audio;audio/x-pn-realaudio;application/x-flac;audio/x-flac;application/x-shockwave-flash;audio/mpeg;audio/x-ms-asf;audio/x-m4a;audio/x-ms-wax;video/dv;video/x-anim;video/x-flc;misc/ultravox;application/x-matroska;audio/vnd.rn-realaudio;audio/x-pn-aiff;audio/x-pn-au;audio/x-pn-wav;audio/x-pn-windows-acm;image/vnd.rn-realpix;video/vnd.rn-realvideo EOF %if %{!?_without_freedesktop:1}0 # Convert the menu entry %{__mkdir_p} %{buildroot}%{_datadir}/applications desktop-file-install --vendor %{desktop_vendor} \ --dir %{buildroot}%{_datadir}/applications \ --add-category Application \ --add-category AudioVideo \ videolan-client.desktop %else %{__install} -Dp -m644 videolan-client.desktop \ %{buildroot}%{_datadir}/gnome/apps/Multimedia/videolan-client.desktop %endif %clean %{__rm} -rf %{buildroot} %files -f vlc.lang %defattr(-, root, root, 0755) %doc AUTHORS COPYING ChangeLog MAINTAINERS README THANKS %doc _docs/* %{_bindir}/*vlc %{_libdir}/vlc/ %exclude %{_libdir}/vlc/*.a %{!?_without_freedesktop:%{_datadir}/applications/%{desktop_vendor}-videolan-client.desktop} %{?_without_freedesktop:%{_datadir}/gnome/apps/Multimedia/videolan-client.desktop} %{_datadir}/pixmaps/vlc.png %{_datadir}/vlc/ %files devel %defattr(-, root, root, 0755) %doc HACKING %{_bindir}/vlc-config %{_includedir}/vlc/ #dir %{_libdir}/vlc/ %exclude %{_libdir}/vlc/*.a %exclude %{_libdir}/libvlc.a %changelog * Wed Mar 22 2006 Matthias Saou 0.8.4a-4 - Add missing modular X build requirements. - Add libtiff-devel build requirement. - Add avahi (bonjour) support. * Fri Mar 17 2006 Matthias Saou 0.8.4a-3 - Fix modular X build requirement : libGLU-devel was missing. * Fri Jan 13 2006 Matthias Saou 0.8.4a-2 - Add modular xorg build conditional. - Include extraqualif patch to fix FC5 / gcc 4.1 errors. * Sun Jan 8 2006 Matthias Saou 0.8.4a-1 - Update to 0.8.4a. - Enable live555. * Fri Dec 9 2005 Matthias Saou 0.8.4-3 - Add PVR option, enabled by default. - Rebuild against new libdvbpsi. * Tue Nov 29 2005 Matthias Saou 0.8.4-2 - Re-add --x-libraries prefix, as it's still required for x86_64 to build. * Sun Nov 27 2005 Matthias Saou 0.8.4-1 - Update to 0.8.4. - Remove no longer needed 64bit and asm patches. - Exclude static libraries (from the devel package). - Add SDL_image-devel to the sdl conditional build (now checked for). - Add gnome-vfs, vcdimager, libopendaap support. - Ready for bonjour support (avahi will be in FC5). - Now enable x264 by default (there are freshrpms.net packages of it now). - Add hal, but disable for now (build fails on FC4). * Tue Jul 12 2005 Matthias Saou 0.8.2-3 - Force altivec gcc flags on ppc as configure doesn't set them properly. - Fix PLUGIN_PATH path for lib64 (they got searched for in lib, not lib64). * Tue Jul 12 2005 Matthias Saou 0.8.2-2 - Include vlc-0.8.2-asm.patch to fix build on x86_64, thanks to Sam Lau. * Mon Jun 27 2005 Matthias Saou 0.8.2-1 - Update to 0.8.2, ffmpeg 20050513. - Remove explicit stripping of the plugin libraries (14MB debuginfo now!). - Change lirc build requirement to lirc-devel. - FC4 speex package is too old, so it's disabled. - Update DVD options : Remove dvd and dvdplay, add dvdnav. - Add libxml2-devel, libgcrypt-devel and gnutls-devel build dependencies. - Add smbclient support (--without smb to disable). - Add libcdio support. - Add libcaca support. - Add portaudio support (disabled by default). - Prepare for future x264 support (no package yet). - Remove obsolete options (xvid, dv, rawdv, mp4, cinepack, gtk, gnome, qt, kde, ntfwin), unrelevant options (embedded, Windows) and defaults (X, oss...). - Re-enable faac in ffmpeg. - Don't enable pth by default, as it's not the default the developers chose. * Wed Apr 06 2005 Dag Wieers - 0.8.1-3 - Added libmodplug support, enabled by default. * Tue Mar 1 2005 Matthias Saou 0.8.1-2 - Update ffmpeg to 20050209. - Added libmatroska (mkv) support, enabled by default. * Tue Nov 16 2004 Matthias Saou 0.8.1-1 - Update to 0.8.1. * Thu Nov 4 2004 Matthias Saou 0.8.0-1 - Update to 0.8.0 final and ffmpeg 20041101 snapshot. - Move lib/vlc/*.a files to devel package. * Fri Oct 1 2004 Matthias Saou 0.8.0-0.test2.1 - Update to 0.8.0-test2 and ffmpeg 20041001 snapshot. * Tue Jun 1 2004 Matthias Saou 0.7.2-1 - Update to 0.7.2. - Added fribidi support. - Added --enable-gpl to ffmpeg for the postprocessing code to stay enabled. * Mon May 17 2004 Matthias Saou 0.7.1-1 - Fix the desktop entry's description, make the icon themable. - Add theora and faad2 support, enabled by default. * Sat May 15 2004 Dag Wieers - 0.7.1-0.1 - Updated to release 0.7.1. * Tue Feb 24 2004 Matthias Saou 0.7.0-0.3 - Rebuild against new libfame. * Sat Feb 21 2004 Matthias Saou 0.7.0-0.1 - Update to 0.7.0. - Bundle ffmpeg to avoid all the hassles of using the shared lib. - Move the (now installed) docs to the proper location. - Added wxWindows interface, the currently most maintained. * Tue Nov 11 2003 Matthias Saou 0.6.2-0.2 - Rebuild for Fedora Core 1. * Thu Aug 14 2003 Matthias Saou - Update to 0.6.2. * Tue Jul 1 2003 Matthias Saou - Update to 0.6.0. - Added libid3tag support. - Added mpeg2dec dependency, cvs version, same for ffmpeg. * Mon Mar 31 2003 Matthias Saou - Rebuilt for Red Hat Linux 9. * Tue Mar 11 2003 Matthias Saou - Update to 0.5.2. - Fix the dv build dependency, thanks to Alan Hagge. - Added flac support. - Fixed the libdvbpsi requirements. * Mon Feb 24 2003 Matthias Saou - Rebuilt against the new xosd lib. * Wed Feb 19 2003 Matthias Saou - Update to 0.5.1. - Major spec file update. * Fri Nov 15 2002 Matthias Saou - Update to 0.4.6. * Tue Oct 22 2002 Matthias Saou - Update to 0.4.5. - Minor --with / --without adjustments. * Sun Oct 6 2002 Matthias Saou - Rebuilt for Red Hat Linux 8.0. - New menu entry. - Added all --without options and --with qt. * Mon Aug 12 2002 Matthias Saou - Update to 0.4.4. * Fri Jul 26 2002 Matthias Saou - Update to 0.4.3. * Fri Jul 12 2002 Matthias Saou - Update to 0.4.2. * Wed Jun 5 2002 Matthias Saou - Update to 0.4.1. * Fri May 24 2002 Matthias Saou - Update to 0.4.0. - Disabled qt interface, it's hell to build with qt2/3! - Use %%find_lang and %%{?_smp_mflags}. * Fri Apr 19 2002 Matthias Saou - Update to 0.3.1. * Mon Apr 8 2002 Matthias Saou - Update to 0.3.0. * Sat Jan 12 2002 Matthias Saou - Removed the dependency on libdvdcss package, use the built in one instead, because 1.x.x is not as good as 0.0.3.ogle3. * Tue Jan 1 2002 Matthias Saou - Update to 0.2.92. - Build fails with libdvdcss < 1.0.1. * Tue Nov 13 2001 Matthias Saou - Update to 0.2.91 and now requires libdvdcss 1.0.0. * Mon Oct 22 2001 Matthias Saou - Split libdvdcss into a separate package since it's also needed by the xine menu plugin. * Thu Oct 11 2001 Matthias Saou - Updated to 0.2.90. - Removed ggi, svgalib and aalib since they aren't included in Red Hat 7.2. * Mon Aug 27 2001 Matthias Saou - Updated to 0.2.83. * Sat Aug 11 2001 Matthias Saou - Updated to 0.2.82. * Mon Jul 30 2001 Matthias Saou - Updated to 0.2.81. - Added all the new split libdvdcss.* files to the %%files section. * Tue Jun 5 2001 Matthias Saou - Updated to the latest release, 0.2.80. * Wed May 30 2001 Matthias Saou - Updated to today's CVS version, works great! :-) - Fixed the desktop menu entry. * Tue May 22 2001 Matthias Saou - Spec file cleanup to make it look more like others do. - Added the use of many macros. - Disabled automatic requires and provides (the package always needed qt, gtk+, gnome etc. otherwise). - Added a system desktop menu entry. * Mon Apr 30 2001 Arnaud Gomes-do-Vale Added relocation support and compile fixes for Red Hat 7.x. * Sat Apr 28 2001 Henri Fallon New upstream release (0.2.73) * Mon Apr 16 2001 Samuel Hocevar New upstream release (0.2.72) * Fri Apr 13 2001 Samuel Hocevar New upstream release (0.2.71) * Sun Apr 8 2001 Christophe Massiot New upstream release (0.2.70) * Fri Feb 16 2001 Samuel Hocevar New upstream release * Tue Aug 8 2000 Samuel Hocevar Added framebuffer support * Sun Jun 18 2000 Samuel Hocevar Took over the package * Thu Jun 15 2000 Eric Doutreleau Initial package