Commit 54b8b012 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

SuSE spec file thanks to DimStar, Dominique Leuenberger

parent 98924203
......@@ -59,6 +59,7 @@ Dennis Lou <dlou99 at yahoo dot com> - ATSC support in the DVB module
Dermot McGahon <dermot at dspsrv dot com> - Bug fixes, RC interface loop and repeat
Diego Petteno <flameeyes at gentoo dot org> - remove usage of internal ffmpeg symbols, configure fixes
DirektX <direktx at freemail.hu> - Hungarian translation
Dominique Leuenberger <dominique-vlc dot suse at leuenberger dot net> - SuSE packaging
Dugal Harris - DirectShow fixes and MJPEG patches
Emmanuel Blindauer <manu at agat.net> - aRts audio output
Enrico Gueli <e_gueli at yahoo.it> - Brightness threshold in adjust video filter
......
Summary: vlc - Video Lan Client
Name: vlc
Version: 0.8.6
Release: 2.1
Source: %{name}-%{version}.tar.bz2
Packager: Dominique Leuenberger <dominique-rpm@leuenberger.net>
License: GPL
Group: Productivity/Multimedia/Video/Players
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: wxGTK-devel libdvdnav-devel gettext-devel libvorbis-devel libogg-devel
BuildRequires: cvs gnome-vfs2-devel libcdio-devel libdvdread-devel libcddb-devel gnutls-devel alsa-devel
BuildRequires: xosd-devel aalib-devel gcc-c++ vcdimager-devel xvidcore-devel freetype2-devel slang-devel
BuildRequires: x264-devel ffmpeg-devel libmad-devel libmpeg2-devel faad2-devel faac-devel libdca-devel a52dec-devel
%if %suse_version >= 1010
BuildRequires: avahi-devel libnotify-devel
%endif
%if %suse_version >= 1010
BuildRequires: Mesa-devel
%else
BuildRequires: xorg-x11-Mesa xorg-x11-Mesa-devel
%endif
# The requirements for the Mozilla-Plugin (--enable-mozilla)
# unfortunately, the mozilla-devel get's changed and renamed all the time. So
# this gave a complete if endif structure.
%if %suse_version <= 1000
BuildRequires: mozilla-devel
%endif
%if %suse_version == 1010
BuildRequires: gecko-sdk
%endif
%if %suse_version == 1020
BuildRequires: mozilla-xulrunner180-devel
%endif
Requires: x264 faac faad2 libmad ffmpeg a52dec libdca xvidcore libdvdcss
%package mozillaplugin
Summary: enables VLC inside Mozilla Browser
Group: Productivity/Multimedia/Video/Players
Requires: %{name} = %{version}
%description mozillaplugin
With this plugin, you enable video content withing the Mozilla Browser Suites
%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.
%prep
%setup -q
%debug_package
%build
%if %suse_version <= 1000
export XPIDL=/opt/mozilla/%{_lib}/xpidl
export PATH=${PATH}:/opt/mozilla/bin
export XPIDL_INCL=$( mozilla-config --idlflags )
%endif
#paths for xpidl on SUSE 10.1 and later
%if %suse_version >= 1010
export XPIDL=%{_libdir}/xulrunner-$(xulrunner-config --version)/xpidl
export XPIDL_INCL=$(xulrunner-config --idlflags)
%endif
./bootstrap
./configure \
--prefix=%{_prefix} \
--libdir=%{_libdir} \
--enable-skins2 \
--disable-pda \
%if %suse_version >= 1000
--enable-wxwidgets \
%else
--disable-wxwidgets \
%endif
--disable-macosx \
--disable-qnx \
--enable-ncurses \
--enable-xosd \
--enable-visual \
--disable-goom \
--enable-slp \
--enable-lirc \
--disable-joystick \
--disable-corba \
--enable-livedotcom \
--enable-dvdread \
--enable-dvdnav \
--disable-dshow \
--enable-v4l \
--enable-pvr \
--enable-vcd \
--enable-satellite \
--enable-ogg \
--enable-mkv \
--enable-mod \
--enable-libcdio \
--enable-vcdx \
--enable-cddax \
--enable-libcddb \
--enable-x11 \
--enable-xvideo \
--enable-glx \
--enable-fb \
--enable-mga \
--enable-freetype \
--enable-fribidi \
--disable-svg \
--disable-hd1000v \
--disable-directx \
--disable-wingdi \
--disable-glide \
--enable-aa \
--disable-caca \
--enable-oss \
--disable-esd \
--enable-arts \
--enable-waveout \
--disable-coreaudio \
--disable-hd1000a \
--enable-mad \
--enable-ffmpeg \
--enable-faad \
--enable-a52 \
--enable-dts \
--enable-flac \
--enable-libmpeg2 \
--enable-vorbis \
--enable-tremor \
--enable-speex \
--disable-tarkin \
--enable-theora \
--enable-cmml \
--enable-utf8 \
--enable-pth \
--enable-st \
--disable-gprof \
--disable-cprof \
--disable-testsuite \
--enable-optimizations \
--disable-altivec \
--disable-debug \
--enable-release \
--enable-sout \
--with-ffmpeg-faac \
--disable-galaktos \
--enable-httpd \
--disable-jack \
--enable-mozilla \
--enable-alsa
# --enable-dvbpsi
# --enable-dvb \
# --with-ffmpeg-mp3lame \
# --enable-quicktime\
# --enable-mozilla
# --enable-dvbpsi \
# --enable-sdl \
# --enable-ggi \
# --enable-svgalib \
make %{?jobs:-j %jobs}
%install
make DESTDIR=%{buildroot} install
mkdir -p %{buildroot}/%{_datadir}/pixmaps
ln -s %{_datadir}/vlc/vlc48x48.png %{buildroot}/%{_datadir}/pixmaps/vlc.png
%if %suse_version <= 1000
export PATH=${PATH}:/opt/mozilla/bin
mkdir -p %{buildroot}/opt/mozilla/%{_lib}/plugins
mv %{buildroot}%{_libdir}/mozilla/plugins/libvlc* %{buildroot}/opt/mozilla/%{_lib}/plugins
%else
mkdir -p %{buildroot}/%{_libdir}/browser-plugins
mv %{buildroot}%{_libdir}/mozilla/plugins/libvlc* %{buildroot}/%{_libdir}/browser-plugins
%endif
%clean
rm -rf "$RPM_BUILD_ROOT"
%files
%defattr(-,root,root)
%{_datadir}/vlc/
%{_bindir}/*vlc
%{_bindir}/vlc-config
%{_includedir}/vlc/
%{_libdir}/vlc/
%{_libdir}/libvlc.a
%{_datadir}/applications/vlc.desktop
%{_datadir}/pixmaps/vlc.png
%doc %{_datadir}/doc/vlc/
%doc NEWS AUTHORS COPYING HACKING THANKS MAINTAINERS README
%{_datadir}/locale/
%files mozillaplugin
%if %suse_version <= 1000
/opt/mozilla/%{_lib}/plugins/libvlc*
%else
/usr/%{_lib}/browser-plugins/libvlcplugin.so
%endif
%changelog
* Sun Dec 10 2006 - Dominique Leuenberger <dominique-vlc.suse@leuenberger.net>
- upgraded to public release version 0.8.6
* Sun Dec 3 2006 - Dominique Leuenberger <dominique-rpm@leuenberger.net>
- Fixed group memberships for Yast tools
- First public released package
* Fri Oct 20 2006 - Dominique Leuenberger <dominique-rpm@leuenberger.net>
- Initial internal release of v0.8.6
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment