瀏覽代碼

totem:
- clean up spec file
- remove totem-common and merged to totem main package.
- add Obsoletes: totem-common
- remove unneeded BR: and R:
- gnome-vfs2, libgnomeui, libgnome, gnome-desktop-libs,
- libmusicbrainz, alternatives
- remove explicit dependency
- gtk2, glib2, dbus
- add R: pygtk2, pyxdg, python-Coherence for python plugins
- add R: gstreamer-plugins-good



git-svn-id: http://trac.vinelinux.org/repos/projects/specs@981 ec354946-7b23-47d6-9f5a-488ba84defc7

daisuke 15 年之前
父節點
當前提交
ce003d6d89
共有 1 個文件被更改,包括 43 次插入212 次删除
  1. 43 212
      t/totem/totem-vl.spec

+ 43 - 212
t/totem/totem-vl.spec

@@ -1,23 +1,15 @@
-# select backend (GStreamer, xine)
-#define build_gst	1
-%define build_xine	1
-
 # build browser plugins
 %define build_plugin	%{!?_without_mozilla:1}%{?_without_mozilla:0}
 
 # define versions
 %define _glib_ver		2.24.0
 %define _gtk_ver		2.20.0
-%define _gnomevfs_ver		2.24.0
-%define _gnomeui_ver		2.24.3
 %define _gnomeicon_ver		2.30.0
-%define _gnome_desktop_ver	2.30.0
-%define _libgnome_ver		2.30.0
 %define _gnome_doc_utils_ver	0.20.0
 %define _dbus_ver		1.2.24
 %define _gst_ver		0.10.29
-%define _gstpb_ver		0.10.7
-%define _xine_ver		1.1.11.1
+%define _gstpb_ver		0.10.29
+%define _gstpg_ver		0.10.22
 %define _xulrunner_ver		1.9
 %define _nautilus_ver		2.26.0
 %define _shared_mime_info_ver	0.17
@@ -33,7 +25,7 @@ Summary:	Movie player for GNOME 2
 Summary(ja):	GNOME2 用動画プレイヤー
 Name:		totem
 Version:	2.30.1
-Release:	2%{?_dist_release}
+Release:	3%{?_dist_release}
 License:	GPL
 Group:		Applications/Multimedia
 URL:		http://www.gnome.org/projects/totem/
@@ -44,14 +36,9 @@ Vendor:		Project Vine
 Distribution:	Vine Linux
 
 BuildRequires:	gtk2-devel >= %{_gtk_ver}, glib2-devel >= %{_glib_ver}
-BuildRequires:	gnome-desktop-devel >= %{_gnome_desktop_ver}
-BuildRequires:	gnome-vfs2-devel >= %{_gnomevfs_ver}
-BuildRequires:	libgnomeui-devel >= %{_gnomeui_ver}
 BuildRequires:	gnome-icon-theme >= %{_gnomeicon_ver}
-BuildRequires:	libgnome-devel >= %{_libgnome_ver}
 BuildRequires:	gnome-doc-utils >= %{_gnome_doc_utils_ver}
 BuildRequires:	dbus-devel >= %{_dbus_ver}
-BuildRequires:	libmusicbrainz-devel
 BuildRequires:	nautilus-devel >= %{_nautilus_ver}
 BuildRequires:	gettext, scrollkeeper
 BuildRequires:	perl-XML-Parser
@@ -63,119 +50,56 @@ BuildRequires:  unique-devel >= %{_unique_ver}
 BuildRequires:  vala-devel >= %{_vala_ver}
 BuildRequires:	python-devel
 BuildRequires:	pygtk2-devel
+BuildRequires:  libgdata-devel >= %{_libgdata_ver}
 
 BuildRequires:	gstreamer-devel >= %{_gst_ver}
 BuildRequires:	gstreamer-plugins-base-devel >= %{_gstpb_ver}
-BuildRequires:	gstreamer-plugins-good
-BuildRequires:	xine-lib-devel >= %{_xine_ver}
-
-Requires:	gstreamer >= %{_gst_ver}
-Requires:	gstreamer-plugins-base >= %{_gstpb_ver}
-Requires:	%{name}-common = %{version}-%{release}
-Requires:	xine-lib >= %{_xine_ver}
+BuildRequires:	gstreamer-plugins-good >= %{_gstpg_ver}
 
 %if %{build_plugin}
 BuildRequires:	xulrunner-devel >= %{_xulrunner_ver}
 BuildRequires:	nautilus-devel >= %{_nautilus_ver}
 BuildRequires:	shared-mime-info >= %{_shared_mime_info_ver}
-BuildRequires:  libgdata-devel >= %{_libgdata_ver}
 %endif
 
-
-%description
-Totem is simple movie player for the Gnome desktop. It features a
-simple playlist, a full-screen mode, seek and volume controls, as well as
-a pretty complete keyboard navigation.
-This is virtual package to install totem common package and totem backend
-package.
-
-## %package gstreamer
-## Summary:	GStramer backend for Totem
-## Summary(ja):	Totem 用 GStreamer バックエンド
-## Group:		Applications/Multimedia
-## Requires:	%{name}-common = %{version}-%{release}
-## Requires:	gstreamer >= %{_gst_ver}
-## Requires:	gstreamer-plugins-base >= %{_gstpb_ver}
-## BuildRequires:	gstreamer-devel >= %{_gst_ver}
-## BuildRequires:	gstreamer-plugins-base-devel >= %{_gstpb_ver}
-## BuildRequires:	gstreamer-plugins-good
-## Obsoletes:	%{name} < 1.0.2-0vl2, nautilus-media
-## Provides:	%{name} = %{version}-%{release}
-
-## Requires(post):   alternatives
-## Requires(postun): alternatives
-
-## %description gstreamer
-## Totem is simple movie player for the Gnome desktop. It features a
-## simple playlist, a full-screen mode, seek and volume controls, as well as
-## a pretty complete keyboard navigation.
-
-## %if %{build_xine}
-## %package xine
-## Summary:	Xine backend for Totem
-## Summary(ja):	Totem 用 Xine バックエンド
-## Group:		Applications/Multimedia
-## Requires:	%{name}-common = %{version}-%{release}
-## Requires:	xine-lib >= %{_xine_ver}
-## BuildRequires:	xine-lib-devel >= %{_xine_ver}
-## Obsoletes:	%{name} < 1.0.2-0vl2
-## Provides:	%{name} = %{version}-%{release}
-
-## Requires(post):   alternatives
-## Requires(postun): alternatives
-
-## %description xine
-## Totem is simple movie player for the Gnome desktop. It features a
-## simple playlist, a full-screen mode, seek and volume controls, as well as
-## a pretty complete keyboard navigation.
-## %endif
-
-%package common
-Summary:	common files for Totem
-Summary(ja):	Totem の共通ファイル
-Group:		Applications/Multimedia
-Requires:	gtk2 >= %{_gtk_ver}, glib2 >= %{_glib_ver}
-Requires:	gnome-desktop-libs >= %{_gnome_desktop_ver}
-Requires:	gnome-vfs2 >= %{_gnomevfs_ver}
-Requires:	libgnomeui >= %{_gnomeui_ver}
-Requires:	libgnome >= %{_libgnome_ver}
-Requires:	dbus >= %{_dbus_ver}
-Requires:	iso-codes, libmusicbrainz
-Conflicts:	%{name} < 1.0.2-0vl2
+Requires:	gstreamer >= %{_gst_ver}
+Requires:	gstreamer-plugins-base >= %{_gstpb_ver}
+Requires:	gstreamer-plugins-good >= %{_gstpg_ver}
+Requires:	iso-codes
+# for opensubtitles plugin
+Requires:	pyxdg
+# for python plugins
+Requires:	pygtk2
+# for coherence plugins
+Requires:	python-Coherence >= 0.6.6.2
 
 Obsoletes:	nautilus-media
 Obsoletes:	%{name}-gstreamer < 2.30.1-2
 Obsoletes:	%{name}-xine < 2.30.1-2
+Obsoletes:	%{name}-common < 2.30.1-3
 
 Provides:	nautilus-media
-Provides:	%{name}-gstreamer < 2.30.1-2
-Provides:	%{name}-xine < 2.30.1-2
+Provides:	%{name}-common = %{version}-%{release}
 
 Requires(post):     ldconfig, scrollkeeper, desktop-file-utils, GConf2
-Requires(postun):   ldconfig, scrollkeeper, desktop-file-utils, alternatives
+Requires(postun):   ldconfig, scrollkeeper, desktop-file-utils
 Requires(preun):    GConf2
-Requires(triggers): alternatives
 
-%description common
+%description
 Totem is simple movie player for the Gnome desktop. It features a
 simple playlist, a full-screen mode, seek and volume controls, as well as
 a pretty complete keyboard navigation.
 
-This package contains common files for Totem (GStreamer/xine backend).
-
 %if %{build_plugin}
 %package mozilla
 Summary:	Totem movie plugin for Mozilla
 Summary(ja):	Mozilla 用 Totem 動画プラグイン
 Group:		Applications/Internet
-Requires:	%{name}-common = %{version}-%{release}
+Requires:	%{name} = %{version}-%{release}
 Obsoletes:	%{name}-mozilla-common
 Obsoletes:	%{name}-mozilla-gstreamer
 Obsoletes:	%{name}-mozilla-xine
 
-Requires(post):   alternatives
-Requires(postun): alternatives
-
 %description mozilla
 Totem is simple movie player for the Gnome desktop. It features a
 simple playlist, a full-screen mode, seek and volume controls, as well as
@@ -184,87 +108,34 @@ a pretty complete keyboard navigation.
 This package contains a Totem video plugin for Mozilla. It allows Totem
 movie player to be embedded into a web browser.
 
-## %package tracker
-## Summary:	Tracker-based video search plugin for Totem
-## Summary(ja):	Tracker を使った Totem 用動画検索プラグイン
-## Group:		Applications/Multimedia
-## Requires:	%{name}-common = %{version}-%{release}
-## BuildRequires:	tracker-devel
-
-## %description tracker
-## A plugin to allow searching local videos, based on their tags, metadata,
-## or filenames, as indexing by the Tracker indexer.
 %endif
 
 %prep
 %setup -q
-## %setup -q -c
-# Whatever needs to be changed in both copies do here
-## remember to update me when changing %doc
-## for i in AUTHORS COPYING ChangeLog NEWS README TODO;do
-##   cp totem-%{version}/$i .
-## done
-
-## # duplicate sources
-## cp -a totem-%{version} xine
-## mv totem-%{version} gstreamer
 
 %build
-
-## # build Totem (GStreamer backend)
-## pushd gstreamer
 DBUS_FATAL_WARNINGS=0 /usr/bin/gst-inspect-0.10 --print-all > /dev/null
 export MOZILLA_PLUGINDIR=%{mozplug_dir}
 %configure \
 	--disable-schemas-install \
 	--disable-scrollkeeper \
-%if %{build_plugin}
-	--enable-browser-plugins \
+	--enable-python \
 	--enable-nautilus \
 	--enable-gmp-plugin \
 	--enable-narrowspace-plugin \
-	--enable-mully-plugin
+	--enable-mully-plugin \
+%if %{build_plugin}
+	--enable-browser-plugins
 %else
-	--disable-browser-plugins
+	--disable-browser-plugins 
 %endif
+
 make %{?_smp_mflags}
-## popd
-
-## # build Totem (xine backend) 
-## %if %{build_xine}
-## pushd xine
-## export MOZILLA_PLUGINDIR=%{mozplug_dir}
-## %configure \
-## 	--disable-schemas-install \
-## 	--disable-scrollkeeper \
-## 	--disable-nautilus \
-## 	--disable-browser-plugins
-## cd src/backend/
-## make %{?_smp_mflags}
-## popd
-## %endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
 export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
 
-## comment out old rules
-## # install Totem (GStreamer backend)
-## pushd gstreamer/
-## make install DESTDIR=$RPM_BUILD_ROOT 
-## # language hack
-## %find_lang %{name} --with-gnome
-## mv %{name}.lang ../
-## popd
-
-## # install Totem (xine backend)
-## %if %{build_xine}
-## pushd xine/src/backend/
-## make install DESTDIR=$RPM_BUILD_ROOT 
-## popd
-## %endif
-
-
 make install DESTDIR=$RPM_BUILD_ROOT 
 
 # remove unneeded files
@@ -297,35 +168,7 @@ done
 %clean
 %__rm -rf %{buildroot}
 
-## %post gstreamer
-## %{_syssbindir}/update-alternatives --install \
-## 	%{_libdir}/libbaconvideowidget.so.0.0.0 totem \
-##         %{_libdir}/libbaconvideowidget-gstreamer.so.0.0.0 10
-## /sbin/ldconfig
-
-## %postun gstreamer
-## [ "$1" = "1" ] && exit
-## %{_syssbindir}/update-alternatives --remove \
-##         totem %{_libdir}/libbaconvideowidget-gstreamer.so.0.0.0
-## [ -f "%{_libdir}/libbaconvideowidget.so.0.0.0" ] || %{_syssbindir}/update-alternatives --auto totem
-## /sbin/ldconfig
-
-## %if %{build_xine}
-## %post xine
-## %{_syssbindir}/update-alternatives --install \
-## 	%{_libdir}/libbaconvideowidget.so.0.0.0 totem \
-##         %{_libdir}/libbaconvideowidget-xine.so.0.0.0 15
-## /sbin/ldconfig
-
-## %postun xine
-## [ "$1" = "1" ] && exit
-## %{_syssbindir}/update-alternatives --remove \
-##         totem %{_libdir}/libbaconvideowidget-xine.so.0.0.0
-## [ -f "%{_libdir}/libbaconvideowidget.so.0.0.0" ] || %{_syssbindir}/update-alternatives --auto totem
-## /sbin/ldconfig
-## %endif
-
-%post common
+%post
 %{_bindir}/scrollkeeper-update -q
 %{_bindir}/update-desktop-database %{_datadir}/applications >& /dev/null ||:
 export GCONF_CONFIG_SOURCE=`%{_bindir}/gconftool-2 --get-default-source`
@@ -339,7 +182,7 @@ if [ -x /usr/bin/gtk-update-icon-cache ]; then
   /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
 fi
 
-%pre common
+%pre
 if [ "$1" -gt 1 ]; then
     export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
     gconftool-2 --makefile-uninstall-rule \
@@ -349,7 +192,7 @@ if [ "$1" -gt 1 ]; then
 	>& /dev/null || :
 fi
 
-%preun common
+%preun
 if [ "$1" -eq 0 ]; then
     export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
     gconftool-2 --makefile-uninstall-rule \
@@ -359,37 +202,15 @@ if [ "$1" -eq 0 ]; then
  >& /dev/null || :
 fi
 
-%postun common
+%postun
 %{_bindir}/scrollkeeper-update -q
 %{_bindir}/update-desktop-database %{_datadir}/applications >& /dev/null ||:
 touch %{_datadir}/icons/hicolor
 if [ -x /usr/bin/gtk-update-icon-cache ]; then
   /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
 fi
-[ -f "%{_bindir}/totem" ] || %{_syssbindir}/update-alternatives --auto totem
 
-%triggerpostun common -- %{name} < 1.0.2-0vl2
-export GCONF_CONFIG_SOURCE=`%{_bindir}/gconftool-2 --get-default-source`
-for schema in totem totem-video-thumbnail totem-handlers ; do
-	%{_bindir}/gconftool-2 --makefile-install-rule \
-		%{_sysconfdir}/gconf/schemas/${schema}.schemas > /dev/null ||:
-done
-[ -f "%{_bindir}/totem" ] || %{_syssbindir}/update-alternatives --auto totem
-
-
-%files
-
-## %files gstreamer
-## %defattr(-,root,root,-)
-## %{_libdir}/libbaconvideowidget-gstreamer.so.0.0.0
-
-## %if %{build_xine}
-## %files xine
-## %defattr(-,root,root,-)
-## %{_libdir}/libbaconvideowidget-xine.so.0.0.0
-## %endif
-
-%files common -f %{name}.lang
+%files -f %{name}.lang
 %defattr(-,root,root,-)
 %doc AUTHORS COPYING ChangeLog NEWS README TODO
 %config %{_sysconfdir}/gconf/schemas/*.schemas
@@ -423,7 +244,6 @@ done
 %{_libdir}/totem/plugins/thumbnail
 %{_libdir}/totem/plugins/youtube
 %{_libdir}/totem/plugins/totem
-## %{_libdir}/totem/plugins/tracker
 %if %{build_plugin}
 %{_libdir}/nautilus/extensions-2.0/*.so*
 %endif
@@ -435,10 +255,21 @@ done
 %defattr(-,root,root,-)
 %{mozplug_dir}/*
 %{_libexecdir}/totem-plugin-viewer
-
 %endif
 
 %changelog
+* Mon May 10 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.30.1-3
+- clean up spec file
+- remove totem-common and merged to totem main package.
+  - add Obsoletes: totem-common
+- remove unneeded BR: and R:
+  - gnome-vfs2, libgnomeui, libgnome, gnome-desktop-libs
+  - libmusicbrainz, alternatives
+- remove explicit dependency
+  - gtk2, glib2, dbus
+- add R: pygtk2, pyxdg, python-Coherence for python plugins
+- add R: gstreamer-plugins-good
+
 * Sun May 09 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.1-2
 - rebuild with libgdata (add youtube plugin)
 - add BuildRequires: libgdata-devel, python-devel, pygtk2-devel