Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
2fb2714469
!12 Update to 0.28
From: @starlet-dx 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2023-06-09 08:36:18 +00:00
starlet-dx
48b27f9d7c Update to 0.28 2023-06-09 16:04:55 +08:00
openeuler-ci-bot
69b7174e99
!9 Fix compatibility with python 3.8.4
From: @zhang-liang-pengkun 
Reviewed-by: @Charlie_li 
Signed-off-by: @Charlie_li
2023-01-17 07:35:01 +00:00
zhangliangpengkun
2ddaae33a5 Fix compatibility with python 3.8.4
Signed-off-by: zhangliangpengkun <zhangliangpengkun@xfusion.com>
2023-01-17 11:22:50 +08:00
openeuler-ci-bot
723d10824e
!4 Fix several ResourceWarnings: unclosed file
From: @zhang-liang-pengkun 
Reviewed-by: @Charlie_li 
Signed-off-by: @Charlie_li
2023-01-13 10:53:06 +00:00
zhangliangpengkun
545cf6563f Fix several ResourceWarnings: unclosed file
Signed-off-by: zhangliangpengkun <zhangliangpengkun@xfusion.com>
2023-01-13 15:50:54 +08:00
openeuler-ci-bot
4f632a5223 !3 disable python2
From: @jackie_wu123
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2020-11-02 14:10:06 +08:00
jackie_wu
74b4542264 disable python2 2020-11-02 11:41:35 +08:00
openeuler-ci-bot
3f8fba0dd1 !2 add yaml file
Merge pull request !2 from sugarfillet/master
2020-05-15 10:36:06 +08:00
sugarfillet
4371cfea2a add yaml file 2020-05-08 15:56:09 +08:00
5 changed files with 32 additions and 27 deletions

Binary file not shown.

Binary file not shown.

BIN
pyxdg-0.28.tar.gz Normal file

Binary file not shown.

View File

@ -1,10 +1,13 @@
Name: pyxdg
Version: 0.26
Release: 2
Version: 0.28
Release: 1
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
# 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
BuildRequires: hicolor-icon-theme shared-mime-info
@ -12,52 +15,50 @@ BuildRequires: hicolor-icon-theme shared-mime-info
%description
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
Summary: Python3 library to access freedesktop APIs
BuildRequires: python3-devel python3-nose
%{?python_provide:%python_provide python3-pyxdg}
BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_pkgversion}-setuptools
BuildRequires: python%{python3_pkgversion}-pytest
%description -n python3-pyxdg
%{?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
%setup -q -b 1
cp -r ../pyxdg-rel-%{version}-test-example/test/example test/
%build
%py2_build
%py3_build
%install
%py2_install
%py3_install
%check
nosetests-%{python2_version} || :
nosetests-%{python3_version} || :
export PYTHONPATH=%{buildroot}%{python3_sitelib}
pytest test/test*.py -v
%files -n python2-pyxdg
%{python2_sitelib}/xdg
%{python2_sitelib}/pyxdg-*.egg-info
%files -n python%{python3_pkgversion}-pyxdg
%license COPYING
%doc AUTHORS ChangeLog README TODO
%files -n python3-pyxdg
%{python3_sitelib}/xdg
%{python3_sitelib}/pyxdg-*.egg-info
%license COPYING
%doc AUTHORS ChangeLog README TODO
%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
- Package Init

4
pyxdg.yaml Normal file
View File

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