Browse Source

rebuild totem with libgdata, and NEW: libgdata, mousetweaks

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@975 ec354946-7b23-47d6-9f5a-488ba84defc7
Takemikaduchi 14 years ago
parent
commit
4b8d2ec82c
3 changed files with 350 additions and 119 deletions
  1. 94 0
      lib/libg/libgdata/libgdata-vl.spec
  2. 113 0
      m/mousetweaks/mousetweaks-vl.spec
  3. 143 119
      t/totem/totem-vl.spec

+ 94 - 0
lib/libg/libgdata/libgdata-vl.spec

@@ -0,0 +1,94 @@
+%define pkg_version 0.6.4
+%define pkg_release 1%{?_dist_release}
+
+Summary:	A library for accessing online service APIs using the GData protocol
+Summary(ja):	GData プロトコルを使用しているオンラインサービス API にアクセスするためのライブラリ
+Name:		libgdata
+Version:	%{pkg_version}
+Release:	%{pkg_release}
+Source0:	http://ftp.gnome.org/pub/GNOME/sources/libgdata/0.6/%{name}-%{version}.tar.bz2
+License:	LGPLv2+
+Group:		System Emvironment/Libraries 
+URL:		http://live.gnome.org/libgdata 
+
+BuildRequires:	glib2-devel >= 2.19.0
+BuildRequires:	libsoup-devel >= 2.26.1
+BuildRequires:	libxml2-devel
+BuildRequires:	gobject-introspection-devel
+BuildRequires:	gir-repository-devel
+BuildRequires:	gtk-doc
+
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
+
+Vendor: Project Vine
+Distribution: Vine Linux
+Packager: Takemikaduchi
+
+
+%description
+libgdata is a GLib-based library for accessing online service APIs using the
+GData protocol - most notably, Google's services. It provides APIs to access
+the common Google services, and has full asynchronous support. 
+
+
+%package	devel
+Summary:	Development files for libgdata
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+Requires:	libsoup-devel >= 2.26.1
+Requires:	libxml2-devel
+
+%description	devel
+Development files for libdata.
+
+
+%prep
+%setup -q
+
+
+%build
+%configure --disable-static
+%{__make} %{?_smp_mflags}
+
+
+%install
+%{__rm} -rf ${RPM_BUILD_ROOT}
+%{__make} install DESTDIR=${RPM_BUILD_ROOT}
+
+%{__rm} -rf ${RPM_BUILD_ROOT}%{_libdir}/*.la
+
+%find_lang gdata
+
+%clean
+%{__rm} -rf ${RPM_BUILD_ROOT}
+
+
+%check
+# Only the general test can be run without network access
+cd gdata/tests
+./general
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+
+%files -f gdata.lang
+%defattr(-,root,root)
+%doc COPYING ChangeLog NEWS README
+%{_libdir}/libgdata.so.*
+%{_libdir}/girepository-1.0/GData-0.0.typelib
+%{_datadir}/gir-1.0/GData-0.0.gir
+%{_datadir}/gtk-doc/html/gdata
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/libgdata
+%{_libdir}/libgdata.so
+%{_libdir}/pkgconfig/libgdata.pc
+
+
+%changelog
+* Sun May 09 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6.4-1
+- initial build for Vine Linux
+

+ 113 - 0
m/mousetweaks/mousetweaks-vl.spec

@@ -0,0 +1,113 @@
+%define pkg_version 2.30.1
+%define pkg_release 1%{?_dist_release}
+
+Summary:	Mouse accessibility enhancements for GNOME desktop
+Summary(ja):	GNOME デスクトップ用マウス利便性強化ツール
+Name:		mousetweaks
+Version:	%{pkg_version}
+Release:	%{pkg_release}
+Source0:	http://ftp.gnome.org/pub/GNOME/sources/mousetweaks/2.30/%{name}-%{version}.tar.bz2
+License:	GPLv3, FDL
+Group:		User Interface/Desktops
+URL:		http://live.gnome.org/Mousetweaks/Home 
+
+BuildRequires:	gtk2-devel
+BuildRequires:	GConf2-devel
+BuildRequires:	dbus-glib-devel
+BuildRequires:	at-spi-devel
+BuildRequires:	libXcursor-devel
+BuildRequires:	libXfixes-devel
+BuildRequires:	libXtst-devel
+BuildRequires:	gnome-panel
+BuildRequires:	gnome-doc-utils
+
+Requires(post):		GConf2
+Requires(pre):		GConf2
+Requires(preun):	GConf2
+
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
+
+Vendor: Project Vine
+Distribution: Vine Linux
+Packager: Takemikaduchi
+
+
+%description
+The Mousetweaks package provides mouse accessibility enhancements for 
+the GNOME desktop. These enhancements are:
+	
+1. It offers a way to perform the various clicks without using any 
+hardware button.
+
+2. It allows users to perform a right click by doing a click&hold 
+of the left mousebutton. (For a left-handed mouse user, the termes 
+left and right have to be inverted.) 
+
+3. It provides an applet that the user can install on a panel. This
+applet creates an area on the panel into which the pointer can 
+be captured until the user releases it with a predefined button
+and modifier combination.
+
+The options can be accessed through the Accessibility tab of the
+Mouse Preferences of GNOME Control Center or through command-line.
+
+
+%prep
+%setup -q
+
+
+%build
+%configure --disable-scrollkeeper
+%{__make} %{?_smp_mflags}
+
+
+%install
+%{__rm} -rf ${RPM_BUILD_ROOT}
+export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
+%{__make} install DESTDIR=${RPM_BUILD_ROOT}
+unset export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
+
+%find_lang %{name} --with-gnome
+
+
+%clean
+%{__rm} -rf ${RPM_BUILD_ROOT}
+
+%post
+export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
+gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/mousetweaks.schemas > /dev/null
+gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/pointer-capture-applet.schemas > /dev/null
+
+%pre
+if [ "$1" -gt 1 ]; then
+    export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
+    gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/mousetweaks.schemas > /dev/null
+    gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/pointer-capture-applet.schemas > /dev/null
+fi
+
+%preun
+if [ "$1" -eq 0 ]; then
+    export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
+    gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/mousetweaks.schemas > /dev/null
+    gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/pointer-capture-applet.schemas > /dev/null
+fi
+
+
+%files -f %{name}.lang
+%defattr(-,root,root)
+%doc COPYING COPYING.FDL COPYING.GPL ChangeLog NEWS README
+%{_sysconfdir}/gconf/schemas/mousetweaks.schemas
+%{_sysconfdir}/gconf/schemas/pointer-capture-applet.schemas
+%{_bindir}/dwell-click-applet
+%{_bindir}/mousetweaks
+%{_bindir}/pointer-capture-applet
+%{_libdir}/bonobo/servers/DwellClick_Factory.server
+%{_libdir}/bonobo/servers/PointerCapture_Factory.server
+%{_datadir}/mousetweaks
+%{_mandir}/man1/*
+
+
+%changelog
+* Sun May 09 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.1-1
+- initial build for Vine Linux
+

+ 143 - 119
t/totem/totem-vl.spec

@@ -24,6 +24,7 @@
 %define _unique_ver		1.0
 %define _vala_ver		0.7.5
 %define _totem_pl_parser_ver	2.30.0
+%define _libgdata_ver		0.6.4
 
 %define nautilus_extdir %{_libdir}/nautilus/extensions-2.0
 %define mozplug_dir %{_libdir}/mozilla/plugins
@@ -32,7 +33,7 @@ Summary:	Movie player for GNOME 2
 Summary(ja):	GNOME2 用動画プレイヤー
 Name:		totem
 Version:	2.30.1
-Release:	1%{?_dist_release}
+Release:	2%{?_dist_release}
 License:	GPL
 Group:		Applications/Multimedia
 URL:		http://www.gnome.org/projects/totem/
@@ -60,16 +61,27 @@ BuildRequires:  bluez-libs-devel >= 4.15
 BuildRequires:  lirc
 BuildRequires:  unique-devel >= %{_unique_ver}
 BuildRequires:  vala-devel >= %{_vala_ver}
+BuildRequires:	python-devel
+BuildRequires:	pygtk2-devel
 
-Requires: %{name}-common = %{version}-%{release}
-Requires: %{name}-gstreamer = %{version}-%{release}
+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}
 
 %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
@@ -77,46 +89,46 @@ 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}
+## %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
+## 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
+## %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
@@ -131,6 +143,14 @@ Requires:	dbus >= %{_dbus_ver}
 Requires:	iso-codes, libmusicbrainz
 Conflicts:	%{name} < 1.0.2-0vl2
 
+Obsoletes:	nautilus-media
+Obsoletes:	%{name}-gstreamer < 2.30.1-2
+Obsoletes:	%{name}-xine < 2.30.1-2
+
+Provides:	nautilus-media
+Provides:	%{name}-gstreamer < 2.30.1-2
+Provides:	%{name}-xine < 2.30.1-2
+
 Requires(post):     ldconfig, scrollkeeper, desktop-file-utils, GConf2
 Requires(postun):   ldconfig, scrollkeeper, desktop-file-utils, alternatives
 Requires(preun):    GConf2
@@ -177,21 +197,22 @@ movie player to be embedded into a web browser.
 %endif
 
 %prep
-%setup -q -c
+%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
+## 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
+## # duplicate sources
+## cp -a totem-%{version} xine
+## mv totem-%{version} gstreamer
 
 %build
 
-# build Totem (GStreamer backend)
-pushd gstreamer
+## # 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 \
@@ -207,87 +228,102 @@ export MOZILLA_PLUGINDIR=%{mozplug_dir}
 	--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
+## 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
 
-# install Totem (GStreamer backend)
-pushd gstreamer/
-make install DESTDIR=$RPM_BUILD_ROOT 
-## mv $RPM_BUILD_ROOT/%{_libdir}/libbaconvideowidget.so.0.0.0 \
-##    $RPM_BUILD_ROOT/%{_libdir}/libbaconvideowidget-gstreamer.so.0.0.0
-# language hack
-%find_lang %{name} --with-gnome
-mv %{name}.lang ../
-popd
+## 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
+
 
-# install Totem (xine backend)
-%if %{build_xine}
-pushd xine/src/backend/
 make install DESTDIR=$RPM_BUILD_ROOT 
-## mv $RPM_BUILD_ROOT/%{_libdir}/libbaconvideowidget.so.0.0.0 \
-##    $RPM_BUILD_ROOT/%{_libdir}/libbaconvideowidget-xine.so.0.0.0
-popd
-%endif
 
 # remove unneeded files
 %__rm -f %{buildroot}%{_libdir}/totem/plugins/*/*.{a,la}
 %__rm -f %{buildroot}%{_datadir}/pixmaps/vanity.png
 %__rm -f %{buildroot}%{nautilus_extdir}/*.{a,la}
 %__rm -f %{buildroot}%{mozplug_dir}/*.{a,la}
-## %__rm -f %{buildroot}%{_libdir}/libbaconvideowidget*.{a,la}
-## %__rm -f %{buildroot}%{_libdir}/libbaconvideowidget.so
 %__rm -f %{buildroot}%{_datadir}/icons/hicolor/icon-theme.cache
 %__rm -rf %{buildroot}%{_libdir}/totem/plugins/bemused/
  
 %find_lang %{name} --with-gnome
 
+# save space by linking identical images in translated docs
+helpdir=$RPM_BUILD_ROOT%{_datadir}/gnome/help/%{name}
+for f in $helpdir/C/figures/*.png; do
+  b="$(basename $f)"
+  for d in $helpdir/*; do
+    if [ -d "$d" -a "$d" != "$helpdir/C" ]; then
+      g="$d/figures/$b"
+      if [ -f "$g" ]; then
+        if cmp -s $f $g; then
+          rm "$g"; ln -s "../../C/figures/$b" "$g"
+        fi
+      fi
+    fi
+  done
+done
+
+
 %clean
 %__rm -rf %{buildroot}
 
-%post gstreamer
+## %post gstreamer
 ## %{_syssbindir}/update-alternatives --install \
 ## 	%{_libdir}/libbaconvideowidget.so.0.0.0 totem \
 ##         %{_libdir}/libbaconvideowidget-gstreamer.so.0.0.0 10
-/sbin/ldconfig
+## /sbin/ldconfig
 
-%postun gstreamer
+## %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
+## /sbin/ldconfig
 
-%if %{build_xine}
-%post xine
+## %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
+## /sbin/ldconfig
 
-%postun xine
+## %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
+## /sbin/ldconfig
+## %endif
 
 %post common
 %{_bindir}/scrollkeeper-update -q
@@ -343,15 +379,15 @@ done
 
 %files
 
-%files gstreamer
-%defattr(-,root,root,-)
+## %files gstreamer
+## %defattr(-,root,root,-)
 ## %{_libdir}/libbaconvideowidget-gstreamer.so.0.0.0
 
-%if %{build_xine}
-%files xine
-%defattr(-,root,root,-)
+## %if %{build_xine}
+## %files xine
+## %defattr(-,root,root,-)
 ## %{_libdir}/libbaconvideowidget-xine.so.0.0.0
-%endif
+## %endif
 
 %files common -f %{name}.lang
 %defattr(-,root,root,-)
@@ -370,22 +406,6 @@ done
 %dir %{_libdir}/totem/plugins
 %{_libdir}/totem/plugins/brasero-disc-recorder
 %{_libdir}/totem/plugins/coherence_upnp
-%{_libdir}/totem/plugins/gromit
-%{_libdir}/totem/plugins/jamendo
-%{_libdir}/totem/plugins/lirc
-%{_libdir}/totem/plugins/media-player-keys
-%{_libdir}/totem/plugins/ontop
-%{_libdir}/totem/plugins/opensubtitles
-%{_libdir}/totem/plugins/properties
-%{_libdir}/totem/plugins/pythonconsole
-%{_libdir}/totem/plugins/screensaver
-%{_libdir}/totem/plugins/screenshot
-%{_libdir}/totem/plugins/skipto
-%{_libdir}/totem/plugins/thumbnail
-## %{_libdir}/totem/plugins/youtube
-## %{_libdir}/totem/plugins/totem
-## %{_libdir}/totem/plugins/tracker
-%{_libdir}/totem/plugins/brasero-disc-recorder
 %{_libdir}/totem/plugins/dbus
 %{_libdir}/totem/plugins/gromit
 %{_libdir}/totem/plugins/iplayer
@@ -401,10 +421,12 @@ done
 %{_libdir}/totem/plugins/screenshot
 %{_libdir}/totem/plugins/skipto
 %{_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
-## %{_libdir}/libbaconvideowidget.so*
 %{_libexecdir}/%{name}/totem-bugreport.py
 %{_mandir}/man1/*
 
@@ -414,12 +436,14 @@ done
 %{mozplug_dir}/*
 %{_libexecdir}/totem-plugin-viewer
 
-## %files tracker
-## %defattr(-, root, root)
-## %{_libdir}/totem/plugins/tracker
 %endif
 
 %changelog
+* 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
+- add Obsolete: totem-gstreamer, totem-xine)
+
 * Sat May 01 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.1-1
 - new upstream release
 - chagnge _gst_ver from 0.10.19 to 0.10.29