commit swayidle for openSUSE:Factory

2020-01-23 Thread root
Hello community,

here is the log from the commit of package swayidle for openSUSE:Factory 
checked in at 2020-01-23 15:55:02

Comparing /work/SRC/openSUSE:Factory/swayidle (Old)
 and  /work/SRC/openSUSE:Factory/.swayidle.new.26092 (New)


Package is "swayidle"

Thu Jan 23 15:55:02 2020 rev:6 rq:766521 version:1.6

Changes:

--- /work/SRC/openSUSE:Factory/swayidle/swayidle.changes2019-12-23 
22:48:45.934096924 +0100
+++ /work/SRC/openSUSE:Factory/.swayidle.new.26092/swayidle.changes 
2020-01-23 15:55:13.159104811 +0100
@@ -1,0 +2,12 @@
+Thu Jan 23 08:51:39 UTC 2020 - Michael Vetter 
+
+- Update to 1.6:
+  * Add logind SetIdleHint event
+  * completion: use pkg-config to get install location for bash/fish
+  * fish-completion: use the correct fallback directory
+  * Update bash and fish completions with option -w
+  * Update zsh completions
+- Add swayidle-version.patch
+  See https://github.com/swaywm/swayidle/pull/53
+
+---

Old:

  1.5.tar.gz

New:

  1.6.tar.gz
  swayidle-version.patch



Other differences:
--
++ swayidle.spec ++
--- /var/tmp/diff_new_pack.2ZO33D/_old  2020-01-23 15:55:13.775105143 +0100
+++ /var/tmp/diff_new_pack.2ZO33D/_new  2020-01-23 15:55:13.775105143 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package swayidle
 #
-# Copyright (c) 2019 SUSE LLC
+# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,13 +17,15 @@
 
 
 Name:   swayidle
-Version:1.5
+Version:1.6
 Release:0
 Summary:Idle management daemon for Wayland
 License:MIT
 Group:  System/GUI/Other
 URL:https://github.com/swaywm/swayidle
 Source0:https://github.com/swaywm/swayidle/archive/%{version}.tar.gz
+# https://github.com/swaywm/swayidle/pull/53
+Patch0: swayidle-version.patch
 BuildRequires:  meson >= 0.48.0
 BuildRequires:  pkgconfig
 BuildRequires:  scdoc
@@ -67,6 +69,7 @@
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 export CFLAGS="%{optflags} -I/usr/include/wayland"
@@ -85,7 +88,7 @@
 
 %files fish-completion
 %dir %{_datadir}/fish/
-%{_datadir}/fish/completions/
+%{_datadir}/fish/vendor_completions.d/
 
 %files zsh-completion
 %{_datadir}/zsh/site-functions/

++ 1.5.tar.gz -> 1.6.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/swayidle-1.5/completions/bash/swayidle 
new/swayidle-1.6/completions/bash/swayidle
--- old/swayidle-1.5/completions/bash/swayidle  2019-07-11 16:18:46.0 
+0200
+++ new/swayidle-1.6/completions/bash/swayidle  2020-01-22 17:20:22.0 
+0100
@@ -15,6 +15,7 @@
   short=(
 -h
 -d
+-w
   )
 
   if [ "$prev" = timeout ]; then
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/swayidle-1.5/completions/fish/swayidle.fish 
new/swayidle-1.6/completions/fish/swayidle.fish
--- old/swayidle-1.5/completions/fish/swayidle.fish 2019-07-11 
16:18:46.0 +0200
+++ new/swayidle-1.6/completions/fish/swayidle.fish 2020-01-22 
17:20:22.0 +0100
@@ -1,3 +1,4 @@
 # swayidle
 complete -c swayidle -s h --description 'show help'
 complete -c swayidle -s d --description 'debug'
+complete -c swayidle -s w --description 'wait for command to finish'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/swayidle-1.5/completions/zsh/_swayidle 
new/swayidle-1.6/completions/zsh/_swayidle
--- old/swayidle-1.5/completions/zsh/_swayidle  2019-07-11 16:18:46.0 
+0200
+++ new/swayidle-1.6/completions/zsh/_swayidle  2020-01-22 17:20:22.0 
+0100
@@ -8,10 +8,11 @@
 local resume=('resume:Execute command when there is activity again')
 
 if (($#words <= 2)); then
+   _describe -t "events" 'swayidle' events
_arguments -C \
   '(-h --help)'{-h,--help}'[Show help message and 
quit]' \
-  '(-d)'-d'[Enable debug output]'
-   _describe -t "events" 'swayidle' events
+  '(-d)'-d'[Enable debug output]' \
+  '(-w)'-w'[Wait for command to finish executing 
before continuing]'
 
 elif  [[ "$words[-3]" == before-sleep || "$words[-3]" == resume ]]; then
