commit 179cbe65e5715e9ce3c4e1e55a45b231fe2c2cd4c31feaa5b95e9ba8d1469b52 Author: Adrian Schröter Date: Fri May 3 21:40:09 2024 +0200 Sync from SUSE:SLFO:Main python-notify2 revision ecc3fb6fc16d22ad397be1c40d3e5df3 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text 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/python-notify2.changes b/python-notify2.changes new file mode 100644 index 0000000..3f36967 --- /dev/null +++ b/python-notify2.changes @@ -0,0 +1,45 @@ +------------------------------------------------------------------- +Fri Dec 11 16:00:15 UTC 2020 - Benjamin Greiner + +- Fix Requires of dbus-python so that the macros can work out the + correct flavor for multiple python3 flavors + gh#openSUSE/python-rpm-macros#66 + +------------------------------------------------------------------- +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 + +- Fix build for Leap 42.3, which does not have a singlespec version + of python-dbus (boo#1046811). + +------------------------------------------------------------------- +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 + +- Use pypi.io as Source url + +------------------------------------------------------------------- +Fri Feb 12 08:08:04 UTC 2016 - olaf@aepfle.de + +- Avoid BuildArch noarch in SLE_11 to fix build + +------------------------------------------------------------------- +Thu Jul 30 18:34:25 UTC 2015 - antoine.belvire@laposte.net + +- Initial package (v0.3). + diff --git a/python-notify2.spec b/python-notify2.spec new file mode 100644 index 0000000..9bd280f --- /dev/null +++ b/python-notify2.spec @@ -0,0 +1,58 @@ +# +# spec file for package python-notify2 +# +# 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-notify2 +Version: 0.3.1 +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://files.pythonhosted.org/packages/source/n/notify2/notify2-%{version}.tar.gz +BuildRequires: %{python_module dbus-python} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +Requires: python-dbus-python +%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 +with Python 2 and 3, and its callbacks can work with Gtk 3 or Qt 4 +applications. + +%prep +%setup -q -n notify2-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%files %{python_files} +%license LICENSE +%{python_sitelib}/notify2.py* +%pycache_only %{python_sitelib}/__pycache__/notify2* +%{python_sitelib}/notify2-%{version}-*info + +%changelog