85 lines
3.1 KiB
RPMSpec
85 lines
3.1 KiB
RPMSpec
Name: python-ply
|
|
Version: 3.11
|
|
Release: 1mamba
|
|
Summary: Python Lex & Yacc
|
|
Group: System/Libraries/Python
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: http://www.dabeaz.com/ply/
|
|
Source: http://www.dabeaz.com/ply/ply-%{version}.tar.gz
|
|
License: BSD, LGPL
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: libpython-devel
|
|
## AUTOBUILDREQ-END
|
|
%py_requires
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
%description
|
|
PLY is a straightforward lex/yacc implementation. Here is a list of its essential features:
|
|
* It is implemented entirely in Python.
|
|
* It uses LR-parsing which is reasonably efficient and well suited for larger grammars.
|
|
* PLY provides most of the standard lex/yacc features including support for empty productions, precedence rules, error recovery, and support for ambiguous grammars.
|
|
* PLY is straightforward to use and provides very extensive error checking.
|
|
* PLY doesn't try to do anything more or less than provide the basic lex/yacc functionality. In other words, it's not a large parsing framework or a component of some larger system..
|
|
|
|
%prep
|
|
%setup -q -n ply-%{version}
|
|
|
|
sed -i 's|/usr/local/bin/python|%{__python}|g' $(find . -name "*.py")
|
|
chmod -x example/yply/yply.py example/newclasscalc/calc.py example/classcalc/calc.py example/cleanup.sh
|
|
|
|
%build
|
|
%{__python} setup.py build
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
%{__python} setup.py install \
|
|
--root="%{buildroot}" \
|
|
--install-headers=%{_includedir}/python \
|
|
--install-lib=%{python_sitearch}
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%dir %{python_sitearch}/ply-%{version}-py%{python_version}.egg-info
|
|
%{python_sitearch}/ply-%{version}-py%{python_version}.egg-info/PKG-INFO
|
|
%{python_sitearch}/ply-%{version}-py%{python_version}.egg-info/*.txt
|
|
%dir %{python_sitearch}/ply
|
|
%{python_sitearch}/ply/*.py
|
|
%{python_sitearch}/ply/*.pyc
|
|
#%doc ANNOUNCE CHANGES README TODO example
|
|
|
|
%changelog
|
|
* Mon Feb 26 2018 Automatic Build System <autodist@mambasoft.it> 3.11-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat Feb 04 2017 Automatic Build System <autodist@mambasoft.it> 3.10-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Sep 01 2016 Automatic Build System <autodist@mambasoft.it> 3.9-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat Oct 03 2015 Automatic Build System <autodist@mambasoft.it> 3.8-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat Aug 29 2015 Automatic Build System <autodist@mambasoft.it> 3.7-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Mon Apr 27 2015 Automatic Build System <autodist@mambasoft.it> 3.6-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Apr 23 2015 Automatic Build System <autodist@mambasoft.it> 3.5-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Fri May 17 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 3.4-2mamba
|
|
- python 2.7 mass rebuild
|
|
|
|
* Sat Feb 23 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 3.4-1mamba
|
|
- update to 3.4
|
|
|
|
* Mon Jul 20 2009 gil <puntogil@libero.it> 3.2-1mamba
|
|
- package created by autospec
|