3 %bcond_without python2 # CPython 2.x module
4 %bcond_without python3 # CPython 3.x module
6 Summary: An intrinsic PEG Parser-Interpreter for Python
11 Group: Libraries/Python
12 Source0: http://fdik.org/pyPEG2/pyPEG2-%{version}.tar.gz
13 # Source0-md5: 2ff44bc843c61ccd3951ef66a9e4a2b0
14 URL: http://fdik.org/pyPEG2
16 BuildRequires: python-modules >= 1:2.7
17 BuildRequires: python-setuptools
20 BuildRequires: python3-modules >= 1:3.3
21 BuildRequires: python3-setuptools
23 BuildRequires: rpm-pythonprov
24 BuildRequires: rpmbuild(macros) >= 1.714
25 Requires: python-modules >= 1:2.7
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 An intrinsic PEG Parser-Interpreter for Python.
32 %package -n python3-pyPEG2
33 Summary: Python 3 bindings for an intrinsic PEG Parser-Interpreter for Python
34 Group: Libraries/Python
35 Requires: python3-modules >= 1:3.3
37 %description -n python3-pyPEG2
38 An intrinsic PEG Parser-Interpreter for Python.
41 %setup -q -n pyPEG2-%{version}
53 rm -rf $RPM_BUILD_ROOT
66 rm -rf $RPM_BUILD_ROOT
70 %defattr(644,root,root,755)
71 %doc CHANGES.txt README.txt TODO.txt
72 %{py_sitescriptdir}/pypeg2
73 %{py_sitescriptdir}/pyPEG2-%{version}-py*.egg-info
77 %files -n python3-pyPEG2
78 %defattr(644,root,root,755)
79 %doc CHANGES.txt README.txt TODO.txt
80 %{py3_sitescriptdir}/pypeg2
81 %{py3_sitescriptdir}/pyPEG2-%{version}-py*.egg-info