14
0
forked from pool/python-ply

Accepting request 336885 from home:frispete:python

- update to version 3.8:
  * Fixed issues related to Python 3.5. Patch contributed by Barry Warsaw.
- update to version 3.7
  * Fixed problems when reading table files from pickled data.
  * Fixed regression in handling of table modules if specified as module
    objects.   See https://github.com/dabeaz/ply/issues/63
- clean up spec
- add testing rig

OBS-URL: https://build.opensuse.org/request/show/336885
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ply?expand=0&rev=26
This commit is contained in:
2015-10-07 08:00:31 +00:00
committed by Git OBS Bridge
parent 5ddb8cb6ee
commit 2fabc4f1a3
4 changed files with 24 additions and 8 deletions

View File

@@ -18,7 +18,7 @@
%define modname ply
Name: python-%{modname}
Version: 3.6
Version: 3.8
Release: 0
Url: http://www.dabeaz.com/ply/
Summary: Python Lex & Yacc
@@ -67,10 +67,6 @@ It is compatible with both Python 2 and Python 3.
%prep
%setup -q -n %{modname}-%{version}
%patch0 -p1
# clean the test and example directories
find test example -name "*~" -o -name "*.pyc" -o -name "__pycache__" | xargs rm -rf
# remove stray backup files
rm doc/ply.html~ doc/ply.html.bak
# remove unneeded executable bit
chmod -x test/testlex.py
@@ -80,6 +76,12 @@ python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%check
export PYTHONPATH=%{buildroot}%{python_sitelib}
pushd test
python testlex.py
python testyacc.py
%files
%defattr(-,root,root,-)
%doc ANNOUNCE CHANGES TODO