| |
@@ -2,15 +2,13 @@
|
| |
|
| |
Name: python-simpleparse
|
| |
License: BSD
|
| |
- Group: System Environment/Libraries
|
| |
Summary: A simple and fast parser generator
|
| |
- Version: 2.1.1
|
| |
- Release: 17%{?dist}
|
| |
+ Version: 2.2.0
|
| |
+ Release: 1%{?dist}
|
| |
URL: http://launchpad.net/simpleparse
|
| |
- Source0: http://pypi.python.org/packages/source/S/SimpleParse/%{oname}-%{version}.tar.gz
|
| |
- Patch1: %{name}-eols.patch
|
| |
- BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
| |
- BuildRequires: python-devel
|
| |
+ Source0: https://pypi.io/packages/source/S/SimpleParse/%{oname}-%{version}.tar.gz
|
| |
+ BuildRequires: python2-devel
|
| |
+ BuildRequires: python3-devel
|
| |
|
| |
%global _description\
|
| |
SimpleParse is a BSD-licensed Python package providing a simple and fast parser\
|
| |
@@ -18,43 +16,46 @@
|
| |
SimpleParse allows you to generate parsers directly from your EBNF grammar.\
|
| |
\
|
| |
\
|
| |
- # we don't want to provide mxTextTools.so\
|
| |
- %{?filter_setup:\
|
| |
- %filter_provides_in %{python_sitearch}/.*\.so$\
|
| |
- %filter_setup\
|
| |
- }
|
| |
|
| |
%description %_description
|
| |
|
| |
%package -n python2-simpleparse
|
| |
- Summary: %summary
|
| |
+ Summary: %summary
|
| |
%{?python_provide:%python_provide python2-simpleparse}
|
| |
|
| |
%description -n python2-simpleparse %_description
|
| |
|
| |
+ %package -n python3-simpleparse
|
| |
+ Summary: %summary
|
| |
+ %{?python_provide:%python_provide python3-simpleparse}
|
| |
+
|
| |
+ %description -n python3-simpleparse %_description
|
| |
+
|
| |
%prep
|
| |
- %setup -q -n %{oname}-%{version}
|
| |
- %patch1 -p0
|
| |
+ %autosetup -n %{oname}-%{version}
|
| |
|
| |
%build
|
| |
- %{__python} setup.py build
|
| |
+ %py2_build
|
| |
+ %py3_build
|
| |
|
| |
%install
|
| |
- rm -rf %{buildroot}
|
| |
- %{__python} setup.py install --skip-build --root %{buildroot}
|
| |
-
|
| |
-
|
| |
- %clean
|
| |
- rm -rf %{buildroot}
|
| |
+ %py2_install
|
| |
+ %py3_install
|
| |
|
| |
%files -n python2-simpleparse
|
| |
- %defattr(-,root,root,-)
|
| |
- %{python_sitearch}
|
| |
- %exclude %{python_sitearch}/simpleparse/tests
|
| |
- %exclude %{python_sitearch}/simpleparse/examples
|
| |
- %doc license.txt doc examples
|
| |
+ %license license.txt
|
| |
+ %doc doc
|
| |
+ %{python2_sitearch}/*
|
| |
+
|
| |
+ %files -n python3-simpleparse
|
| |
+ %license license.txt
|
| |
+ %doc doc
|
| |
+ %{python3_sitearch}/*
|
| |
|
| |
%changelog
|
| |
+ * Mon Oct 16 2017 Jan Beran <jberan@redhat.com> - 2.2.0-1
|
| |
+ - New version including Python 3 subpackage
|
| |
+
|
| |
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.1.1-17
|
| |
- Python 2 binary package renamed to python2-simpleparse
|
| |
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
|
| |
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1482898