_describe -t "events" 'swayidle' events
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/swayidle-1.5/main.c new/swayidle-1.6/main.c
--- old/swayidle-1.5/main.c 2019-07-11 16:18:46.0 +0200
+++ new/swayidle-1.6/main.c 2020-01-22 17:20:22.0 +0100

commit swayidle for openSUSE:Factory

2019-12-23 Thread root
Hello community,

here is the log from the commit of package swayidle for openSUSE:Factory 
checked in at 2019-12-23 22:45:30

Comparing /work/SRC/openSUSE:Factory/swayidle (Old)
 and  /work/SRC/openSUSE:Factory/.swayidle.new.6675 (New)


Package is "swayidle"

Mon Dec 23 22:45:30 2019 rev:5 rq:758872 version:1.5

Changes:

--- /work/SRC/openSUSE:Factory/swayidle/swayidle.changes2019-07-13 
14:00:41.434892625 +0200
+++ /work/SRC/openSUSE:Factory/.swayidle.new.6675/swayidle.changes  
2019-12-23 22:48:45.934096924 +0100
@@ -1,0 +2,6 @@
+Thu Dec 19 14:48:45 UTC 2019 - Dominique Leuenberger 
+
+- BuildRequire pkgconfig(libsystemd) instead of systemd-devel:
+  Allow OBS to shortcut through the -mini flavors.
+
+---



Other differences:
--
++ swayidle.spec ++
--- /var/tmp/diff_new_pack.tawCsc/_old  2019-12-23 22:48:46.654097190 +0100
+++ /var/tmp/diff_new_pack.tawCsc/_new  2019-12-23 22:48:46.662097193 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package swayidle
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,7 +12,7 @@
 # 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/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -27,7 +27,7 @@
 BuildRequires:  meson >= 0.48.0
 BuildRequires:  pkgconfig
 BuildRequires:  scdoc
-BuildRequires:  systemd-devel
+BuildRequires:  pkgconfig(libsystemd)
 BuildRequires:  pkgconfig(wayland-client)
 BuildRequires:  pkgconfig(wayland-protocols) >= 1.14
 BuildRequires:  pkgconfig(xkbcommon)




commit swayidle for openSUSE:Factory

2019-07-13 Thread root
Hello community,

here is the log from the commit of package swayidle for openSUSE:Factory 
checked in at 2019-07-13 13:49:49

Comparing /work/SRC/openSUSE:Factory/swayidle (Old)
 and  /work/SRC/openSUSE:Factory/.swayidle.new.4615 (New)


Package is "swayidle"

Sat Jul 13 13:49:49 2019 rev:4 rq:714771 version:1.5

Changes:

--- /work/SRC/openSUSE:Factory/swayidle/swayidle.changes2019-07-11 
13:19:01.242755534 +0200
+++ /work/SRC/openSUSE:Factory/.swayidle.new.4615/swayidle.changes  
2019-07-13 14:00:41.434892625 +0200
@@ -1,0 +2,7 @@
+Fri Jul 12 06:36:45 UTC 2019 - mvet...@suse.com
+
+- Update to 1.5:
+  * Set version to 1.5
+- Remove swayidle-version.patch: upstreamed
+
+---

Old:

  1.4.tar.gz
  swayidle-version.patch

New:

  1.5.tar.gz



Other differences:
--
++ swayidle.spec ++
--- /var/tmp/diff_new_pack.xA1WJz/_old  2019-07-13 14:00:42.886892181 +0200
+++ /var/tmp/diff_new_pack.xA1WJz/_new  2019-07-13 14:00:42.930892167 +0200
@@ -17,14 +17,13 @@
 
 
 Name:   swayidle
-Version:1.4
+Version:1.5
 Release:0
 Summary:Idle management daemon for Wayland
 License:MIT
 Group:  System/GUI/Other
 URL:https://github.com/swaywm/swayidle
 Source0:https://github.com/swaywm/swayidle/archive/%{version}.tar.gz
-Patch0: swayidle-version.patch
 BuildRequires:  meson >= 0.48.0
 BuildRequires:  pkgconfig
 BuildRequires:  scdoc
@@ -68,7 +67,6 @@
 
 %prep
 %setup -q
