Search
j0ke.net Open Build Service
>
Projects
>
multimedia
:
SL12
>
vlc
> vlc.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File vlc.spec of Package vlc (Revision 7)
Currently displaying revision
7
,
show latest
# vim: set ts=4 sw=4 et: # # spec file for vlc # # Copyright (c) 2012 Dominique Leuenberger, Amsterdam, The Netherlands # # 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 email %define pulseplugin 0%{suse_version} >= 1140 %define withxcb 0%{suse_version} > 1131 %define libvlc 5 %define libvlccore 5 %define conflicts vlc-beta Summary: VLC - Video Lan Client Name: vlc Version: 2.0.5 %define _version 2.0.5 Release: 7.5 URL: http://www.videolan.org/vlc/ Source0: http://download.videolan.org/pub/videolan/vlc/%{version}/vlc-%{version}.tar.xz Patch1: vlc-fix_font_path.patch Patch2: vlc-buildcompare.patch Patch3: 0001-no-return-in-non-void.patch Patch4: vlc-autoconf-compat.patch License: GPL-2.0+ Group: Productivity/Multimedia/Video/Players BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: aalib-devel BuildRequires: alsa-devel BuildRequires: avahi-devel BuildRequires: faad2-devel BuildRequires: fdupes BuildRequires: flac-devel BuildRequires: fluidsynth-devel BuildRequires: freetype2-devel BuildRequires: fribidi-devel BuildRequires: gcc-c++ %if 0%{?suse_version} >= 1140 BuildRequires: gdk-pixbuf-devel %endif BuildRequires: gettext-devel BuildRequires: git BuildRequires: gnome-vfs2-devel BuildRequires: gnutls-devel BuildRequires: gtk2-devel BuildRequires: liba52-devel BuildRequires: libass-devel BuildRequires: libavc1394-devel BuildRequires: libbluray-devel BuildRequires: libcaca-devel BuildRequires: libcddb-devel BuildRequires: libcdio-devel %if 0%suse_version < 1140 BuildRequires: libdc1394_control12-devel %endif BuildRequires: libdc1394-devel BuildRequires: libdca-devel BuildRequires: libdvbpsi-devel BuildRequires: libdvdnav-devel BuildRequires: libdvdread-devel BuildRequires: libfaac-devel BuildRequires: libffmpeg-devel BuildRequires: libgcrypt-devel BuildRequires: libjack-devel BuildRequires: libkate-devel BuildRequires: libmad-devel BuildRequires: libmatroska-devel BuildRequires: libmodplug-devel BuildRequires: libmpeg2-devel BuildRequires: libmtp-devel BuildRequires: libnotify-devel BuildRequires: libogg-devel %if 0%{suse_version} >= 1120 BuildRequires: libproxy-devel %endif BuildRequires: libqt4-devel BuildRequires: libraw1394-devel BuildRequires: librsvg-devel BuildRequires: libsamplerate-devel BuildRequires: libshout-devel BuildRequires: libsmbclient-devel BuildRequires: libssh-devel BuildRequires: libtheora-devel BuildRequires: libtool BuildRequires: libtwolame-devel %if 0%{suse_version} > 1100 BuildRequires: libudev-devel %endif BuildRequires: libupnp-devel %if 0%{?suse_version} > 1130 BuildRequires: libv4l-devel %endif %if 0%{?suse_version} > 1130 BuildRequires: libva-devel %endif BuildRequires: libvorbis-devel BuildRequires: libx264-devel BuildRequires: libxml2-devel BuildRequires: libxvidcore-devel BuildRequires: lirc-devel BuildRequires: live555-devel %if 0%{?suse_version} >= 1220 BuildRequires: lua51-devel %else BuildRequires: lua-devel %endif BuildRequires: Mesa-devel BuildRequires: ncurses-devel BuildRequires: pcre-devel BuildRequires: pulseaudio-devel BuildRequires: schroedinger-devel %if 0%{suse_version} < 1120 BuildRequires: SDL-devel BuildRequires: SDL_image-devel %else BuildRequires: libSDL-devel BuildRequires: libSDL_image-devel %endif BuildRequires: portaudio-devel BuildRequires: libtar-devel BuildRequires: slang-devel BuildRequires: speex-devel BuildRequires: libtag-devel BuildRequires: vcdimager-devel BuildRequires: xosd-devel BuildRequires: zlib-devel BuildRequires: zvbi-devel BuildRequires: pkgconfig(libprojectM) BuildRequires: libmpcdec-devel %if 0%{?suse_version} > 1130 BuildRequires: libgme-devel %endif # BuildRequires that are not actively used for VLC, but for the build itself to work smoothly BuildRequires: findutils BuildRequires: update-desktop-files BuildRequires: xz Requires: %{name}-noX = %{version}-%{release} Requires: %{name}-qt = %{version}-%{release} Conflicts: %{conflicts} %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. %package devel Summary: VLC Development system Group: Development/Libraries/C and C++ Requires: %{name} = %{version} %description devel Those development headers are required if you plan on coding against VLC %package -n libvlc%{libvlc} Summary: Shared library libvlc Group: System/Libraries Requires: vlc-noX %description -n libvlc%{libvlc} Shared library libvlc. To be installed by system dependencies %package -n libvlccore%{libvlccore} Summary: Shared library libvlc Group: System/Libraries %description -n libvlccore%{libvlccore} Shared library libvlc. To be installed by system dependencies %package noX Summary: VLC: VideoLAN Client - without X dependencies Group: Productivity/Multimedia/Video/Players Requires: libvlccore%{libvlccore} = %{version}-%{release} Requires: libvlc%{libvlc} = %{version}-%{release} Conflicts: %{conflicts}-noX Recommends: libdvdcss %description noX This Package of VLC contains the bare requirements you need to install. Here is no graphical User Interface included, thus it's also perfectly suitable for server installations (Streaming Server for example) Should you decide to install the GUI modules, %{name}-noX will stay installed as a dependency. %package qt Summary: VLC: VideoLAN Client - Qt interface Group: Productivity/Multimedia/Video/Players Supplements: packageand(%{name}-noX:libqt4) Requires: %{name}-noX = %{version}-%{release} Conflicts: %{conflicts}-qt %description qt The all new Qt interface for the VLC VideoLAN Client. %package gnome Summary: VLC: VideoLAN Client - Gnome Access Modules Group: Productivity/Multimedia/Video/Players Supplements: packageand(%{name}-noX:gnome-vfs2) Requires: %{name}-noX = %{version}-%{release} Conflicts: %{conflicts}-gnome %description gnome In order to integrate flawless into GNOME, there are some access modules for gnome-vfs2. %if 0%{pulseplugin} %package aout-pulse Summary: VLC Audio Out for Pulse Audio Group: System/Libraries Requires: %{name} = %{version}-%{release} Supplements: packageand(%{name}-noX:pulseaudio) Requires: %{name}-noX = %{version}-%{release} conflicts: %{conflicts}-aout-pulse %description aout-pulse Extends VLC with Pulse Audio Support for Audio Out %endif %prep %setup -c "%{name}-%{version}" -T # not all build targets have a tar that supports xz, hence do it manually: xz --decompress --stdout "%{SOURCE0}" | %__tar xf - --strip-components=1 %patch1 %patch2 %patch3 -p1 %if 0%{?suse_version} < 1120 %patch4 %endif %build export CFLAGS="%{optflags} -L%{_libdir}/live" export CXXFLAGS="%{optflags} -L%{_libdir}/live" ./bootstrap %configure \ --disable-silent-rules \ --disable-dependency-tracking \ --enable-a52 \ --enable-aa \ --enable-alsa \ --enable-bluray \ --enable-dbus \ --enable-telepathy \ --enable-dca \ %if 0%{?suse_version} > 1120 --enable-dvbpsi \ %endif --enable-dvdnav \ --enable-dvdread \ --enable-faad \ --enable-fast-install \ --enable-flac \ --enable-freetype \ --enable-fribidi \ --enable-glx \ --enable-gnomevfs \ --enable-gnutls \ --enable-httpd \ --enable-jack \ --enable-kate \ --enable-libass \ --enable-libcddb \ --enable-libmpeg2 \ %if 0%{suse_version} >= 1120 --enable-libproxy \ %endif --enable-libva \ --enable-lirc \ --enable-live555 \ --enable-lua \ --enable-mad \ --enable-mkv \ --enable-mtp \ --enable-mod \ --enable-ncurses \ --enable-ogg \ --enable-optimizations \ --enable-oss \ --enable-portaudio \ %if 0%{pulseplugin} --enable-pulse \ %endif --enable-pvr \ --enable-real \ --enable-realrtsp \ --enable-samplerate \ --enable-screen \ --enable-sdl \ --enable-sdl-image \ --enable-sftp \ --enable-shout \ --enable-smb \ --enable-sout \ --enable-speex \ --enable-sqlite \ --enable-svg \ --enable-taglib \ --enable-theora \ --enable-twolame \ %if 0%{?suse_version} > 1130 --enable-v4l2 \ %else --disable-libv4l2 \ %endif --enable-vcd \ --enable-vcdx \ --enable-visual \ --enable-vorbis \ --enable-waveout \ --enable-x264 \ %if 0%{?withxcb} --enable-xcb \ %else --disable-xcb \ %endif --enable-xvideo %__make %{?_smp_mflags} %install %makeinstall mkdir -p %{buildroot}/%{_datadir}/pixmaps ln -s %{_datadir}/icons/hicolor/48x48/apps/vlc.png %{buildroot}/%{_datadir}/pixmaps/vlc.png find %{buildroot} -name *.la -delete %suse_update_desktop_file vlc AudioPlayer VideoPlayer Player %if 0%{?suse_version} < 1140 %__rm -rf "%{buildroot}%{_datadir}/locale"/{ach,cgg,ff,kmr} %endif %fdupes %{buildroot}%{_datadir}/vlc %find_lang vlc %clean %{?buildroot:%__rm -rf "%{buildroot}"} %files %defattr(-,root,root) %{_bindir}/svlc %{_datadir}/applications/vlc.desktop %{_datadir}/pixmaps/vlc.png %{_datadir}/icons/hicolor/*/apps/vlc* %dir %{_datadir}/kde4 %dir %{_datadir}/kde4/apps %{_datadir}/kde4/apps/solid %if 0%{?suse_version} > 1130 %{_libdir}/vlc/plugins/codec/liblibass_plugin.so %endif %{_libdir}/vlc/plugins//notify/libnotify_plugin.so %{_libdir}/vlc/plugins//video_filter/libremoteosd_plugin.so %{_libdir}/vlc/plugins/text_renderer/libfreetype_plugin.so %if 0%{withxcb} %{_libdir}/vlc/plugins/video_filter/libpanoramix_plugin.so %{_libdir}/vlc/plugins/video_output/libxcb_glx_plugin.so %endif %{_libdir}/vlc/plugins/video_output/libaa_plugin.so %files noX -f vlc.lang %defattr(-,root,root) %doc %{_datadir}/doc/vlc/ %doc NEWS AUTHORS COPYING THANKS README %{_bindir}/cvlc %{_bindir}/nvlc %{_bindir}/rvlc %{_bindir}/vlc %{_bindir}/vlc-wrapper %{_datadir}/vlc/ %if 0%{?suse_version} <= 1130 %dir %{_datadir}/locale/co %dir %{_datadir}/locale/co/LC_MESSAGES %endif %if 0%{?suse_version} <= 1140 %dir %{_datadir}/locale/tet %dir %{_datadir}/locale/tet/LC_MESSAGES %endif %{_mandir}/*/vlc* %{_libdir}/vlc # exclude the pulse audio output module from here. Seperate package %if 0%{pulseplugin} %exclude %{_libdir}/vlc/plugins/audio_output/libpulse_plugin.so %endif #exclude the Qt modules from here. Seperate package %exclude %{_libdir}/vlc/plugins/gui/libqt4_plugin.so # Exclude the shared libraries %exclude %{_libdir}/libvlc.so.* %exclude %{_libdir}/libvlccore.so.* # Exclude all Files that should go to the X-Dependent package %if 0%{?suse_version} > 1130 %exclude %{_libdir}/vlc/plugins/codec/liblibass_plugin.so %endif %exclude %{_libdir}/vlc/plugins/notify/libnotify_plugin.so %exclude %{_libdir}/vlc/plugins/video_filter/libremoteosd_plugin.so %exclude %{_libdir}/vlc/plugins/text_renderer/libfreetype_plugin.so %if 0%{withxcb} %exclude %{_libdir}/vlc/plugins/video_filter/libpanoramix_plugin.so %exclude %{_libdir}/vlc/plugins/video_output/libxcb_glx_plugin.so %endif %exclude %{_libdir}/vlc/plugins/video_output/libaa_plugin.so %exclude %{_libdir}/vlc/plugins/access/libaccess_gnomevfs_plugin.so %files -n libvlc%{libvlc} %defattr(-,root,root) %{_libdir}/libvlc.so.%{libvlc}* %files -n libvlccore%{libvlccore} %defattr(-,root,root) %{_libdir}/libvlccore.so.%{libvlccore}* %files qt %defattr(-,root,root) %{_bindir}/qvlc %{_libdir}/vlc/plugins/gui/libqt4_plugin.so %files gnome %defattr(-,root,root) %{_libdir}/vlc/plugins/access/libaccess_gnomevfs_plugin.so %files devel %defattr(-,root,root) %{_includedir}/vlc/ %{_libdir}/libvlccore.so %{_libdir}/libvlc.so %{_libdir}/pkgconfig/libvlc.pc %{_libdir}/pkgconfig/vlc-plugin.pc #%{_bindir}/vlc-config %if 0%{pulseplugin} %files aout-pulse %defattr(-,root,root) %{_libdir}/vlc/plugins/audio_output/libpulse_plugin.so %endif %post -n %{name}-noX -p /sbin/ldconfig %postun -n %{name}-noX -p /sbin/ldconfig %post -n libvlc%{libvlc} -p /sbin/ldconfig %postun -n libvlc%{libvlc} -p /sbin/ldconfig %post -n libvlccore%{libvlccore} -p /sbin/ldconfig %postun -n libvlccore%{libvlccore} -p /sbin/ldconfig %changelog