Accepting request 656832 from devel:languages:python

- Fix fdupes call
- Use singlespec everywhere as we rather update packages on older
  releases to be singlespeced instead of using py2 only variants

OBS-URL: https://build.opensuse.org/request/show/656832
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-notify2?expand=0&rev=4
This commit is contained in:
Dominique Leuenberger 2019-01-03 17:06:24 +00:00 committed by Git OBS Bridge
commit 2bb28e3e44
2 changed files with 15 additions and 16 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Dec 10 12:53:58 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com>
- Fix fdupes call
- Use singlespec everywhere as we rather update packages on older
releases to be singlespeced instead of using py2 only variants
-------------------------------------------------------------------
Sun Jul 2 09:11:09 UTC 2017 - antoine.belvire@opensuse.org

View File

@ -1,7 +1,7 @@
#
# spec file for package python-notify2
#
# 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
@ -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/
#
@ -23,25 +23,18 @@ Release: 0
Summary: Python interface to DBus notifications
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
%if 0%{suse_version} <= 1315
BuildRequires: dbus-1-python
BuildRequires: dbus-1-python3
%else
URL: https://pypi.python.org/pypi/notify2/
Source: https://files.pythonhosted.org/packages/source/n/notify2/notify2-%{version}.tar.gz
BuildRequires: %{python_module dbus-python}
%endif
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%ifpython3
Requires: dbus-1-python3
%else
Requires: dbus-1-python
%endif
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%python_subpackages
%description
@ -58,11 +51,10 @@ applications.
%install
%python_install
%fdupes %{buildroot}/%{_prefix}
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %python_files
%defattr(-,root,root,-)
%doc LICENSE
%files %{python_files}
%license LICENSE
%{python_sitelib}/*
%changelog