Name: pyxdg Version: 0.26 Release: 5 Summary: Python library to access freedesktop APIs License: LGPLv2 URL: http://freedesktop.org/Software/pyxdg Source0: https://pypi.io/packages/source/P/PyXDG/pyxdg-%{version}.tar.gz Patch0: Fix-several-ResourceWarnings-unclosed-file.patch Patch1: Fix-compatibility-with-python-3.8.4.patch BuildArch: noarch BuildRequires: hicolor-icon-theme shared-mime-info %description PyXDG package provides a library to invoke APIs that conform to freedesktop.org standards. %package -n python3-pyxdg Summary: Python3 library to access freedesktop APIs BuildRequires: python%{python3_pkgversion}-devel %if %{with check} BuildRequires: python%{python3_pkgversion}-nose %endif %{?python_provide:%python_provide python%{python3_pkgversion}-pyxdg} %description -n python%{python3_pkgversion}-pyxdg This package contains a Python 3 version of PyXDG. %prep %autosetup -p1 %build %py3_build %install %py3_install %if %{with check} %check nosetests-%{python3_version} || : %endif %files -n python%{python3_pkgversion}-pyxdg %license COPYING %doc AUTHORS ChangeLog README TODO %{python3_sitelib}/xdg %{python3_sitelib}/pyxdg-*.egg-info %changelog * Tue Jan 17 2023 zhangliangpengkun - 0.26-5 - Fix-compatibility-with-python-3.8.4.patch * Fri Jan 13 2023 zhangliangpengkun - 0.26-4 - Fix several ResourceWarnings: unclosed file * Wed Oct 21 2020 zhangpeng - 0.26-3 - disable python2 * Thu Nov 28 2019 lihao - 0.26-2 - Package Init