Mailinglist Archive: opensuse-commit (2092 mails)

< Previous Next >
commit gstreamer010-plugins-base
  • From: root@xxxxxxxxxxxxxxx (h_root)
  • Date: Thu, 09 Aug 2007 19:27:10 +0200
  • Message-id: <20070809172710.E762D678331@xxxxxxxxxxxxxxx>

Hello community,

here is the log from the commit of package gstreamer010-plugins-base
checked in at Thu Aug 9 19:27:10 CEST 2007.

--------
--- GNOME/gstreamer010-plugins-base/gstreamer010-plugins-base.changes   2007-08-03 18:55:08.000000000 +0200
+++ /mounts/work_src_done/STABLE/gstreamer010-plugins-base/gstreamer010-plugins-base.changes    2007-08-07 23:58:33.695051000 +0200
@@ -1,0 +2,10 @@
+Tue Aug  7 23:26:11 CEST 2007 - abockover@xxxxxxx
+
+- gst-install-plugins-helper: use xdg-open instead of gnome-open;
+  added function to check connectivity status; open an offline
+  page if not connected; go to online webapp otherwise
+- Added an offline web page with some basic information and a link
+  to the online webapp at software.opensuse.org
+- Fixed typo in spec file
+
+-------------------------------------------------------------------

New:
----
  opensuse-missing-codecs.html

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ gstreamer010-plugins-base.spec ++++++
--- /var/tmp/diff_new_pack.q14312/_old  2007-08-09 19:26:00.000000000 +0200
+++ /var/tmp/diff_new_pack.q14312/_new  2007-08-09 19:26:00.000000000 +0200
@@ -13,7 +13,7 @@
 Name:           gstreamer010-plugins-base
 %define _name gst-plugins-base
 Version:        0.10.13
-Release:        13
+Release:        16
 %define gst_branch 0.10
 BuildRequires:  alsa-devel cdparanoia check-devel gnome-vfs2-devel gstreamer010-devel gtk-doc gtk2-devel krb5 liboil-devel libtheora-devel libvisual-devel libvorbis-devel python-devel pyxml sgml-skel update-desktop-files
 %ifarch %ix86 ppc x86_64
@@ -24,6 +24,7 @@
 Autoreqprov:    on
 Source:         %{_name}-%{version}.tar.bz2
 Source1:        gst-install-plugins-helper
+Source2:        opensuse-missing-codecs.html
 Patch:          %{_name}-0.10.12.diff
 URL:            http://gstreamer.freedesktop.org/
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
@@ -42,10 +43,9 @@
 %description
 GStreamer is a streaming media framework based on graphs of filters
 that operate on media data. Applications using this library can do
-anything from real-time sound processing to playing videos and just
-about anything else media-related.  Its plug-in-based architecture
-means that new data types or processing capabilities can be added
-simply by installing new plug-ins.
+anything media-related, from real-time sound processing to playing
+videos. Its plug-in-based architecture means that new data types or
+processing capabilities can be added simply by installing newplug-ins.
 
 
 
@@ -82,10 +82,9 @@
 %description devel
 GStreamer is a streaming media framework based on graphs of filters
 that operate on media data. Applications using this library can do
-anything from real-time sound processing to playing videos and just
-about anything else media-related.  Its plug-in-based architecture
-means that new data types or processing capabilities can be added
-simply by installing new plug-ins.
+anything media-related, from real-time sound processing to playing
+videos. Its plug-in-based architecture means that new data types or
+processing capabilities can be added simply by installing newplug-ins.
 
 
 
@@ -122,10 +121,9 @@
 %description doc
 GStreamer is a streaming media framework based on graphs of filters
 that operate on media data. Applications using this library can do
-anything from real-time sound processing to playing videos and just
-about anything else media-related.  Its plug-in-based architecture
-means that new data types or processing capabilities can be added
-simply by installing new plug-ins.
+anything media-related, from real-time sound processing to playing
+videos. Its plug-in-based architecture means that new data types or
+processing capabilities can be added simply by installing newplug-ins.
 
 
 
