Hello community,

here is the log from the commit of package xdg-utils.910 for 
openSUSE:12.2:Update checked in at 2012-09-25 17:05:19
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:12.2:Update/xdg-utils.910 (Old)
 and      /work/SRC/openSUSE:12.2:Update/.xdg-utils.910.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "xdg-utils.910", Maintainer is ""

Changes:
--------
New Changes file:

--- /dev/null   2012-08-23 02:41:28.555381587 +0200
+++ /work/SRC/openSUSE:12.2:Update/.xdg-utils.910.new/xdg-utils.changes 
2012-09-25 17:05:20.000000000 +0200
@@ -0,0 +1,103 @@
+-------------------------------------------------------------------
+Thu Aug 23 08:30:11 UTC 2012 - [email protected]
+
+- Fix generic su (bnc#776202)
+
+-------------------------------------------------------------------
+Fri Jun 29 00:27:04 CEST 2012 - [email protected]
+
+- update to snapshot from 20120310
+  * many local patches are gone, since they were merged
+  * fixes many issues (see bnc#749612, bnc#703396, bnc#752977)
+  * see ChangeLog for updates
+- clean the specfile a bit
+
+-------------------------------------------------------------------
+Mon May 21 10:16:02 UTC 2012 - [email protected]
+
+- Fix xdg-screensaver issues with Gnome 3 (bnc#559110)
+
+-------------------------------------------------------------------
+Sun Oct 23 23:12:02 UTC 2011 - [email protected]
+
+- add xdg-terminal
+
+-------------------------------------------------------------------
+Sat May 21 13:48:19 UTC 2011 - [email protected]
+
+- Fix xdg-open to probably parse the version for KDE4 (bnc#694543)
+
+-------------------------------------------------------------------
+Tue Jul 20 21:21:59 UTC 2010 - [email protected]
+
+- Fix screensaver handling in KDE4
+
+-------------------------------------------------------------------
+Sun Mar 28 17:43:15 UTC 2010 - [email protected]
+
+- added xdg-utils-1.0.2-bnc591714.patch to fix bnc#591714 
+
+-------------------------------------------------------------------
+Thu Jan 14 18:01:21 UTC 2010 - [email protected]
+
+- added LXDE support 
+
+-------------------------------------------------------------------
+Sun Aug 16 13:43:52 CEST 2009 - [email protected]
+
+- Add some support for KDE4, taken from upstream CVS.
+
+-------------------------------------------------------------------
+Thu Feb  7 13:13:48 CET 2008 - [email protected]
+
+- fix command injection (#bnc355061, CVE-2008-0386)
+
+-------------------------------------------------------------------
+Mon Oct 22 14:25:40 CEST 2007 - [email protected]
+
+- update to 1.0.2:
+   * SVG icons are not supported but doc still mentioned SVG 
+   * xdg-email can now be used without any e-mail address 
+   * do not use mktemp without arguments, it breaks on systems with
+     certain older versions of mktemp
+
+-------------------------------------------------------------------
+Thu Sep 20 18:57:34 CEST 2007 - [email protected]
+
+- fix xdg-su outside KDE/GNOME (#309164) 
+
+-------------------------------------------------------------------
+Thu Aug 30 11:35:02 CEST 2007 - [email protected]
+
+- fix xdg-su for XFCE (#304753) 
+
+-------------------------------------------------------------------
+Tue May 22 14:25:00 CEST 2007 - [email protected]
+
+- add xdg-su (#275937)
+
+-------------------------------------------------------------------
+Mon Nov  6 09:48:46 CET 2006 - [email protected]
+
+- update to 1.0.1:
+  * Several shell syntax issues causing failures on Ubuntu 6.10
+  * Spurious output on stdout when running xdg-desktop-menu
+  * Non-ascii mailto URI handling of xdg-email on non-UTF8 locales 
+    under KDE
+
+-------------------------------------------------------------------
+Fri Oct 27 18:04:35 CEST 2006 - [email protected]
+
+- don't build as root
+
+-------------------------------------------------------------------
+Wed Sep 27 11:58:49 CEST 2006 - [email protected]
+
+- update to 1.0rc1:
+  * for changes, see /usr/share/doc/packages/xdg-utils/ChangeLog
+
+-------------------------------------------------------------------
+Thu Jun 22 13:27:51 CEST 2006 - [email protected]
+
+- Initial package (TP1) 
+

New:
----
  install-some-more-scripts.diff
  xdg-screensaver-gnome-perl.diff
  xdg-su-generic.diff
  xdg-utils-20120310.tar.xz
  xdg-utils.changes
  xdg-utils.spec
  xfce-su.diff

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

Other differences:
------------------
++++++ xdg-utils.spec ++++++
#
# spec file for package xdg-utils
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           xdg-utils
BuildRequires:  make
BuildRequires:  xmlto
BuildRequires:  xz
# for xmlto to be able to generate text from html
BuildRequires:  w3m
Summary:        Utilities to uniformly interface desktop environments
License:        MIT
Group:          System/GUI/Other
Version:        20120310
Release:        0
BuildArch:      noarch
Url:            http://portland.freedesktop.org/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
# http://portland.freedesktop.org/download/xdg-utils-%%{version}.tgz
Source0:        xdg-utils-%{version}.tar.xz
Patch0:         install-some-more-scripts.diff
Patch1:         xfce-su.diff
Patch2:         xdg-su-generic.diff
Patch8:         xdg-screensaver-gnome-perl.diff
Requires:       perl
Requires:       perl-Net-DBus
Requires:       perl-X11-Protocol

%description
The xdg-utils package is a set of simple scripts that provide basic
desktop integration functions for any Free Desktop, such as Linux.

They are intended to provide a set of defacto standards.  This means
   that: *  Third party software developers can rely on these
   xdg-utils for all of their simple integration needs.

*  Developers of desktop environments can make sure that their
   environments are well supported

If a desktop developer wants to be certain that their environment
functions with all third party software, then can simply make sure that
these utilities work properly in their environment.



%prep
%setup -q -n %name-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch8 -p1

%build
%configure
(cd scripts; make scripts)
make %{?_smp_flags}

%install
make DESTDIR=$RPM_BUILD_ROOT install

%clean
%{?buildroot:%__rm -rf "%{buildroot}"}

%files
%defattr(-,root,root)
%doc LICENSE README TODO ChangeLog
%{_bindir}/xdg-desktop-icon
%{_bindir}/xdg-desktop-menu
%{_bindir}/xdg-email
%{_bindir}/xdg-icon-resource
%{_bindir}/xdg-mime
%{_bindir}/xdg-open
%{_bindir}/xdg-su
%{_bindir}/xdg-screensaver
%{_bindir}/xdg-settings
%{_bindir}/xdg-terminal
%{_mandir}/man1/xdg-desktop-icon.1*
%{_mandir}/man1/xdg-desktop-menu.1*
%{_mandir}/man1/xdg-email.1*
%{_mandir}/man1/xdg-icon-resource.1*
%{_mandir}/man1/xdg-mime.1*
%{_mandir}/man1/xdg-open.1*
%{_mandir}/man1/xdg-screensaver.1*
%{_mandir}/man1/xdg-settings.1*

%changelog
++++++ install-some-more-scripts.diff ++++++
---
 scripts/Makefile.in |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

--- a/scripts/Makefile.in
+++ b/scripts/Makefile.in
@@ -20,11 +20,11 @@ SCRIPTS             = \
     xdg-open \
     xdg-email \
     xdg-screensaver \
-    xdg-settings
-#    xdg-su
+    xdg-settings \
+    xdg-su \
+    xdg-terminal
 #    xdg-copy \
 #    xdg-file-dialog
-#    xdg-terminal
 
 MANPAGES=      $(SCRIPTS:%=man/%.1)
 WEBPAGES=      $(SCRIPTS:%=%.html)
++++++ xdg-screensaver-gnome-perl.diff ++++++
Source of the patch: 
http://patch-tracker.debian.org/patch/series/view/xdg-utils/1.1.0~rc1+git20111210-6/xdg-screensaver-new-gnome.diff
---
 scripts/xdg-screensaver.in |   56 ++++++++++++++++++++++++++++++++++++++-------
 1 file changed, 48 insertions(+), 8 deletions(-)

--- a/scripts/xdg-screensaver.in
+++ b/scripts/xdg-screensaver.in
@@ -435,14 +435,54 @@ screensaver_gnome_screensaver()
 # http://people.gnome.org/~mccann/gnome-screensaver/docs/gnome-screensaver.html
     case "$1" in
         suspend)
-        screensaver_suspend_loop \
-        dbus-send --session \
-                  --dest=org.gnome.ScreenSaver \
-                  --type=method_call \
-                  /org/gnome/ScreenSaver \
-                  org.gnome.ScreenSaver.SimulateUserActivity \
-                  2> /dev/null
-        result=$?
+        perl -e '
+use strict;
+use warnings;
+use IO::File;
+use Net::DBus;
+use X11::Protocol;
+
+my ($window_id, $screensaver_file) = @ARGV;
+
+# Find window name to pass to session manager.
+my $x = X11::Protocol->new();
+my $named_window_id = hex($window_id);
+my $window_name;
+while (1) {
+  ($window_name) = $x->GetProperty($named_window_id, $x->atom("WM_NAME"),
+                                  $x->atom("STRING"), 0, 1000, 0);
+  last if defined($window_name) && $window_name ne "";
+  (undef, $named_window_id) = $x->QueryTree($named_window_id);
+  if (!defined($named_window_id)) {
+    $window_name = "?";
+    last;
+  }
+}
+
+# Inhibit idle detection (flags = 8) with window name and ID.
+# We have no reason so just send the window name again.
+my $bus = Net::DBus->session();
+my $sm_svc = $bus->get_service("org.gnome.SessionManager");
+my $sm = $sm_svc->get_object("/org/gnome/SessionManager",
+                            "org.gnome.SessionManager");
+$sm->Inhibit($window_name, hex($window_id), $window_name, 8);
+
+# Wait until removed from the status file.
+while (1) {
+  sleep(10);
+  my $status = new IO::File($screensaver_file, "r")
+    or exit 0;
+  my $found;
+  while (<$status>) {
+    if (/^$window_id:/) {
+      $found = 1;
+      last;
+    }
+  }
+  exit 0 unless $found;
+}
+' $window_id $screensaver_file &
+        result=0
         ;;
 
         resume)
++++++ xdg-su-generic.diff ++++++
Index: xdg-utils-20120310/scripts/xdg-su.in
===================================================================
--- xdg-utils-20120310.orig/scripts/xdg-su.in
+++ xdg-utils-20120310/scripts/xdg-su.in
@@ -145,7 +145,7 @@ fi
 detectDE
 
 if [ x"$DE" = x"" ]; then
-    XSU=`which xsu 2>/dev/null`
+    XSU=`which xterm 2>/dev/null`
     if [ $? -eq 0 ] ; then
         DE=generic
     fi
++++++ xfce-su.diff ++++++
---
 scripts/xdg-su.in |   14 ++++++++++++++
 1 file changed, 14 insertions(+)

--- a/scripts/xdg-su.in
+++ b/scripts/xdg-su.in
@@ -93,6 +93,16 @@ su_generic()
     fi
 }
 
+
+su_xfce()
+{
+    if which gnomesu &>/dev/null ; then
+        su_gnome
+    else
+        su_generic
+    fi
+}
+
 [ x"$1" != x"" ] || exit_failure_syntax
 
 user=
@@ -154,6 +164,10 @@ case "$DE" in
     su_generic
     ;;
 
+    xfce)
+    su_xfce
+    ;;
+
     *)
     [ x"$user" = x"" ] && user=root
     exit_failure_operation_impossible "no graphical method available for 
invoking '$cmd' as '$user'"
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to