-%patch0 -p1
 
 %build
 export CFLAGS="%{optflags} -I/usr/include/wayland"

++ 1.4.tar.gz -> 1.5.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/swayidle-1.4/meson.build new/swayidle-1.5/meson.build
--- old/swayidle-1.4/meson.build2019-07-05 18:48:33.0 +0200
+++ new/swayidle-1.5/meson.build2019-07-11 16:18:46.0 +0200
@@ -1,7 +1,7 @@
 project(
'swayidle',
'c',
-   version: '1.3',
+   version: '1.5',
license: 'MIT',
meson_version: '>=0.48.0',
default_options: [




commit swayidle for openSUSE:Factory

2019-07-11 Thread root
Hello community,

here is the log from the commit of package swayidle for openSUSE:Factory 
checked in at 2019-07-11 13:18:50

Comparing /work/SRC/openSUSE:Factory/swayidle (Old)
 and  /work/SRC/openSUSE:Factory/.swayidle.new.4615 (New)


Package is "swayidle"

Thu Jul 11 13:18:50 2019 rev:3 rq:714539 version:1.4

Changes:

--- /work/SRC/openSUSE:Factory/swayidle/swayidle.changes2019-05-24 
11:31:39.813402162 +0200
+++ /work/SRC/openSUSE:Factory/.swayidle.new.4615/swayidle.changes  
2019-07-11 13:19:01.242755534 +0200
@@ -1,0 +2,7 @@
+Thu Jul 11 05:00:31 UTC 2019 - mvet...@suse.com
+
+- Update to 1.4:
+  * Adapt version number to actual release
+  * Remove space in scdoc preamble
+
+---

Old:

  1.3.tar.gz

New:

  1.4.tar.gz



Other differences:
--
++ swayidle.spec ++
--- /var/tmp/diff_new_pack.k7z7Y8/_old  2019-07-11 13:19:02.310755199 +0200
+++ /var/tmp/diff_new_pack.k7z7Y8/_new  2019-07-11 13:19:02.310755199 +0200
@@ -17,7 +17,7 @@
 
 
 Name:   swayidle
-Version:1.3
+Version:1.4
 Release:0
 Summary:Idle management daemon for Wayland
 License:MIT

++ 1.3.tar.gz -> 1.4.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/swayidle-1.3/meson.build new/swayidle-1.4/meson.build
--- old/swayidle-1.3/meson.build2019-02-16 17:43:36.0 +0100
+++ new/swayidle-1.4/meson.build2019-07-05 18:48:33.0 +0200
@@ -1,7 +1,7 @@
 project(
'swayidle',
'c',
-   version: '1.2',
+   version: '1.3',
license: 'MIT',
meson_version: '>=0.48.0',
default_options: [
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/swayidle-1.3/swayidle.1.scd 
new/swayidle-1.4/swayidle.1.scd
--- old/swayidle-1.3/swayidle.1.scd 2019-02-16 17:43:36.0 +0100
+++ new/swayidle-1.4/swayidle.1.scd 2019-07-05 18:48:33.0 +0200
@@ -1,4 +1,4 @@
-swayidle (1)
+swayidle(1)
 
 # NAME
 

++ swayidle-version.patch ++
--- /var/tmp/diff_new_pack.k7z7Y8/_old  2019-07-11 13:19:02.374755178 +0200
+++ /var/tmp/diff_new_pack.k7z7Y8/_new  2019-07-11 13:19:02.374755178 +0200
@@ -5,8 +5,8 @@
  project(
'swayidle',
'c',
--  version: '1.2',
-+  version: '1.3',
+-  version: '1.3',
++  version: '1.4',
license: 'MIT',
meson_version: '>=0.48.0',
default_options: [




commit swayidle for openSUSE:Factory

2019-05-24 Thread root
Hello community,

here is the log from the commit of package swayidle for openSUSE:Factory 
checked in at 2019-05-24 11:31:37

Comparing /work/SRC/openSUSE:Factory/swayidle (Old)
 and  /work/SRC/openSUSE:Factory/.swayidle.new.5148 (New)


Package is "swayidle"

Fri May 24 11:31:37 2019 rev:2 rq:704917 version:1.3

Changes:

--- /work/SRC/openSUSE:Factory/swayidle/swayidle.changes2019-02-25 
17:50:47.106771824 +0100
+++ /work/SRC/openSUSE:Factory/.swayidle.new.5148/swayidle.changes  
2019-05-24 11:31:39.813402162 +0200
@@ -1,0 +2,9 @@
+Thu May 23 06:13:01 UTC 2019 - mvet...@suse.com
+
+- Update to 1.3:
+  * Add an error message when before-sleep is used without dbus support
+  * Add support for logind's lock/unlock signals
+  * Set version in project file
+- Add swayidle-version.patch: they forgot to increase the version
+
+---

Old:

  1.2.tar.gz

New:

  1.3.tar.gz
  swayidle-version.patch



Other differences:
--
++ swayidle.spec ++
--- /var/tmp/diff_new_pack.Nd9cIF/_old  2019-05-24 11:31:41.101401831 +0200
+++ /var/tmp/diff_new_pack.Nd9cIF/_new  2019-05-24 11:31:41.109401828 +0200
@@ -12,18 +12,19 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via https://bugs.opensuse.org/
+# Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
 
 Name:   swayidle
-Version:1.2
+Version:1.3
 Release:0
 Summary:Idle management daemon for Wayland
 License:MIT
 Group:  System/GUI/Other
 URL:https://github.com/swaywm/swayidle
 Source0:https://github.com/swaywm/swayidle/archive/%{version}.tar.gz
+Patch0: swayidle-version.patch
 BuildRequires:  meson >= 0.48.0
 BuildRequires:  pkgconfig
 BuildRequires:  scdoc
@@ -67,6 +68,7 @@
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 export CFLAGS="%{optflags} -I/usr/include/wayland"

++ 1.2.tar.gz -> 1.3.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/swayidle-1.2/main.c new/swayidle-1.3/main.c
--- old/swayidle-1.2/main.c 2019-01-27 14:22:09.0 +0100
+++ new/swayidle-1.3/main.c 2019-02-16 17:43:36.0 +0100
@@ -33,6 +33,8 @@
struct wl_list timeout_cmds; // struct swayidle_timeout_cmd *
char *before_sleep_cmd;
char *after_resume_cmd;
+   char *logind_lock_cmd;
+   char *logind_unlock_cmd;
bool wait;
 } state;
 
@@ -109,6 +111,7 @@
 #if HAVE_SYSTEMD || HAVE_ELOGIND
 static int lock_fd = -1;
 static struct sd_bus *bus = NULL;
+static char *session_name = NULL;
 
 static void acquire_sleep_lock(void) {
sd_bus_message *msg = NULL;
@@ -178,6 +181,29 @@
 
return 0;
 }
+static int handle_lock(sd_bus_message *msg, void *userdata,
+   sd_bus_error *ret_error) {
+   swayidle_log(LOG_DEBUG, "Lock signal received");
+
+   if (state.logind_lock_cmd) {
+   cmd_exec(state.logind_lock_cmd);
+   }
+   swayidle_log(LOG_DEBUG, "Lock command done");
+
+   return 0;
+}
+
+static int handle_unlock(sd_bus_message *msg, void *userdata,
+   sd_bus_error *ret_error) {
+   swayidle_log(LOG_DEBUG, "Unlock signal received");
+
+   if (state.logind_unlock_cmd) {
+   cmd_exec(state.logind_unlock_cmd);
+   }
+   swayidle_log(LOG_DEBUG, "Unlock command done");
+
+   return 0;
+}
 
 static int dbus_event(int fd, uint32_t mask, void *data) {
sd_bus *bus = data;
@@ -205,27 +231,74 @@
return count;
 }
 
-static void setup_sleep_listener(void) {
+static void connect_to_bus(void) {
int ret = sd_bus_default_system(&bus);
+   sd_bus_message *msg = NULL;
+   sd_bus_error error = SD_BUS_ERROR_NULL;
+   pid_t my_pid = getpid();
+   const char *session_name_tmp;
if (ret < 0) {
errno = -ret;
swayidle_log_errno(LOG_ERROR, "Failed to open D-Bus 
connection");
return;
}
+   struct wl_event_source *source = wl_event_loop_add_fd(state.event_loop,
+   sd_bus_get_fd(bus), WL_EVENT_READABLE, dbus_event, bus);
+   wl_event_source_check(source);
+   ret = sd_bus_call_method(bus, "org.freedesktop.login1",
+   "/org/freedesktop/login1",
+   "org.freedesktop.login1.Manager", "GetSessionByPID",
+   &error, &msg, "u", my_pid);
+   if (ret < 0) {
+   swayidle_log(LOG_ERROR,
+   "Failed to find session name: %s", 
error.message);
+   goto cleanup;
+