Compare commits

..

No commits in common. "2fb2714469cf1b1a68630006f6a65cb3ed97f1d8" and "177df57333ff3e7527bc7f2fc3e22df322f7c167" have entirely different histories.

5 changed files with 27 additions and 32 deletions

BIN
pyxdg-0.26.tar.gz Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,13 +1,10 @@
Name: pyxdg Name: pyxdg
Version: 0.28 Version: 0.26
Release: 1 Release: 2
Summary: Python library to access freedesktop APIs Summary: Python library to access freedesktop APIs
License: LGPLv2 License: LGPLv2
URL: http://freedesktop.org/Software/pyxdg URL: http://freedesktop.org/Software/pyxdg
Source0: https://pypi.io/packages/source/P/PyXDG/pyxdg-%{version}.tar.gz Source0: https://pypi.io/packages/source/P/PyXDG/pyxdg-%{version}.tar.gz
# https://gitlab.freedesktop.org/xdg/pyxdg/-/archive/rel-%{version}/pyxdg-rel-%{version}.tar.gz?path=test/example
Source1: pyxdg-0.28-test-example.tar.gz
BuildArch: noarch BuildArch: noarch
BuildRequires: hicolor-icon-theme shared-mime-info BuildRequires: hicolor-icon-theme shared-mime-info
@ -15,50 +12,52 @@ BuildRequires: hicolor-icon-theme shared-mime-info
%description %description
PyXDG package provides a library to invoke APIs that conform to freedesktop.org standards. PyXDG package provides a library to invoke APIs that conform to freedesktop.org standards.
%package -n python2-pyxdg
Summary: Python2 library to access freedesktop APIs
BuildRequires: python2-devel python2-nose
%{?python_provide:%python_provide python2-pyxdg}
Provides: pyxdg = %{version}-%{release}
Obsoletes: pyxdg < 0.25-10
%description -n python2-pyxdg
This package contains a Python 2 version of PyXDG.
%package -n python3-pyxdg %package -n python3-pyxdg
Summary: Python3 library to access freedesktop APIs Summary: Python3 library to access freedesktop APIs
BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python3-devel python3-nose
BuildRequires: python%{python3_pkgversion}-setuptools %{?python_provide:%python_provide python3-pyxdg}
BuildRequires: python%{python3_pkgversion}-pytest
%{?python_provide:%python_provide python%{python3_pkgversion}-pyxdg} %description -n python3-pyxdg
%description -n python%{python3_pkgversion}-pyxdg
This package contains a Python 3 version of PyXDG. This package contains a Python 3 version of PyXDG.
%prep %prep
%setup -q -b 1 %autosetup -p1
cp -r ../pyxdg-rel-%{version}-test-example/test/example test/
%build %build
%py2_build
%py3_build %py3_build
%install %install
%py2_install
%py3_install %py3_install
%check %check
export PYTHONPATH=%{buildroot}%{python3_sitelib} nosetests-%{python2_version} || :
pytest test/test*.py -v nosetests-%{python3_version} || :
%files -n python%{python3_pkgversion}-pyxdg %files -n python2-pyxdg
%{python2_sitelib}/xdg
%{python2_sitelib}/pyxdg-*.egg-info
%license COPYING %license COPYING
%doc AUTHORS ChangeLog README TODO %doc AUTHORS ChangeLog README TODO
%files -n python3-pyxdg
%{python3_sitelib}/xdg %{python3_sitelib}/xdg
%{python3_sitelib}/pyxdg-*.egg-info %{python3_sitelib}/pyxdg-*.egg-info
%license COPYING
%doc AUTHORS ChangeLog README TODO
%changelog %changelog
* Thu Jun 08 2023 yaoxin <yao_xin001@hoperun.com> - 0.28-1
- Update to 0.28
* Tue Jan 17 2023 zhangliangpengkun<zhangliangpengkun@xfusion.com> - 0.26-5
- Fix-compatibility-with-python-3.8.4.patch
* Fri Jan 13 2023 zhangliangpengkun<zhangliangpengkun@xfusion.com> - 0.26-4
- Fix several ResourceWarnings: unclosed file
* Wed Oct 21 2020 zhangpeng <zhangpeng228@huawei.com> - 0.26-3
- disable python2
* Thu Nov 28 2019 lihao <lihao129@huawei.com> - 0.26-2 * Thu Nov 28 2019 lihao <lihao129@huawei.com> - 0.26-2
- Package Init - Package Init

View File

@ -1,4 +0,0 @@
version_control: pypi
src_repo: pyxdg
tag_prefix: "^v"
seperator: "."