@@ -169,8 +167,9 @@
 %install
 make install DESTDIR=$RPM_BUILD_ROOT
 rm $RPM_BUILD_ROOT%{_libdir}/gstreamer-%{gst_branch}/*.*a
-mkdir -p $RPM_BUILD_ROOT{$_libexecdir}
+mkdir -p $RPM_BUILD_ROOT%{_libexecdir} $RPM_BUILD_ROOT%{_datadir}/doc/manual
 cp $RPM_SOURCE_DIR/gst-install-plugins-helper $RPM_BUILD_ROOT%{_libexecdir}
+cp $RPM_SOURCE_DIR/opensuse-missing-codecs.html $RPM_BUILD_ROOT%{_datadir}/doc/manual
 chmod +x $RPM_BUILD_ROOT%{_libexecdir}/gst-install-plugins-helper
 %find_lang %{_name}-%{gst_branch}
 
@@ -219,6 +218,7 @@
 %{_libdir}/gstreamer-%{gst_branch}/libgstxvimagesink.so
 %{_libdir}/gstreamer-%{gst_branch}/libgstgdp.so
 %{_libexecdir}/gst-install-plugins-helper
+%{_datadir}/doc/manual/opensuse-missing-codecs.html
 %doc %{_mandir}/man1/*.*
 
 %files devel
@@ -234,6 +234,13 @@
 %{_datadir}/gtk-doc/html/gst-plugins-base-plugins-%{gst_branch}
 
 %changelog
+* Tue Aug 07 2007 - abockover@xxxxxxx
+- gst-install-plugins-helper: use xdg-open instead of gnome-open;
+  added function to check connectivity status; open an offline
+  page if not connected; go to online webapp otherwise
+- Added an offline web page with some basic information and a link
+  to the online webapp at software.opensuse.org
+- Fixed typo in spec file
 * Fri Aug 03 2007 - abockover@xxxxxxx
 - Added a basic gst-install-plugins-helper script for GStreamer
   to launch when codecs are missing and application suspport the

++++++ gst-install-plugins-helper ++++++
--- GNOME/gstreamer010-plugins-base/gst-install-plugins-helper  2007-08-03 18:10:36.000000000 +0200
+++ /mounts/work_src_done/STABLE/gstreamer010-plugins-base/gst-install-plugins-helper   2007-08-07 23:58:33.540206000 +0200
@@ -6,7 +6,37 @@
 GST_INSTALL_PLUGINS_PARTIAL_SUCCESS=3
 GST_INSTALL_PLUGINS_USER_ABORT=4
 
-MISSING_PLUGINS_URI="http://banshee-project.org/missing-plugins.php?";
+OFFLINE_URI="file:///usr/share/doc/manual/opensuse-missing-codecs.html#"
+MISSING_PLUGINS_URI="http://software.opensuse.org/codecs?";
+
+function check_connection () {
+       result=$(dbus-send --print-reply --system --type=method_call \
+               --dest=org.freedesktop.NetworkManager \
+               /org/freedesktop/NetworkManager \
+               org.freedesktop.NetworkManager.state &> /dev/null)
+
+       if [ $? = 0 ]; then
+               status_code=${result:$((${#result}-1)):1}
+               if [ "x$status_code" = "x3" ]; then
+                       connected=1
+                       return
+               fi
+       else
+               ping -c 2 -w 5 opensuse.org &> /dev/null
+               if [ $? = 0 ]; then
+                       connected=1
+               fi
+       fi
+}
+
+function open_webpage () {
+       check_connection
+       if [ "x$connected" = "x1" ]; then
+               xdg-open "${MISSING_PLUGINS_URI}${1}"
+       else
+               xdg-open "${OFFLINE_URI}${1}"
+       fi
+}
 
 plugins=()
 plugins_count=0
@@ -36,7 +66,7 @@
 for ((i = 0; i < $plugins_count; i++)); do
        # completely URL encode the missing element description
        # and construct the HTTP query string
-       query_part=$(echo ${plugins[$i]} | od -t x1 -A n | sed 's/ /%/g;' | tr -d '\n')
+       query_part=$(echo ${plugins[$i]} | tr -d '\n' | od -t x1 -A n | sed 's/ /%/g;' | tr -d '\n')
        query_part="plugin${i}=${query_part}"
        
        if [ $i -lt $(($plugins_count - 1)) ]; then
@@ -47,16 +77,16 @@
 done
 
 zen=$(which zenity)
-uri="${MISSING_PLUGINS_URI}${query_string}"
+
 if [ ! -x "$zen" ]; then
-       gnome-open "${uri}"
+       open_webpage "${query_string}"
        exit $GST_INSTALL_PLUGINS_PARTIAL_SUCCESS
 else 
        $zen --question --text "<big><b>Search for suitable codec?</b></big>
        
 The required software to play this file is not installed. You need to install suitable codecs to play media files. Do you want to search for a codec that supports the selected file?" --title "Search for suitable codec?" 
        if [ "x$?" = "x0" ]; then
-               gnome-open "${uri}"
+               open_webpage "${query_string}"
                exit $GST_INSTALL_PLUGINS_PARTIAL_SUCCESS
        else
                exit $GST_INSTALL_PLUGINS_USER_ABORT


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-commit+help@xxxxxxxxxxxx

< Previous Next >