xine-lib: libv4l only available for SUSE >= 11.1

OBS-URL: https://build.opensuse.org/package/show/multimedia:xine/xine-lib?expand=0&rev=28
This commit is contained in:
Manfred Tremmel 2010-02-24 22:22:08 +00:00 committed by Git OBS Bridge
parent 1f83204385
commit 0607cdab7c
2 changed files with 18 additions and 8 deletions

View File

@ -1,5 +1,5 @@
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Feb 24 20:20:00 CEST 2009 - Manfred.Tremmel@iiv.de Wed Feb 24 23:14:00 CEST 2010 - Manfred.Tremmel@iiv.de
- update to 1.1.18 - update to 1.1.18
* Bump the FLAC decoder's priority above ffmpegaudio. This should fix * Bump the FLAC decoder's priority above ffmpegaudio. This should fix
various problems with FLAC playback. various problems with FLAC playback.

View File

@ -28,7 +28,7 @@ Name: xine-lib
# default for buildservice is no patented codecs # default for buildservice is no patented codecs
%bcond_without distributable %bcond_without distributable
%bcond_with onlynondistributable %bcond_with onlynondistributable
%if %suse_version >= 1100 %if 0%{suse_version} >= 1100
%bcond_without pulseaudio %bcond_without pulseaudio
%else %else
%bcond_with pulseaudio %bcond_with pulseaudio
@ -40,7 +40,7 @@ Name: xine-lib
%bcond_with jack %bcond_with jack
%bcond_without gnome_vfs %bcond_without gnome_vfs
%bcond_with directfb %bcond_with directfb
%if %suse_version > 1110 %if 0%{suse_version} > 1110
%bcond_without modplug %bcond_without modplug
%else %else
%bcond_with modplug %bcond_with modplug
@ -53,8 +53,11 @@ BuildRequires: glib2-devel gnutls-devel gtk2-devel imlib2-devel krb5-devel
BuildRequires: libcdio-devel libdrm-devel libmng-devel libsmbclient BuildRequires: libcdio-devel libdrm-devel libmng-devel libsmbclient
BuildRequires: Mesa-devel libsmbclient-devel libtheora-devel libvorbis-devel BuildRequires: Mesa-devel libsmbclient-devel libtheora-devel libvorbis-devel
BuildRequires: readline-devel update-desktop-files vcdimager-devel BuildRequires: readline-devel update-desktop-files vcdimager-devel
BuildRequires: speex-devel libv4l-devel BuildRequires: speex-devel
%if %suse_version >= 1030 %if 0%{suse_version} >= 1110
BuildRequires: libv4l-devel
%endif
%if 0%{suse_version} >= 1030
BuildRequires: lirc-devel BuildRequires: lirc-devel
%else %else
BuildRequires: lirc BuildRequires: lirc
@ -88,7 +91,7 @@ BuildRequires: gnome-vfs2-devel
BuildRequires: libjack-devel BuildRequires: libjack-devel
%endif %endif
%if %{with directfb} %if %{with directfb}
%if %suse_version >= 1020 %if 0%{suse_version} >= 1020
BuildRequires: DirectFB-devel BuildRequires: DirectFB-devel
%else %else
BuildRequires: DirectFB BuildRequires: DirectFB
@ -595,7 +598,7 @@ EOF
%patch26 %patch26
%patch28 -p1 %patch28 -p1
%patch31 -p1 %patch31 -p1
%if %suse_version >= 1110 %if 0%{suse_version} >= 1110
# set fuzzy=2 to get patch work with crippled and noncrippled tarball # set fuzzy=2 to get patch work with crippled and noncrippled tarball
%patch50 -p1 -F2 %patch50 -p1 -F2
%else %else
@ -603,7 +606,7 @@ EOF
%endif %endif
%patch51 -p1 %patch51 -p1
sed -i 's|^noinst_HEADERS = input_vdr.h|xineinclude_HEADERS = input_vdr.h|' src/vdr/Makefile.am sed -i 's|^noinst_HEADERS = input_vdr.h|xineinclude_HEADERS = input_vdr.h|' src/vdr/Makefile.am
%if %suse_version >= 1110 %if 0%{suse_version} >= 1110
# set fuzzy=2 to get patch work with crippled and noncrippled tarball # set fuzzy=2 to get patch work with crippled and noncrippled tarball
%patch61 -p1 -F2 %patch61 -p1 -F2
%else %else
@ -663,6 +666,11 @@ AUTOPOINT=true autoreconf -fi
%endif %endif
%ifarch %{ix86} %ifarch %{ix86}
--with-w32-path=/usr/lib/win32 \ --with-w32-path=/usr/lib/win32 \
%endif
%if 0%{suse_version} >= 1110
--enable-libv4l \
%else
--disable-libv4l \
%endif %endif
--with-install-plugins-helper=${_prefix}/lib/opensuse-codecs-installer --with-install-plugins-helper=${_prefix}/lib/opensuse-codecs-installer
%if 0%{?suse_version} < 1110 %if 0%{?suse_version} < 1110
@ -711,7 +719,9 @@ xineplug_vo_out_raw
xineplug_inp_dvb xineplug_inp_dvb
xineplug_inp_dvd xineplug_inp_dvd
xineplug_inp_v4l xineplug_inp_v4l
%if 0%{suse_version} >= 1110
xineplug_inp_v4l2 xineplug_inp_v4l2
%endif
xineplug_inp_file xineplug_inp_file
xineplug_inp_http xineplug_inp_http
xineplug_inp_net xineplug_inp_net