Compare commits

..

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
b2beefaadd
!8 【轻量级 PR】:fix bad date in %changelog
From: @leeffo 
Reviewed-by: @lvying6 
Signed-off-by: @lvying6
2022-12-20 08:44:54 +00:00
openeuler-ci-bot
a4e37c8e9f
!9 【轻量级 PR】:fix bad date in changelog
From: @zhuofeng6 
Reviewed-by: @xiezhipeng1 
Signed-off-by: @xiezhipeng1
2022-10-29 01:48:52 +00:00
zhuofeng
7e09ef8c2a
fix bad date in changelog
Signed-off-by: zhuofeng <zhuofeng2@huawei.com>
2022-10-26 12:36:23 +00:00
loong-C
6fc4902caa
fix bad date in %changelog
![输入图片说明](https://images.gitee.com/uploads/images/2022/0617/112818_8cb9d474_9884780.png "屏幕截图.png")
2022-06-17 03:28:49 +00:00
openeuler-ci-bot
a4b429a977 !5 remove python2
From: @wcc_140409
Reviewed-by: @overweight
Signed-off-by: @overweight
2020-10-30 17:51:47 +08:00
吴超超
054c69b4f6 remove python2 2020-10-30 16:41:14 +08:00
openeuler-ci-bot
9b97e2fd1f !3 update to release 3.11
Merge pull request !3 from tianwei/master
2020-07-25 11:49:51 +08:00
tianwei
997a2a6b8a update python-ply.spec. 2020-07-24 19:54:10 +08:00
tianwei
011db85077 update 2020-07-24 19:52:48 +08:00
tianwei
0d6bd3f903 删除文件 ply-3.10.tar.gz 2020-07-24 19:52:32 +08:00
3 changed files with 26 additions and 56 deletions

Binary file not shown.

BIN
ply-3.11.tar.gz Normal file

Binary file not shown.

View File

@ -16,8 +16,8 @@ Here is a list of its essential features:\
Name: python-%{modname}
Summary: Python Lex-Yacc
Version: 3.10
Release: 1
Version: 3.11
Release: 3
License: BSD
URL: http://www.dabeaz.com/ply/
Source0: http://www.dabeaz.com/ply/%{modname}-%{version}.tar.gz
@ -25,90 +25,60 @@ BuildArch: noarch
%description %{_description}
%package -n python2-%{modname}
Summary: Python Lex-Yacc
%{?python_provide:%python_provide python2-%{modname}}
BuildRequires: python2-devel python2-setuptools
%description -n python2-%{modname} %{_description}
%if %{with python3}
%package -n python3-%{modname}
Summary: Python Lex-Yacc
%{?python_provide:%python_provide python3-%{modname}}
BuildRequires: python3-devel python3-setuptools
%description -n python3-%{modname} %{_description}
%endif
%package_help
%prep
%autosetup -c
mv %{modname}-%{version} python2
find python2/example/ -type f -exec chmod -x {} ';'
find python2/example/ -type f -name '*.py' -exec sed -i \
%autosetup -n %{modname}-%{version}
find example/ -type f -exec chmod -x {} ';'
find example/ -type f -name '*.py' -exec sed -i \
-e '1{\@^#!/usr/bin/env python@d}' -e '1{\@^#!/usr/local/bin/python@d}' \
{} ';'
rm -rf python2/*.egg-info
%if %{with python3}
cp -ai python2 python3
%endif
rm -rf *.egg-info
%build
pushd python2
%py2_build
popd
%if 0%{?with_python3}
pushd python3
%py3_build
popd
%endif
%py3_build
%install
pushd python2
%py2_install
popd
%if %{with python3}
pushd python3
%py3_install
popd
%endif
%py3_install
%check
pushd python2/test
./cleanup.sh
%{__python2} testlex.py
%{__python2} testyacc.py
popd
%if %{with python3}
pushd python3/test
pushd test
./cleanup.sh
%{__python3} testlex.py
%{__python3} testyacc.py
popd
%endif
%files -n python2-%{modname}
%{python2_sitelib}/%{modname}/
%{python2_sitelib}/%{modname}-%{version}-*.egg-info/
%if %{with python3}
%files -n python3-%{modname}
%{python3_sitelib}/%{modname}/
%{python3_sitelib}/%{modname}-%{version}-*.egg-info/
%endif
%files help
%doc python2/CHANGES
%doc python3/CHANGES
%doc CHANGES
%changelog
* Sat Jun 20 hanhui <hanhui15@huawei.com> - 3.10-1
* Wed Oct 26 2022 zhuofeng <zhuofeng2@hhuawei.com> - 3.11-3
- Type:bufix
- CVE:NA
- SUG:NA
- DESC:fix bad date in changelog
* Fri Oct 30 2020 wuchaochao <wuchaochao4@huawei.com> - 3.11-2
- Type:bufix
- CVE:NA
- SUG:NA
- DESC:remove python2
* Fri Jul 24 2020 tianwei <tianwei12@huawei.com> - 3.11-1
- update 3.11
* Sat Jun 20 2020 hanhui <hanhui15@huawei.com> - 3.10-1
- update 3.10
* Mon Sep 16 2019 openEuler Buildteam <buildteam@openeuler.org> - 3.9-9