- Update to 1.0.1 (Final)

- Improve conditionals
el8
Nicolas Chauvet 16 years ago
parent 1595ea3d6e
commit 045062a466

4
.gitignore vendored

@ -1,3 +1 @@
vlc-1.0.0.tar.bz2 vlc-1.0.1.tar.bz2
enc_base.h
shine.c

@ -1,3 +1 @@
fc78904ab5fa73f518d8fe4e852e7f67 vlc-1.0.0.tar.bz2 6e299d373e7751bb36de001cdc6a2989 vlc-1.0.1.tar.bz2
a897e4f24fb3fb993db7daf5a5f4d551 enc_base.h
c64e9e104b1eeba838a6c87435c6533c shine.c

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

Loading…
Cancel
Save