b40d0b6
%global oname   SimpleParse
b40d0b6
b40d0b6
Name:           python-simpleparse
b40d0b6
License:        BSD
b40d0b6
Group:          System Environment/Libraries
b40d0b6
Summary:        A simple and fast parser generator
b40d0b6
Version:        2.1.1
57f79b2
Release:        17%{?dist}
b40d0b6
URL:            http://launchpad.net/simpleparse
b40d0b6
Source0:        http://pypi.python.org/packages/source/S/SimpleParse/%{oname}-%{version}.tar.gz
b40d0b6
Patch1:         %{name}-eols.patch
b40d0b6
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
b40d0b6
BuildRequires:  python-devel
b40d0b6
57f79b2
%global _description\
57f79b2
SimpleParse is a BSD-licensed Python package providing a simple and fast parser\
57f79b2
generator using a modified version of the mxTextTools text-tagging engine.\
57f79b2
SimpleParse allows you to generate parsers directly from your EBNF grammar.\
57f79b2
\
57f79b2
\
57f79b2
# we don't want to provide mxTextTools.so\
57f79b2
%{?filter_setup:\
57f79b2
%filter_provides_in %{python_sitearch}/.*\.so$\
57f79b2
%filter_setup\
57f79b2
}
b40d0b6
57f79b2
%description %_description
b40d0b6
57f79b2
%package -n python2-simpleparse
57f79b2
Summary: %summary
57f79b2
%{?python_provide:%python_provide python2-simpleparse}
57f79b2
57f79b2
%description -n python2-simpleparse %_description
b40d0b6
b40d0b6
%prep
b40d0b6
%setup -q -n %{oname}-%{version}
b40d0b6
%patch1 -p0
b40d0b6
b40d0b6
%build
b40d0b6
%{__python} setup.py build
b40d0b6
b40d0b6
%install
b40d0b6
rm -rf %{buildroot}
b40d0b6
%{__python} setup.py install --skip-build --root %{buildroot}
b40d0b6
b40d0b6
b40d0b6
%clean
b40d0b6
rm -rf %{buildroot}
b40d0b6
57f79b2
%files -n python2-simpleparse
b40d0b6
%defattr(-,root,root,-)
b40d0b6
%{python_sitearch}
b40d0b6
%exclude %{python_sitearch}/simpleparse/tests
b40d0b6
%exclude %{python_sitearch}/simpleparse/examples
b40d0b6
%doc license.txt doc examples
b40d0b6
b40d0b6
%changelog
57f79b2
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.1.1-17
57f79b2
- Python 2 binary package renamed to python2-simpleparse
57f79b2
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
57f79b2
66c7521
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-16
66c7521
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
66c7521
80b8494
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-15
80b8494
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
80b8494
Igor Gnatenko 6604a62
* Fri Jul 07 2017 Igor Gnatenko <ignatenko@redhat.com> - 2.1.1-14
Igor Gnatenko 6604a62
- Rebuild due to bug in RPM (RHBZ #1468476)
Igor Gnatenko 6604a62
f43864f
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-13
f43864f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
f43864f
9c7d5cf
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-12
9c7d5cf
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
9c7d5cf
1e5db51
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-11
1e5db51
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
1e5db51
a2f6be8
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-10
a2f6be8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
a2f6be8
6697200
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-9
6697200
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
6697200
054f7e8
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-8
054f7e8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
054f7e8
bb7180e
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-7
bb7180e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
bb7180e
0c06fcd
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-6
0c06fcd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
0c06fcd
04afb9a
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-5
04afb9a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
04afb9a
80e22bb
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-4
80e22bb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
80e22bb
b40d0b6
* Wed Aug 17 2011 Andy Grover <agrover@redhat.com> - 2.1.1-3
b40d0b6
- Add patch to fix some missing EOLs
b40d0b6
b40d0b6
* Wed Aug 17 2011 Andy Grover <agrover@redhat.com> - 2.1.1-2
b40d0b6
- Filter out mxtexttools.so provides
b40d0b6
b40d0b6
* Tue Aug 16 2011 Andy Grover <agrover@redhat.com> - 2.1.1-1
b40d0b6
- Update to latest upstream version
b40d0b6
- Modify URL and Source
b40d0b6
- Remove mx dependency
b40d0b6
b40d0b6
* Tue May 10 2011 Andy Grover <agrover@redhat.com> - 2.0.0-1
b40d0b6
- Initial packaging