pyxdg/pyxdg.spec

59 lines
1.5 KiB
RPMSpec
Raw Normal View History

2019-12-05 16:36:01 +08:00
Name: pyxdg
Version: 0.26
Release: 4
2019-12-05 16:36:01 +08:00
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
2019-12-05 16:36:01 +08:00
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
2020-11-02 11:36:41 +08:00
BuildRequires: python%{python3_pkgversion}-devel
%if %{with check}
2019-12-05 16:36:01 +08:00
2020-11-02 11:36:41 +08:00
BuildRequires: python%{python3_pkgversion}-nose
%endif
%{?python_provide:%python_provide python%{python3_pkgversion}-pyxdg}
%description -n python%{python3_pkgversion}-pyxdg
2019-12-05 16:36:01 +08:00
This package contains a Python 3 version of PyXDG.
%prep
%autosetup -p1
%build
%py3_build
%install
%py3_install
2020-11-02 11:36:41 +08:00
%if %{with check}
2019-12-05 16:36:01 +08:00
%check
nosetests-%{python3_version} || :
2020-11-02 11:36:41 +08:00
%endif
2019-12-05 16:36:01 +08:00
2020-11-02 11:36:41 +08:00
%files -n python%{python3_pkgversion}-pyxdg
2019-12-05 16:36:01 +08:00
%license COPYING
%doc AUTHORS ChangeLog README TODO
%{python3_sitelib}/xdg
%{python3_sitelib}/pyxdg-*.egg-info
%changelog
* Fri Jan 13 2023 zhangliangpengkun<zhangliangpengkun@xfusion.com> - 0.26-4
- Fix several ResourceWarnings: unclosed file
2020-11-02 11:36:41 +08:00
* Wed Oct 21 2020 zhangpeng <zhangpeng228@huawei.com> - 0.26-3
- disable python2
2019-12-05 16:36:01 +08:00
* Thu Nov 28 2019 lihao <lihao129@huawei.com> - 0.26-2
- Package Init