%define mozver 1.7.3 %define ffmpeg_date 20040520 Summary: The VideoLAN client, also a very good standalone video player. Name: vlc Version: 0.9.8a Release: ffmpeg Group: Applications/Multimedia License: GPL URL: http://www.videolan.org/ Source0: http://www.videolan.org/pub/videolan/vlc/vlc-0.9.8a.tar.bz2 Buildroot: %{_tmppath}/%{name}-root Packager: Jason Luka %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 : Options that would need not yet existing add-on packages : %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 -q -n vlc-%{version} #export XPIDL=%{_libdir}/mozilla-%mozver/xpidl #export XPIDL_INCL=-I%{_includedir}/mozilla-%mozver #./bootstrap %build %configure \ --build=i686 --disable-static --disable-debug --enable-release \ --disable-libmpeg2 \ --enable-vcd \ --enable-x11 \ --enable-xvideo \ --disable-qte \ --disable-directx \ --enable-fb \ --enable-dvb \ --enable-dvdread \ --enable-dvdnav \ --enable-v4l \ --enable-ffmpeg \ --disable-faad \ --disable-aa \ --enable-pvr \ --disable-alsa \ --enable-esd \ --enable-arts \ --enable-fribidi \ --enable-freetype \ --disable-wxwindows \ --enable-ncurses \ --enable-lirc \ --disable-mozilla \ --disable-xvid \ --enable-sdl \ --enable-xosd \ -enable-mga \ --enable-oss \ --disable-waveout \ --enable-gtk \ --disable-familiar \ --enable-gnome \ --enable-qt \ --disable-kde \ --disable-opie \ --disable-macosx \ --disable-qnx \ --disable-intfwin \ --enable-pth \ --disable-st \ --enable-dvdplay \ --disable-mad --disable-a52 %install rm -rf %{buildroot} %makeinstall #ind %{buildroot}%{_libdir}/vlc -name "*.so" | xargs strip #%find_lang vlc #cat > %{name}.desktop << EOF #[Desktop Entry] #Name=VideoLAN Media Player #Comment=%{summary} #Icon=%{_datadir}/vlc/vlc48x48.png #Exec=vlc #Terminal=0 #Type=Application #EOF #mv %{buildroot}%{_libdir}/mozilla %{buildroot}%{_libdir}/mozilla-%{mozver} -f #kdir -p %{buildroot}%{_datadir}/applications #desktop-file-install --vendor gnome --delete-original \ # --dir %{buildroot}%{_datadir}/applications \ # --add-category X-Red-Hat-Base \ # --add-category Application \ # --add-category AudioVideo \ # %{name}.desktop %post #ln /dev/cdrom /dev/dvd -sf %postun #rm -f /dev/dvd rm /usr/share/idl/mozilla -fr %clean rm -rf %{buildroot} #rm /usr/share/idl/mozilla -fr #rm /usr/lib/mozilla -fr #mkdir /usr/lib/mozilla/plugins -p --mode=755 #mv %{_libdir}/mozilla-%{mozver}/plugins/mozplugger.so %{_libdir}/mozilla/plugins -f %files %defattr(-, root, root) %doc AUTHORS COPYING ChangeLog MAINTAINERS README THANKS %doc doc/fortunes.txt doc/intf-vcd.txt %doc doc/bugreport-howto.txt %exclude %{_datadir}/doc/vlc/* %{_bindir}/*vlc %{_libdir}/vlc #%{_libdir}/libvlc_pic.a #%{_libdir}/mozilla/plugins/libvlcplugin.so %{_datadir}/applications/gnome-%{name}.desktop %{_datadir}/applications/%{name}.desktop %{_datadir}/vlc %{_datadir}/locale %files devel %defattr(-, root, root) %doc HACKING %{_bindir}/vlc-config %{_includedir}/vlc #%{_libdir}/libvlc.a