diff --git a/python-notify2.changes b/python-notify2.changes index 13041d7..2420d43 100644 --- a/python-notify2.changes +++ b/python-notify2.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Dec 10 12:53:58 UTC 2018 - Tomáš Chvátal + +- 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 diff --git a/python-notify2.spec b/python-notify2.spec index 685f586..41de768 100644 --- a/python-notify2.spec +++ b/python-notify2.spec @@ -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