From 045062a4665c95971f9295dfe7fe22f87f00696f Mon Sep 17 00:00:00 2001 From: Nicolas Chauvet Date: Tue, 28 Jul 2009 11:02:28 +0000 Subject: [PATCH] - Update to 1.0.1 (Final) - Improve conditionals --- .gitignore | 4 +-- sources | 4 +-- vlc.spec | 104 ++++++++++++++++++++++------------------------------- 3 files changed, 44 insertions(+), 68 deletions(-) diff --git a/.gitignore b/.gitignore index 520423f..2758ddb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1 @@ -vlc-1.0.0.tar.bz2 -enc_base.h -shine.c +vlc-1.0.1.tar.bz2 diff --git a/sources b/sources index 6160d3a..ac9ffab 100644 --- a/sources +++ b/sources @@ -1,3 +1 @@ -fc78904ab5fa73f518d8fe4e852e7f67 vlc-1.0.0.tar.bz2 -a897e4f24fb3fb993db7daf5a5f4d551 enc_base.h -c64e9e104b1eeba838a6c87435c6533c shine.c +6e299d373e7751bb36de001cdc6a2989 vlc-1.0.1.tar.bz2 diff --git a/vlc.spec b/vlc.spec index 87d331b..eacfdfb 100644 --- a/vlc.spec +++ b/vlc.spec @@ -1,27 +1,22 @@ # TODO: libdc1394(juju), modularization (vlc-plugin-foo) -%define with_internal_live555 0 -%define live555_date 2008.07.25 -#define vlc_rc -rc4 -%define with_mozilla 1 -%define with_dc1394 0 -%define with_directfb 1 +#global live555_date 2009.07.28 +#global vlc_rc -rc4 +#global vlc_bootstrap 1 Summary: Multi-platform MPEG, DVD, and DivX player Name: vlc -Version: 1.0.0 +Version: 1.0.1 Release: 1%{?dist} License: GPLv2+ Group: Applications/Multimedia URL: http://www.videolan.org Source0: http://download.videolan.org/pub/videolan/vlc/%{version}/vlc-%{version}%{?vlc_rc}.tar.bz2 -%if %with_internal_live555 +%if 0%{?live555_date:1} Source2: http://www.live555.com/liveMedia/public/live.%{live555_date}.tar.gz %endif Source10: vlc-handlers.schemas -Source11: shine.c -Source12: enc_base.h Patch0: vlc-trunk-default_font.patch Patch1: 0001-Default-libv4l2-to-true.patch Patch2: 0002-Default-aout-for-pulse.patch @@ -29,10 +24,11 @@ Patch3: 300_all_pic.patch Patch4: 310_all_mmx_pic.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -BuildRequires: desktop-file-utils +BuildRequires: desktop-file-utils BuildRequires: gettext +BuildRequires: prelink -%if 1 +%if 0%{?vlc_bootstrap:1} BuildRequires: gettext-devel BuildRequires: libtool %endif @@ -44,9 +40,7 @@ BuildRequires: avahi-devel BuildRequires: cdparanoia-devel BuildRequires: dbus-devel BuildRequires: dirac-devel >= 1.0.0 -%if %with_directfb -BuildRequires: directfb-devel -%endif +%{!?_without_directfb:BuildRequires: directfb-devel} BuildRequires: faac-devel BuildRequires: faad2-devel BuildRequires: ffmpeg-devel >= 0.4.9-0 @@ -68,7 +62,6 @@ BuildRequires: libdv-devel BuildRequires: libdvbpsi-devel BuildRequires: libdvdnav-devel BuildRequires: libebml-devel -BuildRequires: libhildon-devel BuildRequires: libid3tag-devel BuildRequires: libkate-devel BuildRequires: libmad-devel @@ -93,12 +86,12 @@ BuildRequires: libv4l-devel BuildRequires: libvorbis-devel BuildRequires: libxml2-devel BuildRequires: lirc-devel -%if %with_internal_live555 +%if 0%{?live555_date:1} BuildConflicts: live555-devel %else BuildRequires: live555-devel >= 0-0.19.2008.04.03 %endif -BuildRequires: kernel-headers >= 2.6.20 +BuildRequires: kernel-headers BuildRequires: libGL-devel BuildRequires: libGLU-devel BuildRequires: libmusicbrainz-devel @@ -109,7 +102,6 @@ BuildRequires: ncurses-devel BuildRequires: opencv-devel BuildRequires: openslp-devel BuildRequires: pcre-devel -BuildRequires: prelink BuildRequires: pulseaudio-libs-devel >= 0.9.8 BuildRequires: portaudio-devel BuildRequires: qt4-devel >= 4.5.2 @@ -142,18 +134,9 @@ BuildRequires: xcb-util-devel BuildRequires: xorg-x11-proto-devel -%if %with_mozilla -BuildRequires: gecko-devel -BuildRequires: nspr-devel -%else -Obsoletes: mozilla-vlc < %{version}-%{release} -%endif - - -%if %with_dc1394 -BuildRequires: compat-libdc1394-devel -BuildRequires: compat-libraw1394-devel -%endif +%{!?_without_mozilla:BuildRequires: gecko-devel nspr-devel} +%{?_without_mozilla:Obsoletes: mozilla-vlc < %{version}-%{release}} +%{?_with_dc1394: BuildRequires: compat-libdc1394-devel compat-libraw1394-devel} Requires: vlc-core = %{version}-%{release} @@ -164,6 +147,7 @@ Requires: dejavu-fonts %endif Requires: qt-x11%{_isa} >= 1:4.5.2 + %package devel Summary: Development package for %{name} Group: Development/Libraries @@ -188,7 +172,7 @@ 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. -%if %with_mozilla +%{!?_without_mozilla: %package -n mozilla-vlc Summary: VLC Media Player plugin for Mozilla compatible web browsers Group: Applications/Multimedia @@ -204,7 +188,7 @@ 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. -%endif +} %package core Summary: VLC Media Player core @@ -230,20 +214,19 @@ Requires: vlc-core = %{version}-%{release} JACK audio plugin for the VLC media player. -%if %with_dc1394 +%{?_with_dc1394: %package plugin-dc1394 Summary: VLC Media Player Plugins for dc1394 Group: Applications/Multimedia Requires: %{name}-core = %{version} -Requires: compat-libdc1394-tools %description plugin-dc1394 VLC plugin for libdc1394 -%endif +} %prep %setup -q -n %{name}-%{version}%{?vlc_rc} -%if %with_internal_live555 +%if 0%{?live555_date:1} %setup -q -D -T -a 2 -n %{name}-%{version}%{?vlc_rc} %endif %patch0 -p1 -b .default_font @@ -257,19 +240,15 @@ sed -i.dmo_pic -e 's/fno-PIC/fPIC/' libs/loader/Makefile.in rm modules/access/videodev2.h ln -sf %{_includedir}/linux/videodev2.h modules/access/videodev2.h -%if 1 +%if 0%{?vlc_bootstrap:1} rm aclocal.m4 m4/lib*.m4 ./bootstrap %endif -#missing sources -install -pm 0644 %{SOURCE11} modules/codec/shine -install -pm 0644 %{SOURCE12} modules/codec/shine - %build -%if %with_internal_live555 +%if 0%{?live555_date:1} # Then bundled live555 - not needed pushd live # Force the use of our CFLAGS @@ -289,12 +268,10 @@ popd --enable-switcher \ --enable-lua \ --enable-live555 \ -%if %with_internal_live555 +%if 0%{?live555_date:1} --with-live555-tree=live \ %endif -%if %with_dc1394 - --enable-dc1394 \ -%endif +%{?_with_dc1394:--enable-dc1394} \ --enable-dv \ --enable-opencv \ --enable-pvr \ @@ -321,9 +298,7 @@ popd --enable-svgalib \ --enable-xvmc \ %endif -%if %with_directfb - --enable-directfb \ -%endif +%{!?_without_directfb:--enable-directfb} \ --enable-aa \ --enable-caca \ --enable-jack \ @@ -341,9 +316,8 @@ popd %else --without-contrib \ %endif -%if %with_mozilla - --enable-mozilla \ -%endif +%{!?_without_mozilla:--enable-mozilla} \ + # remove rpath from libtool @@ -516,9 +490,9 @@ fi || : %exclude %{_libdir}/vlc/video_output/libxvmc_plugin.so %exclude %{_libdir}/vlc/video_output/libsvgalib_plugin.so %endif -%if %with_directfb +%{!?_without_directfb: %exclude %{_libdir}/vlc/video_output/libdirectfb_plugin.so -%endif +} %exclude %{_libdir}/vlc/gui/libskins2_plugin.so %exclude %{_libdir}/vlc/video_filter/libopencv_example_plugin.so %exclude %{_libdir}/vlc/video_filter/libopencv_wrapper_plugin.so @@ -526,9 +500,9 @@ fi || : %exclude %{_libdir}/vlc/audio_output/libjack_plugin.so %exclude %{_libdir}/vlc/audio_output/libportaudio_plugin.so %exclude %{_libdir}/vlc/audio_output/libpulse_plugin.so -%if %with_dc1394 +%{?_with_dc1394: %exclude %{_libdir}/vlc/access/libdc1394_plugin.so -%endif +} %{_libdir}/vlc/ %{_mandir}/man1/vlc*.1* @@ -541,16 +515,18 @@ fi || : %files nox %defattr(-,root,root,-) +%{!?_without_directfb: %{_libdir}/vlc/video_output/libdirectfb_plugin.so +} %ifarch %{ix86} x86_64 %{_libdir}/vlc/video_output/libsvgalib_plugin.so %endif -%if %with_dc1394 -%files plugins-dc1394 +%{?_with_dc1394: +%files plugin-dc1394 %defattr(-,root,root,-) %{_libdir}/vlc/access/libdc1394_plugin.so -%endif +} %files devel %defattr(-,root,root,-) @@ -562,15 +538,19 @@ fi || : %{_libdir}/pkgconfig/vlc-plugin.pc %{_libdir}/pkgconfig/libvlc.pc -%if %with_mozilla +%{!?_without_mozilla: %files -n mozilla-vlc %defattr(-,root,root,-) %{_libdir}/mozilla/plugins/libvlcplugin.so -%endif +} %changelog +* Mon Jul 27 2009 kwizart < kwizart at gmail.com > - 1.0.1-1 +- Update to 1.0.1 (Final) +- Improve conditionals + * Mon Jul 6 2009 kwizart < kwizart at gmail.com > - 1.0.0-1 - Update to 1.0.0 (Final)