⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vlc.fedora.spec

📁 VLC Player Source Code
💻 SPEC
📖 第 1 页 / 共 2 页
字号:
# TODO: daap, goom, libdc1394, libggi, java-vlc.#%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}%define with_static_ffmpeg 		1%define ffmpeg_date	20070503%define with_static_live555 		0%define live555_date	2007.04.24a%define vlc_svn				0%define vlc_date    20070514%define with_dirac	 		1%define with_mozilla	 		1%define with_java_vlc	 		0%define rpmfusion			0Summary:	Multi-platform MPEG, DVD, and DivX playerName:		vlc%if %vlc_svn%define release_tag   0.1%define _version %{version}-svnVersion:	0.9.0Release:	%{release_tag}.%{vlc_date}svn%{?dist}%elseVersion:	0.8.6b%define release_tag   5%define _version %{version}Release:	%{release_tag}%{?dist}.2%endifLicense:	GPLGroup:		Applications/MultimediaURL:		http://www.videolan.org/%if %vlc_svn	Source0:        http://nightlies.videolan.org/build/source/vlc-snapshot-%{vlc_date}.tar.bz2%elseSource0:	http://download.videolan.org/pub/videolan/vlc/%{version}/vlc-%{version}.tar.bz2## Bugfix sources...#Source0:	http://nightlies.videolan.org/build/source/vlc-snapshot-branch-0.8.6-bugfix-%{vlc_date}.tar.gz%endif%if %with_static_ffmpegSource1:	http://rpm.greysector.net/livna/ffmpeg-%{ffmpeg_date}.tar.bz2%endif%if %with_static_live555Source2:	http://www.live555.com/liveMedia/public/live.%{live555_date}.tar.gz%endifPatch0: 	vlc-0.8.6-ffmpegX11.patchPatch1: 	vlc-0.8.6-wx28.patchPatch2: 	vlc-0.8.6a-faad2.patchPatch3:		vlc-0.8.6a-automake110.patchPatch4:		vlc-0.8.6-FLAC_api_change.patchPatch6:		vlc-trunk-dirac_0_6_0-api.patchBuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)Requires(post): /sbin/ldconfigRequires(postun): /sbin/ldconfigBuildRequires:	automakeBuildRequires:	gettext-develBuildRequires:	desktop-file-utilsBuildRequires:	libtoolBuildRequires:	a52dec-develBuildRequires:	aalib-develBuildRequires:	alsa-lib-develBuildRequires:	arts-develBuildRequires:	avahi-develBuildRequires:  cdparanoia-devel# Don't work now wip#BuildRequires:  directfb-develBuildRequires:	esound-develBuildRequires:	faac-develBuildRequires:	faad2-devel < 2.5BuildRequires:	flac-develBuildRequires:	fribidi-devel# wip -  glide.h usability... no#BuildRequires:  Glide3-devel#BuildRequires:  Glide3-libGLBuildRequires:  gnome-vfs2-develBuildRequires:	gnutls-devel >= 1.0.17BuildRequires:	gsm-develBuildRequires:  gtk2-develBuildRequires:	hal-develBuildRequires:	jack-audio-connection-kit-develBuildRequires:	lame-develBuildRequires:  libavc1394-develBuildRequires:	libcaca-develBuildRequires:	libcddb-develBuildRequires:	libcdio-devel >= 0.77-3# kwizart this is the same issue with cdio and cddax svcdx configure options.# http://bugzilla.livna.org/show_bug.cgi?id=1342 or see# http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=221359BuildConflicts:	libcdio-devel = 0.78.2	BuildRequires:	libdca-develBuildRequires:	libdv-develBuildRequires:	libdvbpsi-develBuildRequires:	libdvdnav-develBuildRequires:  libebml-develBuildRequires:	libid3tag-develBuildRequires:	libGLU-develBuildRequires:	libmad-develBuildRequires:	libmatroska-devel >= 0.7.6BuildRequires:	libmodplug-develBuildRequires:	libmpcdec-develBuildRequires:  libnotify-develBuildRequires:	libpng-develBuildRequires:  libraw1394-develBuildRequires:	librsvg2-devel >= 2.5.0BuildRequires:	libsysfs-develBuildRequires:  libshout-develBuildRequires:	libtar-develBuildRequires:	libtheora-develBuildRequires:  libtiff-develBuildRequires:  libupnp-develBuildRequires:	libvorbis-develBuildRequires:  libxml2-develBuildRequires:	lirc-devel%if %with_static_live555 BuildConflicts: live-devel%elseBuildRequires:	live-devel >= 0-0.11.2006.08.07%endifBuildRequires:	mpeg2dec-devel >= 0.3.2BuildRequires:	ncurses-develBuildRequires:	openslp-develBuildRequires:  ORBit2-devel# This Seem Broken#BuildRequires:	portaudioBuildRequires:	pth-develBuildRequires:	python-develBuildRequires:  pyorbit-develBuildRequires:	SDL_image-develBuildRequires:	speex-devel >= 1.1.5%ifarch %{ix86} x86_64BuildRequires:  svgalib-devel%endifBuildRequires:	twolame-develBuildRequires:	vcdimager-devel >= 0.7.21BuildRequires:	wxGTK-devel >= 2.6BuildRequires:	x264-devel >= 0-0.8.20061028BuildRequires:	xosd-develBuildRequires:	xvidcore-develBuildRequires:	zlib-devel# X-libsBuildRequires:	libXt-develBuildRequires:	libXv-develBuildRequires:  libXxf86vm-devel%if "%fedora" > "6"BuildRequires: libsmbclient-devel%else BuildRequires: samba-common%endif%if %with_mozillaBuildRequires:	firefox-devel >= 1.5.0.0## Will be later replaced by #BuildRequires:  xulrunner-devel##BuildRequires:	nspr-develBuildRequires:	nss-develBuildRequires:	js-devel%endif%if %with_static_ffmpeg## Static version already bundle itBuildConflicts:	ffmpeg-devel%elseBuildRequires:	ffmpeg-devel >= 0.4.9-0%endif%if %with_dirac# Diract is still experimental in vlc - 0.6.0 is now in Fedora# Review http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=221405BuildRequires:	dirac-devel >= 0.6.0%endif%if %with_java_vlcBuildRequires:	libgcj-devel%endif%if %vlc_svnBuildRequires:  opencv-develBuildRequires:  qt4-develBuildRequires:  dbus-develBuildRequires:  xorg-x11-proto-devel#BuildRequires:  lua-devel%endif%if %rpmfusionBuildRequires:  libopendaap-develBuildRequires:  libgoom2-develBuildRequires:  libdc1394-develBuildRequires:  libggi-devel%endifProvides:	videolan-client = %{version}-%{release}Provides:	videolan-client-wx = %{version}-%{release}Provides:	videolan-client-ncurses = %{version}-%{release}Obsoletes:	videolan-client < 0.8.1#Obsoletes:	videolan-client-gnome < 0.8.1#Obsoletes:	videolan-client-kde < 0.8.1Obsoletes:	videolan-client-ncurses < 0.8.1Obsoletes:	videolan-client-wx < 0.8.1%package develSummary:	Development package for %{name}Group:		Development/LibrariesRequires:	%{name} = %{version}-%{release}Requires:       %{name} = %{version}-%{release}Provides:	videolan-client-devel = %{version}-%{release}Obsoletes:	videolan-client-devel < 0.8.1%descriptionVLC (initially VideoLAN Client) is a highly portable multimedia playerfor 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 inIPv4 or IPv6 on a high-bandwidth network.%description develThis package contains development files for VLC Media Player.VLC (initially VideoLAN Client) is a highly portable multimedia playerfor 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 inIPv4 or IPv6 on a high-bandwidth network.%package -n python-vlcSummary:	VLC Media Player binding for PythonGroup:		Applications/Multimedia	Requires:	%{name} = %{version}-%{release}Requires:       pyorbit%description -n python-vlcVLC Media Player binding for Python %if %with_mozilla%package -n mozilla-vlcSummary:	VLC Media Player plugin for Mozilla compatible web browsersGroup:		Applications/Multimedia	Requires:	%{name} = %{version}-%{release}Requires:	%{_libdir}/mozilla/pluginsProvides:	videolan-client-mozilla = %{version}-%{release}Obsoletes:	videolan-client-mozilla < 0.8.1%description -n mozilla-vlcThis package contains a VLC Media Player plugin for Mozilla compatibleweb browsers.VLC (initially VideoLAN Client) is a highly portable multimedia playerfor 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 inIPv4 or IPv6 on a high-bandwidth network.%endif%if %with_java_vlc%package -n java-vlcSummary:	VLC Media Player binding for JavaGroup:		Applications/Multimedia	Requires:	%{name} = %{version}-%{release}%description -n java-vlcVLC Media Player binding for Java%endif%prep%setup -q -n %{name}-%{_version}%if %with_static_ffmpeg%setup -q -D -T -a 1 -n %{name}-%{_version}%endif%if %with_static_live555%setup -q -D -T -a 2 -n %{name}-%{_version}%endif%patch0 -p1 -b .ffmpegX11%patch1 -p1 -b .wx28%if %vlc_svn#Xvmc quick fix on svn and AMD64sed -i 's|pop |popl |g' modules/codec/xvmc/*sed -i 's|push |pushl |g' modules/codec/xvmc/*%else%patch2 -p1 -b .faad2%patch3 -p0 -b .automake110%patch4 -p1 -b .FLAC_api%patch6 -p0 -b .dirac6%endif%{__perl} -pi -e \'s|/usr/share/fonts/truetype/freefont/FreeSerifBold\.ttf|%{_datadir}/fonts/bitstream-vera/VeraSeBd.ttf|' \modules/misc/freetype.c# Fix PLUGIN_PATH path for lib64%{__perl} -pi -e 's|/lib/vlc|/%{_lib}/vlc|g' vlc-config.in.in configure*# Fix perms issueschmod 644 mozilla/control/*chmod 644 src/control/log.csed -i 's/\r//'  mozilla/control/* sh bootstrap%build%if %with_static_ffmpegexport CFLAGS="%{optflags}"# Build bundeled ffmpeg firstpushd ffmpeg-%{ffmpeg_date}./configure \	--extra-cflags="-fPIC -DPIC" \	--enable-static \	--disable-shared \	--enable-libmp3lame \	--enable-libfaac \	--enable-pp \	--enable-gpl \%if %vlc_svn	--enable-swscaler \%endif# Watch http://trac.videolan.org/vlc/ticket/865# Planned to be enabled for 0.9.x	make %{?_smp_mflags}popd%endif%if %with_static_live555# Then bundled live555 - not neededpushd live# Force the use of our CFLAGS%{__perl} -pi -e 's|-O2|%{optflags} -fPIC -DPIC|g' config.linux# Configure and build./genMakefiles linux && makepopd%endif%if %with_mozilla# fix mozilla pluginexport XPIDL="$(rpm -ql firefox-devel.%{_target_cpu}|grep '/xpidl$')"export MOZVER="$(rpm -q --qf=%{VERSION} firefox-devel.%{_target_cpu})"%endifexport CFLAGS="%{optflags} -fPIC"export CXXFLAGS="%{optflags} -fPIC"# Altivec compiler flags aren't set properly (0.8.2)%ifarch ppc ppc64export CFLAGS="$CFLAGS -maltivec -mabi=altivec"%endif# java-vlc%if %with_java_vlcexport JAVA_HOME=%{_prefix}/lib/jvm/java%endif# cddax & vcdx : doesn't build, at least on fc6 x86_64# with libcdio > 0.77-3%configure \	--disable-dependency-tracking		\	--disable-rpath				\	--enable-shout				\	--enable-release			\	--enable-live555 			\%if %with_static_live555 	--with-live555-tree=live		\%endif%if %rpmfusion	--enable-dc1394				\	--enable-dv				\%endif	--enable-ffmpeg --with-ffmpeg-mp3lame --with-ffmpeg-faac \%if %with_static_ffmpeg  	--with-ffmpeg-tree=ffmpeg-%{ffmpeg_date} \%endif	--disable-libtool 			\	--with-gnu-ld				\	--disable-static			\	--enable-shared				\ 	--disable-pth				\	--enable-dvdread			\	--enable-v4l				\	--enable-pvr				\	--enable-libcdio			\%ifarch x86_64	--enable-cddax 				\%endif	--enable-vcdx				\	--enable-dvb				\	--enable-faad				\	--enable-twolame			\	--enable-real				\	--enable-realrtsp			\	--enable-flac				\	--enable-tremor				\	--enable-speex				\	--enable-tarkin				\	--enable-theora				\%if %with_dirac 	--enable-dirac				\%endif 	--enable-svg				\	--enable-snapshot			\%ifarch %{ix86} x86_64	--enable-svgalib			\%endif	--enable-aa				\	--enable-caca				\	--enable-esd				\	--enable-arts				\	--enable-jack				\	--enable-ncurses			\	--enable-xosd				\	--enable-galaktos			\%if %rpmfusion	--enable-goom				\	--enable-ggi				\%endif	--enable-slp				\	--enable-lirc				\	--enable-corba				\	--with-x				\	--enable-mediacontrol-python-bindings	\%if %with_java_vlc	--enable-java-bindings			\%endif%ifarch %{ix86}	--enable-loader				\%endif	--without-contrib			\%if %with_mozilla 	--enable-mozilla			\%endif	--with-x264-tree=%{_includedir}		\%if %vlc_svn	--enable-libtool 			\	--enable-shared				\	--disable-static			\	--enable-opencv				\	--enable-python-bindings		\	--disable-switcher			\	--disable-libcdio			\	--disable-cddax 			\	--disable-vcdx				\	--disable-audioscrobbler		\	--disable-musicbrainz			\	--enable-taglib				\	--enable-dbus-control			\	--enable-qt4				\	--disable-xvmc				\%endif## temp disabled# --enable-cyberlink				\# --enable-qte					\# --enable-ggi					\# --enable-quicktime				\# --with-wine-sdk-path=%{_includedir}/wine/windows	\# 	--enable-directfb			\#	--with-directfb="no" 			\# 	--enable-glide				\#	--with-glide=%{_includedir}/glide3	\%if %vlc_svnsed -i -e 's|python $(srcdir)/setup.py install|python $(srcdir)/setup.py install --root $(DESTDIR)|' bindings/python/Makefile%elsesed -i -e 's|python $(srcdir)/setup.py install|python $(srcdir)/setup.py install --root $(DESTDIR)|' bindings/mediacontrol-python/Makefile%endifsed -i -e 's|cflags="${cflags} -I/usr/include/ffmpeg"|cflags="${cflags} -I%{_includedir}/ffmpeg -I%{_includedir}/postproc/"|' vlc-config%if %with_mozilla	make %{?_smp_mflags} XPIDL_INCL="-I%{_datadir}/idl/firefox-$MOZVER/" %else	make %{?_smp_mflags}%endif%installrm -rf $RPM_BUILD_ROOT __docmake install DESTDIR=$RPM_BUILD_ROOTfind $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'mv $RPM_BUILD_ROOT%{_datadir}/doc/vlc __doc%if %with_mozilla chmod +x $RPM_BUILD_ROOT%{_libdir}/mozilla/plugins/libvlcplugin.so%endifinstall -dm 755 $RPM_BUILD_ROOT%{_mandir}/man1install -pm 644 doc/vlc*.1 $RPM_BUILD_ROOT%{_mandir}/man1install -dm 755 $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/appsln -s ../../../../vlc/vlc48x48.png \	$RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/vlc.png

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -