Author: nanardon
Date: Fri Feb  2 15:24:48 2007
New Revision: 115933

Modified:
   packages/cooker/vlc/current/SPECS/vlc.spec

Log:
- add with condition for vlvc

Modified: packages/cooker/vlc/current/SPECS/vlc.spec
==============================================================================
--- packages/cooker/vlc/current/SPECS/vlc.spec  (original)
+++ packages/cooker/vlc/current/SPECS/vlc.spec  Fri Feb  2 15:24:48 2007
@@ -6,7 +6,7 @@
 %if %pre
 %define rel            0.%pre.1
 %else
-%define rel 1
+%define rel 1.1
 %endif
 %define release        %mkrel %rel
 %define ffsvn          7407
@@ -90,6 +90,7 @@
 %define with_tar 0
 %define with_mod 1
 %define with_gnutls 1
+%define with_vlvc 1
 
 %define libname                %mklibname %name %libmajor
 
@@ -192,6 +193,7 @@
 %{?_without_tar:       %{expand: %%global with_tar 0}}
 %{?_without_mod:       %{expand: %%global with_mod 0}}
 %{?_without_gnutls:    %{expand: %%global with_gnutls 0}}
+%{?_without_vlvc:      %{expand: %%global with_vlvc 0}}
 
 # with
 %{?_with_plf:          %{expand: %%global with_plf 1}}
@@ -250,6 +252,7 @@
 %{?_with_tar:          %{expand: %%global with_tar 1}}
 %{?_with_mod:          %{expand: %%global with_mod 1}}
 %{?_with_gnutls:               %{expand: %%global with_gnutls 1}}
+%{?_with_vlvc:         %{expand: %%global with_vlvc 1}}
 
 %if %with_plf
 %define distsuffix plf
@@ -270,7 +273,12 @@
 Source0:       
http://download.videolan.org/pub/videolan/%name/%{version}/%{fname}.tar.bz2
 %endif
 Source1:       
ftp://ftp.videolan.org/pub/videolan/vlc/%version/contrib/ffmpeg-%ffsvn.tar.bz2
+
+# vlvc patch
+# From https://pfe.epitech.net/frs/?group_id=21&release_id=209
+# it is impossible to factorize source url :\
 Source2:    vlvc_source-%{vlvc_version}.tgz
+
 Patch: vlc-0.8.5+flac-1.1.3.patch
 # gw use Bistream Vera Sans Bold as default subtitle font
 Patch1:        vlc-snapshot-20060219-font.patch
@@ -522,6 +530,10 @@
 you need the libdvdcss library available from 
 http://www.videolan.org/libdvdcss/ or http://plf.zarb.org/
 
+%if %with_vlvc
+This package contains the vlvc patch from http://www.vlvc.net/
+%endif
+
 %if %with_plf
 This package is in PLF as it is violating software patents.
 %endif
@@ -827,9 +839,11 @@
 %patch4 -p1 -b .cdio
 %patch9 -p0 -b .pic
 
+%if %with_vlvc
 %setup -D -T -a 2 -q
 
 patch -p1 < vlvc-%{vlvc_version}/vlvc.diff
+%endif
 
 ./bootstrap
 aclocal-1.8 -I m4

Reply via email to