From 13c6bdd420964232934c387885665ff4c16f99fef452c974b2baee888b743d76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 3 May 2024 22:41:39 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main python-pyxdg revision 3d1123b570f91bd8f0f3519155b9933e --- .gitattributes | 23 +++++ python-pyxdg.changes | 151 +++++++++++++++++++++++++++++++++ python-pyxdg.spec | 74 ++++++++++++++++ pyxdg-0.28-test-example.tar.gz | 3 + pyxdg-0.28.tar.gz | 3 + 5 files changed, 254 insertions(+) create mode 100644 .gitattributes create mode 100644 python-pyxdg.changes create mode 100644 python-pyxdg.spec create mode 100644 pyxdg-0.28-test-example.tar.gz create mode 100644 pyxdg-0.28.tar.gz 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/python-pyxdg.changes b/python-pyxdg.changes new file mode 100644 index 0000000..27c66af --- /dev/null +++ b/python-pyxdg.changes @@ -0,0 +1,151 @@ +------------------------------------------------------------------- +Fri Apr 21 12:32:33 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Thu Apr 13 22:44:21 UTC 2023 - Matej Cepl + +- Make calling of %{sle15modernpython} optional. + +------------------------------------------------------------------- +Sat Sep 24 11:19:43 UTC 2022 - Dirk Müller + +- update to 0.28: + * BaseDirectory: Add support for $XDG_STATE_DIR + +------------------------------------------------------------------- +Thu Apr 29 07:22:54 UTC 2021 - Markéta Machová + +- Obsolete python-xdg to resolve conflicting state (boo#1178803) + * see https://bbs.archlinux.org/viewtopic.php?id=262403 for a workaround + +------------------------------------------------------------------- +Thu Dec 3 02:30:45 UTC 2020 - Benjamin Greiner + +- Update to version 0.27 + * Menu: Fix compatibility with Python >= 3.8.4 + * Menu: Fix several AttributeErrors + * Menu: Fix duplication of menu entries due when Layout is provided + * MenuEditor: Fix fromstring typo + * Certain tests are more independent of external system conditions + * Standardise shebangs to /usr/bin/env python3 +- drop new-api.patch, resource_leak.patch merged upstream +- get example test data from gitlab repository -- pass all tests + +------------------------------------------------------------------- +Mon Oct 5 12:47:20 UTC 2020 - Tomáš Chvátal + +- Also conflict with the python-xdg as we provide same namespace + +------------------------------------------------------------------- +Wed Sep 30 08:38:48 UTC 2020 - Tomáš Chvátal + +- Do not provide xdg namespace as there is python-xdg package now + +------------------------------------------------------------------- +Thu Jul 16 12:13:19 UTC 2020 - Matej Cepl + +- Skip over RulesTest.test_rule_from_node test + (https://gitlab.freedesktop.org/xdg/pyxdg/-/issues/20) + +------------------------------------------------------------------- +Mon Mar 2 08:27:33 UTC 2020 - Tomáš Chvátal + +- Add setuptools dependency +- Use pytest to run tests rather than nose that will break with + python 3.10 + +------------------------------------------------------------------- +Sun Mar 1 01:21:17 UTC 2020 - Mook + +- Fix Menu.py using attributes that no longer exist + Patch from https://gitlab.freedesktop.org/xdg/pyxdg/-/merge_requests/2 + * new-api.patch + +------------------------------------------------------------------- +Sun Sep 15 06:48:50 UTC 2019 - John Vandenberg + +- Fix test data to use sys.executable + +------------------------------------------------------------------- +Wed Apr 24 13:12:09 UTC 2019 - Ondřej Súkup + +- add resource_leak.patch - Fix several ResourceWarnings: unclosed file + +------------------------------------------------------------------- +Tue Dec 4 12:53:24 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Tue May 22 19:10:38 UTC 2018 - tchvatal@suse.com + +- Update to 0.26.0: + * IconTheme: Add support for Scale and ScaledDirectories keys. + * DesktopEntry: New method findTryExec() + * Menu: More efficient processing of filter rules by building a Python AST + * Mime: Prefer the first mimetype found for a file extension, instead of the last + * Mime: Allow unknown magic-matching rule formats + * Mime: GlobDB has new methods first_match and all_matches for matching paths + * Mime: New function get_extensions to get extensions for a given mime type + * Mime: Fix MagicDB.match_data crashing with an unknown 'possible' mimetype + * Mime: Correctly handle __NOMAGIC__ rule removing previous magic matches + * Menu: XML parsing reworked + * BaseDirectory: More secure creation of a fallback runtime directory with get_runtime_dir(strict=False) + * Various miscellaneous improvements to testing. + +------------------------------------------------------------------- +Tue May 22 19:07:50 UTC 2018 - tchvatal@suse.com + +- Fix provides/obsoletes to actually provide python2-xdg too + +------------------------------------------------------------------- +Mon Oct 2 14:02:20 UTC 2017 - jmatejek@suse.com + +- drop test-icon test that fails because its standard is too old +- drop hicolor-icon-theme requirement which was needed for that test + +------------------------------------------------------------------- +Fri May 5 21:47:54 UTC 2017 - toddrme2178@gmail.com + +- Don't provide python2-xdg. Singlespec packages should use the + correct name. + +------------------------------------------------------------------- +Mon May 1 18:49:28 UTC 2017 - toddrme2178@gmail.com + +- Add literal python-xdg provides. + +------------------------------------------------------------------- +Mon Apr 24 17:35:04 UTC 2017 - toddrme2178@gmail.com + +- Fix source url +- Various small spec file cleanups. + +------------------------------------------------------------------- +Thu Apr 13 09:16:00 UTC 2017 - aloisio@gmx.com + +- Converted to single-spec +- Updated source URL + +------------------------------------------------------------------- +Thu Oct 22 09:16:26 UTC 2015 - toddrme2178@gmail.com + +- It doesn't need a shared-mime-info version that high. + The unit tests just compare against pre-set values based on that + version. So remove BuildRequires version check and disable + tests for earlier openSUSE versions. + +------------------------------------------------------------------- +Sun Oct 11 10:30:31 UTC 2015 - matwey.kornilov@gmail.com + +- Provide/Obsolete python-xdg + For some reason there is already python-xdg which should be + python-pyxdg according to guidelines (pypi name is pyxdg). + +------------------------------------------------------------------- +Sat Oct 10 19:37:34 UTC 2015 - matwey.kornilov@gmail.com + +- Initial version + diff --git a/python-pyxdg.spec b/python-pyxdg.spec new file mode 100644 index 0000000..3c70fe8 --- /dev/null +++ b/python-pyxdg.spec @@ -0,0 +1,74 @@ +# +# spec file for package python-pyxdg +# +# Copyright (c) 2023 SUSE LLC +# +# 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-%{**}} +%define oldpython python +%{?sle15_python_module_pythons} +Name: python-pyxdg +Version: 0.28 +Release: 0 +Summary: Implementations of freedesktop.org standards in python +License: LGPL-2.1-only +URL: https://freedesktop.org/wiki/Software/pyxdg +Source0: https://files.pythonhosted.org/packages/source/p/pyxdg/pyxdg-%{version}.tar.gz +# Test data: examples +Source1: https://gitlab.freedesktop.org/xdg/pyxdg/-/archive/rel-%{version}/pyxdg-rel-%{version}.tar.gz?path=test/example#/pyxdg-%{version}-test-example.tar.gz +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: hicolor-icon-theme +BuildRequires: python-rpm-macros +BuildRequires: shared-mime-info +Requires: hicolor-icon-theme +Requires: shared-mime-info +Conflicts: python-xdg +Obsoletes: python-xdg +BuildArch: noarch +%python_subpackages + +%description +PyXDG is a python library to access freedesktop.org standards. Currently supported are: + * Base Directory Specification Version 0.6 + * Menu Specification Version 1.0 + * Desktop Entry Specification Version 1.0 + * Icon Theme Specification Version 0.8 + * Recent File Spec 0.2 + * Shared-MIME-Database Specification 0.13 + +%prep +%setup -q -n pyxdg-%{version} -b 1 +%autopatch -p1 +cp -r ../pyxdg-rel-%{version}-test-example/test/example test/ + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest test/test*.py -v + +%files %{python_files} +%license COPYING +%doc README AUTHORS ChangeLog +%{python_sitelib}/xdg +%{python_sitelib}/pyxdg-%{version}-py*.egg-info + +%changelog diff --git a/pyxdg-0.28-test-example.tar.gz b/pyxdg-0.28-test-example.tar.gz new file mode 100644 index 0000000..4d3aa2a --- /dev/null +++ b/pyxdg-0.28-test-example.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:269c24fe89eee73b9dcc302f0e1cb9987cbb639acf9f9d1d3d1f14089cc771ad +size 8724 diff --git a/pyxdg-0.28.tar.gz b/pyxdg-0.28.tar.gz new file mode 100644 index 0000000..1940cbe --- /dev/null +++ b/pyxdg-0.28.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3267bb3074e934df202af2ee0868575484108581e6f3cb006af1da35395e88b4 +size 77776