Update to 3.11
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
184f220db9
commit
aa358f032d
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,3 +3,4 @@ ply-3.3.tar.gz
|
||||
/ply-3.6.tar.gz
|
||||
/ply-3.8.tar.gz
|
||||
/ply-3.9.tar.gz
|
||||
/ply-3.11.tar.gz
|
||||
|
||||
@ -1,15 +1,9 @@
|
||||
%global modname ply
|
||||
|
||||
%if 0%{?fedora} || 0%{?rhel} >= 8
|
||||
%bcond_without python3
|
||||
%else
|
||||
%bcond_with python3
|
||||
%endif
|
||||
|
||||
Name: python-%{modname}
|
||||
Summary: Python Lex-Yacc
|
||||
Version: 3.9
|
||||
Release: 8%{?dist}
|
||||
Version: 3.11
|
||||
Release: 1%{?dist}
|
||||
License: BSD
|
||||
URL: http://www.dabeaz.com/ply/
|
||||
Source0: http://www.dabeaz.com/ply/%{modname}-%{version}.tar.gz
|
||||
@ -51,7 +45,6 @@ essential features:
|
||||
|
||||
Python 2 version.
|
||||
|
||||
%if %{with python3}
|
||||
%package -n python3-%{modname}
|
||||
Summary: Python Lex-Yacc
|
||||
%{?python_provide:%python_provide python3-%{modname}}
|
||||
@ -73,71 +66,55 @@ essential features:
|
||||
component of some larger system.
|
||||
|
||||
Python 3 version.
|
||||
%endif # with python3
|
||||
|
||||
%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}
|
||||
#mv %{modname}-%{version} python2
|
||||
find example/ -type f -executable -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
|
||||
rm -rf *.egg-info
|
||||
|
||||
%if %{with python3}
|
||||
cp -ai python2 python3
|
||||
%endif # with python3
|
||||
#if %{with python3}
|
||||
#cp -ai python2 python3
|
||||
#endif # with python3
|
||||
|
||||
%build
|
||||
pushd python2
|
||||
%py2_build
|
||||
popd
|
||||
|
||||
%if 0%{?with_python3}
|
||||
pushd python3
|
||||
%py3_build
|
||||
popd
|
||||
%endif # with python3
|
||||
%py2_build
|
||||
%py3_build
|
||||
|
||||
%install
|
||||
pushd python2
|
||||
%py2_install
|
||||
popd
|
||||
|
||||
%if %{with python3}
|
||||
pushd python3
|
||||
%py3_install
|
||||
popd
|
||||
%endif # with python3
|
||||
%py2_install
|
||||
%py3_install
|
||||
|
||||
%check
|
||||
pushd python2/test
|
||||
pushd 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 # with python3
|
||||
|
||||
%files -n python2-%{modname}
|
||||
%doc python2/CHANGES
|
||||
%doc CHANGES README.md
|
||||
%{python2_sitelib}/%{modname}/
|
||||
%{python2_sitelib}/%{modname}-%{version}-*.egg-info/
|
||||
|
||||
%if %{with python3}
|
||||
%files -n python3-%{modname}
|
||||
%doc python3/CHANGES
|
||||
%doc CHANGES README.md
|
||||
%{python3_sitelib}/%{modname}/
|
||||
%{python3_sitelib}/%{modname}-%{version}-*.egg-info/
|
||||
%endif # with python3
|
||||
|
||||
%changelog
|
||||
* Fri Jan 11 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.11-1
|
||||
- Update to 3.11
|
||||
|
||||
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.9-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user