Name: pyxdg Version: 0.28 Release: %autorelease Summary: Python library to access freedesktop.org standards License: LGPL-2.0-only URL: http://freedesktop.org/Software/pyxdg Source0: %pypi_source # Upstream did not include the test/examples directory in the source tarball # This tarball is a copy of the directory from https://cgit.freedesktop.org/xdg/pyxdg/ Source1: pyxdg-test-example.tar.gz BuildArch: noarch # These are needed for the nose tests. BuildRequires: hicolor-icon-theme BuildRequires: shared-mime-info %description PyXDG is a python library to access freedesktop.org standards. %package -n python%{python3_pkgversion}-pyxdg Summary: Python3 library to access freedesktop.org standards BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools %if %{with check} # These are needed for the nose tests. BuildRequires: python%{python3_pkgversion}-nose %endif %{?python_provide:%python_provide python%{python3_pkgversion}-pyxdg} %description -n python%{python3_pkgversion}-pyxdg PyXDG is a python library to access freedesktop.org standards. This package contains a Python 3 version of PyXDG. %prep %setup -q -a 1 %build %py3_build %install %py3_install %check # icon-test currently fails # https://bugs.freedesktop.org/show_bug.cgi?id=104846 nosetests-%{python3_version} || : %files -n python%{python3_pkgversion}-pyxdg %license COPYING %doc AUTHORS ChangeLog README TODO %{python3_sitelib}/xdg %{python3_sitelib}/pyxdg-*.egg-info %changelog %autochangelog