diff --git a/notify2-0.3.1.tar.gz b/notify2-0.3.1.tar.gz new file mode 100644 index 0000000..168cc14 --- /dev/null +++ b/notify2-0.3.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:33fa108d50c42f3cd3407cc437518ad3f6225d1bb237011f16393c9dd3ce197d +size 17792 diff --git a/notify2-0.3.tar.gz b/notify2-0.3.tar.gz deleted file mode 100644 index 1414d91..0000000 --- a/notify2-0.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:684281f91c51fc60bc7909a35bd21d043a2a421f4e269de1ed1f13845d1d6321 -size 8798 diff --git a/python-notify2.changes b/python-notify2.changes index fd9f053..5308f28 100644 --- a/python-notify2.changes +++ b/python-notify2.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Sat May 6 11:32:19 UTC 2017 - antoine.belvire@opensuse.org + +- Update to version 0.3.1: + * Wrap notifications_registry lookup in try block not to show + irrelevant errors. + * Add LICENSE file. +- Convert to singlespec. +- Fix license. + ------------------------------------------------------------------- Wed Dec 28 08:53:49 UTC 2016 - tbechtold@suse.com diff --git a/python-notify2.spec b/python-notify2.spec index b9cb985..8250b45 100644 --- a/python-notify2.spec +++ b/python-notify2.spec @@ -1,7 +1,7 @@ # # spec file for package python-notify2 # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 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 @@ -16,22 +16,29 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-notify2 -Version: 0.3 +Version: 0.3.1 Release: 0 Summary: Python interface to DBus notifications -License: BSD-3-Clause +License: BSD-2-Clause Group: Development/Languages/Python Url: https://pypi.python.org/pypi/notify2/ Source: https://pypi.io/packages/source/n/notify2/notify2-%{version}.tar.gz -BuildRequires: dbus-1-python -BuildRequires: python-setuptools +BuildRequires: %{python_module dbus-python} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +%ifpython3 +Requires: dbus-1-python3 +%else Requires: dbus-1-python -%if 0%{?suse_version} > 1110 -BuildArch: noarch %endif +BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build +%python_subpackages + %description This is a pure-python replacement for notify-python, using python-dbus to communicate with the notifications server directly. It's compatible @@ -42,17 +49,15 @@ applications. %setup -q -n notify2-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root %{buildroot} +%python_install +%fdupes %{buildroot}/%{_prefix} -%files -%defattr(-,root,root) -# Note: no need for update-alternatives, there is no conflicting path with python3-notify2 -# (no documentation, no script in bindir) -%{python_sitelib}/notify2.py -%{python_sitelib}/notify2.pyc -%{python_sitelib}/notify2-%{version}-py%{py_ver}.egg-info +%files %python_files +%defattr(-,root,root,-) +%doc LICENSE +%{python_sitelib}/* %changelog