]> git.pld-linux.org Git - packages/python-pyPEG2.git/commitdiff
new (version 2.15.2) auto/th/python-pyPEG2-2.15.2-1
authorJan Palus <atler@pld-linux.org>
Sat, 1 Sep 2018 18:40:02 +0000 (20:40 +0200)
committerJan Palus <atler@pld-linux.org>
Sat, 1 Sep 2018 18:40:02 +0000 (20:40 +0200)
python-pyPEG2.spec [new file with mode: 0644]

diff --git a/python-pyPEG2.spec b/python-pyPEG2.spec
new file mode 100644 (file)
index 0000000..0499fa4
--- /dev/null
@@ -0,0 +1,82 @@
+#
+# Conditional build:
+%bcond_without python2 # CPython 2.x module
+%bcond_without python3 # CPython 3.x module
+
+Summary:       An intrinsic PEG Parser-Interpreter for Python
+Name:          python-pyPEG2
+Version:       2.15.2
+Release:       1
+License:       GPLv2+
+Group:         Libraries/Python
+Source0:       http://fdik.org/pyPEG2/pyPEG2-%{version}.tar.gz
+# Source0-md5: 2ff44bc843c61ccd3951ef66a9e4a2b0
+URL:           http://fdik.org/pyPEG2
+%if %{with python2}
+BuildRequires: python-modules >= 1:2.7
+BuildRequires: python-setuptools
+%endif
+%if %{with python3}
+BuildRequires: python3-modules >= 1:3.3
+BuildRequires: python3-setuptools
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+Requires:      python-modules >= 1:2.7
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+An intrinsic PEG Parser-Interpreter for Python.
+
+%package -n python3-pyPEG2
+Summary:       Python 3 bindings for an intrinsic PEG Parser-Interpreter for Python
+Group:         Libraries/Python
+Requires:      python3-modules >= 1:3.3
+
+%description -n python3-pyPEG2
+An intrinsic PEG Parser-Interpreter for Python.
+
+%prep
+%setup -q -n pyPEG2-%{version}
+
+%build
+%if %{with python2}
+%py_build
+%endif
+
+%if %{with python3}
+%py3_build
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%py_install
+
+%py_postclean
+%endif
+
+%if %{with python3}
+%py3_install
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%files
+%defattr(644,root,root,755)
+%doc CHANGES.txt README.txt TODO.txt
+%{py_sitescriptdir}/pypeg2
+%{py_sitescriptdir}/pyPEG2-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-pyPEG2
+%defattr(644,root,root,755)
+%doc CHANGES.txt README.txt TODO.txt
+%{py3_sitescriptdir}/pypeg2
+%{py3_sitescriptdir}/pyPEG2-%{version}-py*.egg-info
+%endif
This page took 0.155145 seconds and 4 git commands to generate.