- 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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-notify2?expand=0&rev=5
This commit is contained in:
Antoine Belvire 2017-05-06 11:33:44 +00:00 committed by Git OBS Bridge
parent db437ac7bf
commit 4cb309178c
4 changed files with 34 additions and 19 deletions

BIN
notify2-0.3.1.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:684281f91c51fc60bc7909a35bd21d043a2a421f4e269de1ed1f13845d1d6321
size 8798

View File

@ -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

View File

@ -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