SPECS/python-antlrpythonruntime/python-antlrpythonruntime.spec
513aa603
 %{!?python2_sitelib: %define python2_sitelib %(python2 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")}
 
 Summary:        ANother Tool for Language Recognition
 Name:           python-antlrpythonruntime
bd40bed4
 Version:        3.1.3
421d1f6b
 Release:        2%{?dist}
513aa603
 License:        BSD
 Group:          Development/Languages/Python
 Vendor:         VMware, Inc.
 Distribution:   Photon
 Url:            http://www.antlr3.org/download/Python/antlr_python_runtime-%{version}.tar.gz
 Source0:        antlr_python_runtime-%{version}.tar.gz
bd40bed4
 %define sha1    antlr_python_runtime=dc095863a254cdf9606784dbd6efb43cf56a6804
513aa603
 
 BuildRequires:  python2
 BuildRequires:  python2-libs
 BuildRequires:  python-setuptools
 BuildRequires:  python2-devel
 BuildRequires:  lapack-devel
 
 Requires:       python2
 Requires:       python2-libs
421d1f6b
 BuildArch:      noarch
513aa603
 
 %description
 ANother Tool for Language Recognition, is a language tool that provides a framework for constructing recognizers, interpreters, compilers, and translators from grammatical descriptions containing actions in a variety of target languages.
 
 %prep
 %setup -q -n antlr_python_runtime-%{version}
 
 %build
 python2 setup.py build
 
 %install
 python2 setup.py install --prefix=%{_prefix} --root=%{buildroot}
 
 %check
 easy_install py
 python2 setup.py test
 
 %files
 %defattr(-,root,root,-)
 %{python2_sitelib}/*
 
 %changelog
421d1f6b
 *   Tue Apr 25 2017 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 3.1.3-2
 -   Fix arch
bd40bed4
 *   Wed Mar 29 2017 Rongrong Qiu <rqiu@vmware.com> 3.1.3-1
 -   upgrade to 3.1.3
513aa603
 *   Thu Mar 02 2017 Xiaolin Li <xiaolinl@vmware.com> 3.1.2-1
 -   Initial packaging for Photon