a8406018 |
%{!?python2_sitelib: %define python2_sitelib %(python2 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")} |
fda4104f |
%{!?python3_sitelib: %define python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")} |
279fb934 |
Summary: Python C parser
Name: python-pycparser |
a8406018 |
Version: 2.17 |
2d879f6b |
Release: 3%{?dist} |
279fb934 |
Url: https://pypi.python.org/pypi/pycparser
License: BSD
Group: Development/Languages/Python |
fda4104f |
Vendor: VMware, Inc.
Distribution: Photon |
a8406018 |
Source0: https://pypi.python.org/packages/source/p/pycparser/pycparser-%{version}.tar.gz
%define sha1 pycparser=afc1f70c6fce0e196dece88d6da3b8d5b2af6297 |
279fb934 |
|
fda4104f |
BuildRequires: python2
BuildRequires: python2-libs
BuildRequires: python2-devel
BuildRequires: python-setuptools |
279fb934 |
Requires: python2
Requires: python2-libs |
421d1f6b |
BuildArch: noarch |
279fb934 |
%description
pycparser is a complete parser of the C language, written in pure Python using the PLY parsing library. It parses C code into an AST and can serve as a front-end for C compilers or analysis tools.
|
fda4104f |
%package -n python3-pycparser
Summary: python-pycparser
BuildRequires: python3
BuildRequires: python3-devel
BuildRequires: python3-libs
Requires: python3
Requires: python3-libs
%description -n python3-pycparser
Python 3 version.
|
279fb934 |
%prep
%setup -q -n pycparser-%{version}
%build |
a8406018 |
python2 setup.py build |
fda4104f |
python3 setup.py build |
279fb934 |
%install |
2d879f6b |
python2 setup.py install --prefix=%{_prefix} --root=%{buildroot} |
fda4104f |
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} |
279fb934 |
|
d5255775 |
%check
cd tests |
2d879f6b |
python2 all_tests.py |
d5255775 |
|
279fb934 |
%files
%defattr(-,root,root) |
a8406018 |
%{python2_sitelib}/* |
279fb934 |
|
fda4104f |
%files -n python3-pycparser
%defattr(-,root,root,-)
%{python3_sitelib}/* |
279fb934 |
%changelog |
2d879f6b |
* Thu Jun 01 2017 Dheeraj Shetty <dheerajs@vmware.com> 2.17-3
- Use python2 instead of python |
421d1f6b |
* Tue Apr 25 2017 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2.17-2
- Fix arch |
a8406018 |
* Thu Mar 23 2017 Xiaolin Li <xiaolinl@vmware.com> 2.17-1
- Updated to version 2.17. |
fda4104f |
* Thu Feb 02 2017 Xiaolin Li <xiaolinl@vmware.com> 2.14-4
- Added python3 site-packages.
* Mon Oct 04 2016 ChangLee <changlee@vmware.com> 2.14-3
- Modified %check
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2.14-2
- GA - Bump release of all rpms
* Wed Nov 18 2015 Divya Thaluru <dthaluru@vmware.com> 2.14-1
- Initial packaging for Photon |