Blame python-lrparsing.spec

Dan Callaghan eb7ff2
%global upstream_name lrparsing
Dan Callaghan eb7ff2
Dan Callaghan eb7ff2
%if ! (0%{?fedora} || 0%{?rhel} > 7)
Dan Callaghan eb7ff2
%bcond_without python2
Dan Callaghan eb7ff2
%else
Dan Callaghan eb7ff2
%bcond_with python2
Dan Callaghan eb7ff2
%endif
Dan Callaghan eb7ff2
Dan Callaghan eb7ff2
Name:           python-%{upstream_name}
Dan Callaghan eb7ff2
Version:        1.0.16
914c8f
Release:        3%{?dist}
Dan Callaghan eb7ff2
Summary:        Python library for constructing LR(1) parsers
Dan Callaghan eb7ff2
License:        AGPLv3+
Dan Callaghan eb7ff2
URL:            http://lrparsing.sourceforge.net/
Dan Callaghan eb7ff2
Source0:        https://downloads.sourceforge.net/%{upstream_name}/%{upstream_name}-%{version}.tar.gz
Dan Callaghan eb7ff2
BuildArch:      noarch
Dan Callaghan eb7ff2
Dan Callaghan eb7ff2
%description
Dan Callaghan eb7ff2
Lrparsing is yet another parser for Python. The things that make lrparsing
Dan Callaghan eb7ff2
different is it combines a LR(1) parser with an easy to use grammar written
Dan Callaghan eb7ff2
using Python expressions, a tokeniser, and comes with extensive (and free!)
Dan Callaghan eb7ff2
documentation.
Dan Callaghan eb7ff2
Dan Callaghan eb7ff2
%if %{with python2}
Dan Callaghan eb7ff2
%package -n python2-%{upstream_name}
Dan Callaghan eb7ff2
Summary:        Python 2 library for constructing LR(1) parsers
Dan Callaghan eb7ff2
%{?python_provide:%python_provide python2-%{upstream_name}}
Dan Callaghan eb7ff2
BuildRequires:  python2-devel
Dan Callaghan eb7ff2
BuildRequires:  python2-setuptools
Dan Callaghan eb7ff2
Dan Callaghan eb7ff2
%description -n python2-%{upstream_name}
Dan Callaghan eb7ff2
Lrparsing is yet another parser for Python. The things that make lrparsing
Dan Callaghan eb7ff2
different is it combines a LR(1) parser with an easy to use grammar written
Dan Callaghan eb7ff2
using Python expressions, a tokeniser, and comes with extensive (and free!)
Dan Callaghan eb7ff2
documentation.
Dan Callaghan eb7ff2
%endif
Dan Callaghan eb7ff2
Dan Callaghan eb7ff2
%package -n python%{python3_pkgversion}-%{upstream_name}
Dan Callaghan eb7ff2
Summary:        Python %{python3_version} library for constructing LR(1) parsers
Dan Callaghan eb7ff2
%{?python_provide:%python_provide python%{python3_pkgversion}-%{upstream_name}}
Dan Callaghan eb7ff2
BuildRequires:  python%{python3_pkgversion}-devel
Dan Callaghan eb7ff2
BuildRequires:  python%{python3_pkgversion}-setuptools
Dan Callaghan eb7ff2
Dan Callaghan eb7ff2
%description -n python%{python3_pkgversion}-%{upstream_name}
Dan Callaghan eb7ff2
Lrparsing is yet another parser for Python. The things that make lrparsing
Dan Callaghan eb7ff2
different is it combines a LR(1) parser with an easy to use grammar written
Dan Callaghan eb7ff2
using Python expressions, a tokeniser, and comes with extensive (and free!)
Dan Callaghan eb7ff2
documentation.
Dan Callaghan eb7ff2
Dan Callaghan eb7ff2
%if 0%{?with_python3_other}
Dan Callaghan eb7ff2
%package -n python%{python3_other_pkgversion}-%{upstream_name}
Dan Callaghan eb7ff2
Summary:        Python %{python3_other_version} library for constructing LR(1) parsers
Dan Callaghan eb7ff2
%{?python_provide:%python_provide python%{python3_other_pkgversion}-%{upstream_name}}
Dan Callaghan eb7ff2
BuildRequires:  python%{python3_other_pkgversion}-devel
Dan Callaghan eb7ff2
BuildRequires:  python%{python3_other_pkgversion}-setuptools
Dan Callaghan eb7ff2
Dan Callaghan eb7ff2
%description -n python%{python3_other_pkgversion}-%{upstream_name}
Dan Callaghan eb7ff2
Lrparsing is yet another parser for Python. The things that make lrparsing
Dan Callaghan eb7ff2
different is it combines a LR(1) parser with an easy to use grammar written
Dan Callaghan eb7ff2
using Python expressions, a tokeniser, and comes with extensive (and free!)
Dan Callaghan eb7ff2
documentation.
Dan Callaghan eb7ff2
%endif
Dan Callaghan eb7ff2
Dan Callaghan eb7ff2
%prep
Dan Callaghan eb7ff2
%setup -q -n %{upstream_name}-%{version}
Dan Callaghan eb7ff2
Dan Callaghan eb7ff2
%build
Dan Callaghan eb7ff2
%if %{with python2}
Dan Callaghan eb7ff2
%py2_build
Dan Callaghan eb7ff2
%endif
Dan Callaghan eb7ff2
%py3_build
Dan Callaghan eb7ff2
%if 0%{?with_python3_other}
Dan Callaghan eb7ff2
%py3_other_build
Dan Callaghan eb7ff2
%endif
Dan Callaghan eb7ff2
Dan Callaghan eb7ff2
%install
Dan Callaghan eb7ff2
%if %{with python2}
Dan Callaghan eb7ff2
%py2_install
Dan Callaghan eb7ff2
%endif
Dan Callaghan eb7ff2
%if 0%{?with_python3_other}
Dan Callaghan eb7ff2
%py3_other_install
Dan Callaghan eb7ff2
%endif
Dan Callaghan eb7ff2
%py3_install
Dan Callaghan eb7ff2
Dan Callaghan eb7ff2
%if %{with python2}
Dan Callaghan eb7ff2
%files -n python2-%{upstream_name}
Dan Callaghan eb7ff2
%doc README.txt ChangeLog.txt
Dan Callaghan eb7ff2
%license agpl-3.0.txt
Dan Callaghan eb7ff2
%{python2_sitelib}/lrparsing.py*
Dan Callaghan eb7ff2
%{python2_sitelib}/lrparsing*.egg-info
Dan Callaghan eb7ff2
%endif
Dan Callaghan eb7ff2
Dan Callaghan eb7ff2
%files -n python%{python3_pkgversion}-%{upstream_name}
Dan Callaghan eb7ff2
%doc README.txt ChangeLog.txt
Dan Callaghan eb7ff2
%license agpl-3.0.txt
Dan Callaghan eb7ff2
%{python3_sitelib}/lrparsing.py
Dan Callaghan eb7ff2
%{python3_sitelib}/__pycache__/lrparsing.*
Dan Callaghan eb7ff2
%{python3_sitelib}/lrparsing*.egg-info
Dan Callaghan eb7ff2
Dan Callaghan eb7ff2
%if 0%{?with_python3_other}
Dan Callaghan eb7ff2
%files -n python%{python3_other_pkgversion}-%{upstream_name}
Dan Callaghan eb7ff2
%doc README.txt ChangeLog.txt
Dan Callaghan eb7ff2
%license agpl-3.0.txt
Dan Callaghan eb7ff2
%{python3_other_sitelib}/lrparsing.py
Dan Callaghan eb7ff2
%{python3_other_sitelib}/__pycache__/lrparsing.*
Dan Callaghan eb7ff2
%{python3_other_sitelib}/lrparsing*.egg-info
Dan Callaghan eb7ff2
%endif
Dan Callaghan eb7ff2
Dan Callaghan eb7ff2
%changelog
914c8f
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.16-3
914c8f
- Rebuilt for Python 3.8.0rc1 (#1748018)
914c8f
2d92ee
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.16-2
2d92ee
- Rebuilt for Python 3.8
2d92ee
Dan Callaghan eb7ff2
* Thu Jul 04 2019 Dan Callaghan <dan.callaghan@opengear.com> - 1.0.16-1
Dan Callaghan eb7ff2
- initial version