commit mpDris2 for openSUSE:Factory

2019-04-15 Thread root
Hello community,

here is the log from the commit of package mpDris2 for openSUSE:Factory checked 
in at 2019-04-15 11:53:38

Comparing /work/SRC/openSUSE:Factory/mpDris2 (Old)
 and  /work/SRC/openSUSE:Factory/.mpDris2.new.17052 (New)


Package is "mpDris2"

Mon Apr 15 11:53:38 2019 rev:5 rq:694161 version:0.8

Changes:

--- /work/SRC/openSUSE:Factory/mpDris2/mpDris2.changes  2018-12-31 
09:48:03.222134624 +0100
+++ /work/SRC/openSUSE:Factory/.mpDris2.new.17052/mpDris2.changes   
2019-04-15 11:53:43.338607320 +0200
@@ -1,0 +2,15 @@
+Sun Apr 14 09:57:03 UTC 2019 - Sébastien 'sogal' Poher 
+
+- Updated to release 0.8:
+  * Added cli options for mpd host and port, music dir
+  * Better detection of embedded covers
+  * Compatibility with python-mpd2 1.0.0
+  * Fixed volume reporting with newer mpd versions
+  * Fix notification system initialization
+  * Notify urgengy can be configured
+  * "Playing" and "Paused" notifications now show song information (gh-#71).
+  * Path to config file can be changed via command line
+  * Add a hidden option to change the D-Bus service name, for advanced
+multi-instance configurations.
+
+---

Old:

  mpDris2-0.7.tar.gz

New:

  mpDris2-0.8.tar.gz



Other differences:
--
++ mpDris2.spec ++
--- /var/tmp/diff_new_pack.dTyQxP/_old  2019-04-15 11:53:43.818607663 +0200
+++ /var/tmp/diff_new_pack.dTyQxP/_new  2019-04-15 11:53:43.818607663 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package mpDris2
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 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,7 +17,7 @@
 
 
 Name:   mpDris2
-Version:0.7
+Version:0.8
 Release:0
 Summary:MPRIS V2.1 support for mpd
 License:GPL-3.0-only

++ mpDris2-0.7.tar.gz -> mpDris2-0.8.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mpDris2-0.7/NEWS new/mpDris2-0.8/NEWS
--- old/mpDris2-0.7/NEWS2018-11-07 22:15:32.0 +0100
+++ new/mpDris2-0.8/NEWS2019-02-22 16:33:53.0 +0100
@@ -1,4 +1,16 @@
-mpDris2 v0.8 (unreleased)
+mpDris2 v0.8 (February 22, 2019)
+
+ - Added cli options for mpd host and port, music dir
+
+ - Better detection of embedded covers
+
+ - Compatibility with python-mpd2 1.0.0
+
+ - Fixed volume reporting with newer mpd versions
+
+ - Fix notification system initialization
+
+ - Notify urgengy can be configured
 
  - "Playing" and "Paused" notifications now show song information (#71).
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mpDris2-0.7/configure.ac new/mpDris2-0.8/configure.ac
--- old/mpDris2-0.7/configure.ac2018-11-07 22:15:32.0 +0100
+++ new/mpDris2-0.8/configure.ac2019-02-22 16:33:53.0 +0100
@@ -1,5 +1,5 @@
 AC_INIT([mpDris2],
-   [0.7],
+   [0.8],
[https://github.com/eonpatapon/mpDris2/issues],
[mpdris2],
[https://github.com/eonpatapon/mpDris2])
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mpDris2-0.7/src/mpDris2.conf 
new/mpDris2-0.8/src/mpDris2.conf
--- old/mpDris2-0.7/src/mpDris2.conf2018-11-07 22:15:32.0 +0100
+++ new/mpDris2-0.8/src/mpDris2.conf2019-02-22 16:33:53.0 +0100
@@ -14,3 +14,5 @@
 [Bling]
 #mmkeys = True
 #notify = True
+# Urgency of the notification: 0 for low, 1 for medium and 2 for high.
+#notify_urgency = 0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mpDris2-0.7/src/mpDris2.in.py 
new/mpDris2-0.8/src/mpDris2.in.py
--- old/mpDris2-0.7/src/mpDris2.in.py   2018-11-07 22:15:32.0 +0100
+++ new/mpDris2-0.8/src/mpDris2.in.py   2019-02-22 16:33:53.0 +0100
@@ -95,6 +95,7 @@
 # Bling
 'mmkeys': True,
 'notify': (using_gi_notify or using_old_notify),
+'notify_urgency': 0,
 }
 
 defaults = {
@@ -899,39 +900,45 @@
 self.reconnect()
 return False
 
+
 class NotifyWrapper(object):
+
 def __init__(self, params):
 self._notification = None
 
-if params["notify"]:
-if using_gi_notify:
-logger.debug("Initializing GObject.Notify")
-if Notify.init(identity):
-self._notification = Notify.Notification()
-self._notification.set_hint("desktop-entry", 
GLib.Variant("s", "mpdris2"))
-self._notification.set_hint("transient", GLib.Variant("b", 

commit mpDris2 for openSUSE:Factory

2018-12-31 Thread root
Hello community,

here is the log from the commit of package mpDris2 for openSUSE:Factory checked 
in at 2018-12-31 09:47:26

Comparing /work/SRC/openSUSE:Factory/mpDris2 (Old)
 and  /work/SRC/openSUSE:Factory/.mpDris2.new.28833 (New)


Package is "mpDris2"

Mon Dec 31 09:47:26 2018 rev:4 rq:662115 version:0.7

Changes:

--- /work/SRC/openSUSE:Factory/mpDris2/mpDris2.changes  2018-08-20 
16:22:34.513090110 +0200
+++ /work/SRC/openSUSE:Factory/.mpDris2.new.28833/mpDris2.changes   
2018-12-31 09:48:03.222134624 +0100
@@ -1,0 +2,13 @@
+Sun Dec 23 10:49:50 UTC 2018 - so...@opensuse.org
+
+- Fix interpreter.patch
+
+---
+Sun Dec 23 10:28:41 UTC 2018 - so...@opensuse.org
+
+- Update to current Github version, including the following:
+  * Catch Mutagen exceptions for malformed files
+  * Allow a custom bus name to be specified (for multi-instance)
+  * Use SafeConfigParser#read() and Python3 interpreter
+
+---



Other differences:
--
++ interpreter.patch ++
--- /var/tmp/diff_new_pack.K4cjDh/_old  2018-12-31 09:48:03.658134267 +0100
+++ /var/tmp/diff_new_pack.K4cjDh/_new  2018-12-31 09:48:03.658134267 +0100
@@ -3,7 +3,7 @@
 --- mpDris2-0.7/src/mpDris2.in.py.orig 2018-05-08 21:18:40.591530305 +0200
 +++ mpDris2-0.7/src/mpDris2.in.py  2018-05-08 21:19:35.171342273 +0200
 @@ -1,4 +1,4 @@
--#!/usr/bin/env python
+-#!/usr/bin/env python3
 +#!/usr/bin/python3
  # -*- coding: utf-8 -*-
  #

++ mpDris2-0.7.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mpDris2-0.7/NEWS new/mpDris2-0.7/NEWS
--- old/mpDris2-0.7/NEWS2015-12-18 17:32:13.0 +0100
+++ new/mpDris2-0.7/NEWS2018-11-07 22:15:32.0 +0100
@@ -1,3 +1,12 @@
+mpDris2 v0.8 (unreleased)
+
+ - "Playing" and "Paused" notifications now show song information (#71).
+
+ - Path to config file can be changed via command line.
+
+ - There is a hidden option to change the D-Bus service name, for advanced
+   multi-instance configurations.
+
 mpDris2 v0.7 (December 18, 2015)
 
  - Now compatible with both pygobject 2.x and 3.x (#62).
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mpDris2-0.7/configure.ac new/mpDris2-0.7/configure.ac
--- old/mpDris2-0.7/configure.ac2015-12-18 17:32:13.0 +0100
+++ new/mpDris2-0.7/configure.ac2018-11-07 22:15:32.0 +0100
@@ -8,7 +8,11 @@
 
 m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
 
-AM_PATH_PYTHON([2.5],, [:])
+AM_PATH_PYTHON([3.4],, [:])
+
+define([gitversion], esyscmd([sh -c "which git > /dev/null && (git describe | 
tr -d '\n' || false)"]))
+GITVERSION="gitversion"
+AC_SUBST(GITVERSION)
 
 GETTEXT_PACKAGE=mpDris2
 AC_SUBST(GETTEXT_PACKAGE)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mpDris2-0.7/src/Makefile.am 
new/mpDris2-0.7/src/Makefile.am
--- old/mpDris2-0.7/src/Makefile.am 2015-12-18 17:32:13.0 +0100
+++ new/mpDris2-0.7/src/Makefile.am 2018-11-07 22:15:32.0 +0100
@@ -21,7 +21,9 @@
mpDris2
 
 edit = sed -e 's|@bindir[@]|$(bindir)|g' \
-  -e 's|@datadir[@]|$(datadir)|g'
+  -e 's|@datadir[@]|$(datadir)|g' \
+  -e 's|@gitversion[@]|$(GITVERSION)|g' \
+  -e 's|@version[@]|$(VERSION)|g'
 
 mpDris2: mpDris2.in.py Makefile
$(AM_V_GEN) $(edit) $< > $@.tmp && mv $@.tmp $@
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mpDris2-0.7/src/mpDris2.in.py 
new/mpDris2-0.7/src/mpDris2.in.py
--- old/mpDris2-0.7/src/mpDris2.in.py   2015-12-18 17:32:13.0 +0100
+++ new/mpDris2-0.7/src/mpDris2.in.py   2018-11-07 22:15:32.0 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #
 #This program is free software: you can redistribute it and/or modify
@@ -19,13 +19,13 @@
 # Based on mpDris from: Erik Karlsson 
 # Some bits taken from quodlibet mpris plugin by 
 
+
 from __future__ import print_function
 
 import os
 import sys
 import re
 import shlex
-import signal
 import socket
 import getopt
 import mpd
@@ -36,6 +36,10 @@
 import gettext
 import time
 import tempfile
+import base64
+
+__version__ = "@version@"
+__git_version__ = "@gitversion@"
 
 try:
 import mutagen
@@ -50,7 +54,7 @@
 try:
 import gi
 gi.require_version('Notify', '0.7')
-except ImportError:
+except (ImportError, ValueError):
 pass
 
 using_gi_glib = False
@@ -71,7 +75,7 @@
 try:
 import pynotify
 using_old_notify = True
-except:
+except ImportError:
 pass
 

commit mpDris2 for openSUSE:Factory

2018-08-20 Thread root
Hello community,

here is the log from the commit of package mpDris2 for openSUSE:Factory checked 
in at 2018-08-20 16:22:27

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


Package is "mpDris2"

Mon Aug 20 16:22:27 2018 rev:3 rq:630476 version:0.7

Changes:

--- /work/SRC/openSUSE:Factory/mpDris2/mpDris2.changes  2018-05-10 
15:49:38.976714746 +0200
+++ /work/SRC/openSUSE:Factory/.mpDris2.new/mpDris2.changes 2018-08-20 
16:22:34.513090110 +0200
@@ -1,0 +2,13 @@
+Mon Aug 20 06:27:32 UTC 2018 - luc1...@linuxmail.org
+
+- Add missing gobject-introspection-devel BuildRequires for
+  automatic typelib requirements generation.
+- Add python3-base BuildRequires and switch python2-python-mpd2
+  Requires to python3-python-mpd2 since configure script checks for
+  Python 3, the new openSUSE default version, rather than Python 2.
+- Switch python2 to python3 in interprter.patch to reflect the
+  previous changes.
+- Drop update-desktop-files BuildRequires: this is not required nor
+  used.
+
+---



Other differences:
--
++ mpDris2.spec ++
--- /var/tmp/diff_new_pack.YpXg3R/_old  2018-08-20 16:22:36.489092910 +0200
+++ /var/tmp/diff_new_pack.YpXg3R/_new  2018-08-20 16:22:36.493092916 +0200
@@ -27,9 +27,11 @@
 Patch:  interpreter.patch
 BuildRequires:  autoconf
 BuildRequires:  automake
+# g-i-devel: This is for automatic GObject Introspection bindings dependency 
generation:
+BuildRequires:  gobject-introspection-devel
 BuildRequires:  intltool
-BuildRequires:  update-desktop-files
-Requires:   python2-python-mpd2
+BuildRequires:  python3-base
+Requires:   python3-python-mpd2
 Recommends: %{name}-lang
 BuildArch:  noarch
 %{perl_requires}
@@ -58,10 +60,10 @@
 %doc %{_docdir}/%{name}
 %{_sysconfdir}/xdg/autostart/mpdris2.desktop
 %{_bindir}/mpDris2
-%{_prefix}/lib/systemd/user/mpDris2.service
+%{_userunitdir}/mpDris2.service
 %{_datadir}/applications/mpdris2.desktop
-%{_datadir}/dbus-1
-%{_datadir}/dbus-1/services
+%dir %{_datadir}/dbus-1
+%dir %{_datadir}/dbus-1/services
 %{_datadir}/dbus-1/services/org.mpris.MediaPlayer2.mpd.service
 
 %files lang -f %{name}.lang

++ interpreter.patch ++
--- /var/tmp/diff_new_pack.YpXg3R/_old  2018-08-20 16:22:36.509092939 +0200
+++ /var/tmp/diff_new_pack.YpXg3R/_new  2018-08-20 16:22:36.509092939 +0200
@@ -4,7 +4,7 @@
 +++ mpDris2-0.7/src/mpDris2.in.py  2018-05-08 21:19:35.171342273 +0200
 @@ -1,4 +1,4 @@
 -#!/usr/bin/env python
-+#!/usr/bin/python2
++#!/usr/bin/python3
  # -*- coding: utf-8 -*-
  #
  #This program is free software: you can redistribute it and/or modify




commit mpDris2 for openSUSE:Factory

2018-05-10 Thread root
Hello community,

here is the log from the commit of package mpDris2 for openSUSE:Factory checked 
in at 2018-05-10 15:49:38

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


Package is "mpDris2"

Thu May 10 15:49:38 2018 rev:2 rq:605495 version:0.7

Changes:

--- /work/SRC/openSUSE:Factory/mpDris2/mpDris2.changes  2017-09-12 
19:55:48.823543809 +0200
+++ /work/SRC/openSUSE:Factory/.mpDris2.new/mpDris2.changes 2018-05-10 
15:49:38.976714746 +0200
@@ -1,0 +2,6 @@
+Tue May  8 19:11:18 UTC 2018 - so...@volted.net
+
+- Fix python-mpd module version
+- Add interpreter.patch to fix env related warning
+
+---

New:

  interpreter.patch



Other differences:
--
++ mpDris2.spec ++
--- /var/tmp/diff_new_pack.XWexgS/_old  2018-05-10 15:49:40.388662997 +0200
+++ /var/tmp/diff_new_pack.XWexgS/_new  2018-05-10 15:49:40.392662849 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package mpDris2
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 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
@@ -20,15 +20,16 @@
 Version:0.7
 Release:0
 Summary:MPRIS V2.1 support for mpd
-License:GPL-3.0
+License:GPL-3.0-only
 Group:  Productivity/Multimedia/Sound/Players
 Url:https://github.com/eonpatapon/mpDris2
 Source: 
https://github.com/eonpatapon/mpDris2/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
+Patch:  interpreter.patch
 BuildRequires:  autoconf
 BuildRequires:  automake
 BuildRequires:  intltool
 BuildRequires:  update-desktop-files
-Requires:   python3-python-mpd2
+Requires:   python2-python-mpd2
 Recommends: %{name}-lang
 BuildArch:  noarch
 %{perl_requires}
@@ -41,6 +42,7 @@
 
 %prep
 %setup -q
+%patch -p1
 
 %build
 NOCONFIGURE=1 ./autogen.sh

++ interpreter.patch ++
Index: mpDris2-0.7/src/mpDris2.in.py
===
--- mpDris2-0.7/src/mpDris2.in.py.orig  2018-05-08 21:18:40.591530305 +0200
+++ mpDris2-0.7/src/mpDris2.in.py   2018-05-08 21:19:35.171342273 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python2
 # -*- coding: utf-8 -*-
 #
 #This program is free software: you can redistribute it and/or modify