Search
j0ke.net Open Build Service
>
Projects
>
multimedia
:
EL6
>
vlc
> vlc.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File vlc.spec of Package vlc
%bcond_without full %bcond_without xcb %bcond_without v4l2 %bcond_with ggi %bcond_with buggyglibc %bcond_with ultimate %bcond_without opencv %define opencv_ver %(rpm -q --qf %{VERSION} opencv-devel) Name: vlc Version: 1.1.13 Release: 74%{?dist} Summary: A free and cross-platform media player Group: Applications/Multimedia License: GPLv2 URL: http://www.videolan.org/ Source0: http://downloads.videolan.org/pub/videolan/%{name}/%{version}/%{name}-%{version}.tar.bz2 Patch0: vlc-1.1.10-fix_font_path.patch Patch1: vlc-1.1.0-pulse_default.patch Patch2: vlc-1.1.0-vlc-cache-gen_noerror.patch Patch3: vlc-1.1.0-V4L2_FIELD_INTERLACED.patch Patch4: vlc-1.1.7-gtk.patch Patch5: vlc-1.1.6-lirc.patch Patch6: vlc-1.1.8-bugfix.opencv22.patch Patch7: https://launchpadlibrarian.net/85222367/vlc-firefox-npapi-mime.patch BuildRoot: %{_tmppath}/%{name}-root BuildRequires: gettext-devel, libtool BuildRequires: chrpath BuildRequires: libdvbpsi-devel BuildRequires: avahi-devel BuildRequires: alsa-lib-devel BuildRequires: cdparanoia-devel %{?with_full:BuildRequires: fluidsynth-devel} BuildRequires: desktop-file-utils BuildRequires: dbus-devel BuildRequires: gcc-c++ %{?with_full:BuildRequires: gnome-libs-devel} BuildRequires: gnutls-devel BuildRequires: gtk+-devel BuildRequires: gsm-devel BuildRequires: kdelibs-devel BuildRequires: lame-devel BuildRequires: libsysfs-devel BuildRequires: libdvdcss-devel >= 1.2.8 # BuildRequires: libdvdplay-devel >= 1.0.1 %{?with_full:BuildRequires: libcddb-devel} BuildRequires: libgcrypt-devel, libjpeg-devel BuildRequires: libpng-devel %{?with_full:BuildRequires: libtar-devel} BuildRequires: libtiff-devel %{?with_full:BuildRequires: libupnp-devel} BuildRequires: libxml2-devel BuildRequires: libXt-devel BuildRequires: libXv-devel BuildRequires: libXxf86vm-devel BuildRequires: libX11-devel BuildRequires: libXext-devel BuildRequires: libXpm-devel BuildRequires: libXvMC-devel %{?with_xcb:BuildRequires: xcb-util-devel} BuildRequires: lua-devel >= 5.1 BuildRequires: mesa-libGL-devel, mesa-libGLU-devel %{?with_opencv:BuildRequires: opencv-devel} BuildRequires: pkgconfig BuildRequires: qt4-devel, taglib-devel %{?with_full:BuildRequires: schroedinger-devel} BuildRequires: xvidcore-devel >= 0.9.2 BuildRequires: zlib-devel BuildRequires: xulrunner-devel >= 1.9.2, nspr-devel BuildRequires: a52dec-devel BuildRequires: aalib-devel BuildRequires: arts-devel BuildRequires: dirac-devel BuildRequires: esound-devel BuildRequires: faac-devel BuildRequires: faad2-devel BuildRequires: ffmpeg-devel >= 0.4.9 BuildRequires: flac-devel >= 1.1.0 BuildRequires: fribidi-devel BuildRequires: gnome-vfs2-devel BuildRequires: jack-audio-connection-kit-devel %{?with_full:BuildRequires: libcaca-devel} BuildRequires: libavc1394-devel # needs version 1.2.2 #BuildRequires: %{_includedir}/libdc1394/dc1394_control.h BuildRequires: libdca-devel BuildRequires: libcdio-devel BuildRequires: %{_includedir}/libsmbclient.h BuildRequires: libssh2-devel BuildRequires: libdvdread-devel >= 0.9.4 BuildRequires: libdvdnav-devel >= 0.1.10 BuildRequires: libid3tag-devel BuildRequires: libgoom2-devel BuildRequires: libprojectM-devel %{?with_full:BuildRequires: libkate-devel} %{?with_full:BuildRequires: libtiger-devel} BuildRequires: libmad-devel >= 0.15.0b BuildRequires: libmatroska-devel >= 0.8.0 %{?with_full:BuildRequires: libmodplug-devel} BuildRequires: musepack-tools-devel BuildRequires: libogg-devel %{?with_full:BuildRequires: pulseaudio-libs-devel >= 0.9.8} %{?with_full:BuildRequires: libopendaap-devel} BuildRequires: librsvg2-devel %{?with_full:BuildRequires: libshout-devel} BuildRequires: libtheora-devel %{?with_full:BuildRequires: libudev-devel >= 142} BuildRequires: libvorbis-devel BuildRequires: lirc-devel BuildRequires: live-devel BuildRequires: mpeg2dec-devel >= 0.3.2 BuildRequires: ncurses-devel >= 5 %{?with_full:BuildRequires: openslp-devel} BuildRequires: SDL-devel %{?with_full:BuildRequires: SDL_image-devel} BuildRequires: speex-devel >= 1.0.3 BuildRequires: svgalib-devel BuildRequires: twolame-devel BuildRequires: vcdimager-devel BuildRequires: portaudio-devel BuildRequires: nas-devel BuildRequires: x264-devel BuildRequires: xosd-devel >= 2.2.5 BuildRequires: libdv-devel >= 0.99 %{?with_full:BuildRequires: Glide3-devel} BuildRequires: pth-devel BuildRequires: libquicktime-devel %{?with_full:BuildRequires: libmtp-devel} %{?with_full:BuildRequires: minizip-devel} %{?with_full:BuildRequires: libproxy-devel} BuildRequires: libnotify-devel BuildRequires: live-devel %{?with_v4l2:BuildRequires: libv4l-devel} BuildRequires: zvbi-devel %{?with_full:BuildRequires: libass-devel} BuildRequires: pcre-devel BuildRequires: directfb-devel BuildRequires: libva-devel # vlc 1.1.0 needs xdg-screensaver Requires: xdg-utils ## default subtitle font ##Requires: bitstream-vera-fonts ##Requires: %{_datadir}/bitstream-vera/VeraSe.ttf #Requires: %{_datadir}/fonts/bitstream-vera/VeraSe.ttf Requires: bitstream-vera-serif-fonts Obsoletes: videolan-client < %{version}-%{release} Provides: videolan-client = %{version}-%{release} %description VLC media player 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. It can also be used as a server to stream in unicast or multicast in IPv4 or IPv6 on a high-bandwidth network. It doesn't need any external codec or program to work. %package devel Summary: Development files for %{name} Group: Development/Libraries Requires: %{name} = %{version} %description devel This package contains development files for %{name}. %package plugin Summary: VLC plugins for firefox Group: Applications/Multimedia Requires: %{name} = %{version} Requires: firefox %description plugin This package contains VLC plugins for firefox. %prep %setup -q %patch0 -p1 -b .fix_font_path %patch1 -p1 -b .pulse_default %patch2 -p1 -b .cache-gen_noerror %if %{with full} rm modules/access/videodev2.h ln -sf %{_includedir}/linux/videodev2.h modules/access/videodev2.h %else %patch3 -p1 -b .V4L2_FIELD_INTERLACED_BT %endif %patch4 -p1 -b .gtk %patch5 -p1 -b .lirc %if %{with opencv} %if "%{opencv_ver}" >= "2.2" %patch6 -p1 -b .opencv22 %endif %endif %patch7 -p1 -b .npapi # Convert to utf8 for i in doc/fortunes.txt ChangeLog; do iconv -f iso-8859-1 -t utf-8 < "$i" > "${i}_" touch -r "$i" "${i}_" mv "${i}_" "$i" done %build ./bootstrap %configure \ --disable-dependency-tracking \ --disable-rpath \ --with-binary-version=%{version}-%{release} \ --with-pic \ %{?with_buggyglibc:--disable-nls} \ \ --with-tuning=no \ --enable-run-as-root \ --enable-growl \ \ --with-live555-tree=%{_libdir}/live \ %{?with_opencv:--enable-opencv} \ --enable-sftp \ --enable-v4l \ %{!?with_v4l2:--disable-v4l2 --disable-libv4l2} \ --enable-pvr \ --enable-vcdx \ \ --enable-wma-fixed \ --enable-shine \ --enable-omxil \ --enable-id3tag \ --enable-switcher \ --enable-faad \ --enable-real \ --enable-realrtsp \ --enable-tremor \ --enable-asademux \ \ --enable-snapshot \ %{!?with_xcb:--disable-xcb} \ --enable-svgalib \ --enable-directfb \ %{?with_ggi:--enable-ggi} \ --enable-aa \ \ --enable-cyberlink \ \ --enable-ncurses \ --enable-xosd \ --enable-fbosd \ --enable-lirc \ \ --enable-update-check \ %ifarch %{ix86} --enable-loader \ %endif %{!?with_buggyglibc:--enable-mozilla}%{?with_buggyglibc:--disable-mozilla} \ make %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} # So that the icon gets themable (still required in 0.8.6) %{__mkdir_p} %{buildroot}%{_datadir}/pixmaps %{__cp} -ap %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/vlc.png \ %{buildroot}%{_datadir}/pixmaps/vlc.png %{__install} -dm 755 %{buildroot}%{_mandir}/man1 %{__install} -pm 644 doc/vlc*.1 %{buildroot}%{_mandir}/man1 # remove .la files find %{buildroot} -name '*.la' -exec rm -f {} ';' # strip # find %{buildroot}%{_libdir}/vlc -name "*.so" | xargs strip # Remove any rpath left find %{buildroot} -name '*.so' -exec chrpath -d {} ';' chrpath -d %{buildroot}%{_bindir}/vlc %if %{with buggyglibc} touch %{name}.lang %else %find_lang %{name} %endif %clean rm -rf %{buildroot} %post /sbin/ldconfig %{_libdir}/vlc/vlc-cache-gen %{_libdir}/vlc/plugins/ %postun -p /sbin/ldconfig %files -f %{name}.lang %defattr(-, root, root,-) %doc AUTHORS COPYING ChangeLog NEWS README THANKS %doc doc/fortunes.txt doc/intf-vcd.txt %doc doc/bugreport-howto.txt %exclude %{_datadir}/doc/vlc/* %{_bindir}/*vlc %{_bindir}/vlc-wrapper %{_libdir}/vlc %{_libdir}/libvlc.so.* %{_libdir}/libvlccore.so.* %{_datadir}/applications/%{name}.desktop %{_datadir}/pixmaps/vlc.png %{_datadir}/vlc %{_datadir}/icons/hicolor/*/apps/vlc*.png %{_datadir}/icons/hicolor/*/apps/vlc*.xpm %{_datadir}/kde4/apps/solid/actions/vlc-*.desktop %{_mandir}/man1/vlc*.1* %files devel %defattr(-, root, root,-) %doc HACKING %{_includedir}/vlc %{_libdir}/libvlc.so %{_libdir}/libvlccore.so %{_libdir}/pkgconfig/* %if %{with buggyglibc} %else %files plugin %defattr(755,root,root,-) %{_libdir}/mozilla/plugins/libvlcplugin.so %endif %changelog