db528c9
%{?python_enable_dependency_generator}
f4836dd
%global py2support 0
f4836dd
%global srcname speg
f4836dd
%global commit 877acddfd5ac5ae8b4a4592d045e74e108477643
f4836dd
%global shortcommit %(c=%{commit}; echo ${c:0:7})
f4836dd
f4836dd
Name:           python-%{srcname}
f4836dd
Version:        0.3
8c827fb
Release:        19.git%{shortcommit}%{?dist}
f4836dd
Summary:        A PEG-based parser interpreter with memoization (in time)
f4836dd
License:        MIT
f4836dd
URL:            https://github.com/avakar/speg
f4836dd
Source0:        https://github.com/avakar/speg/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
f4836dd
BuildArch:      noarch
f4836dd
f4836dd
%description
f4836dd
A PEG-based parser interpreter with memoization.
f4836dd
f4836dd
%if %{py2support}
f4836dd
%package -n python2-%{srcname}
f4836dd
Summary:        %{summary}
db528c9
BuildRequires:  python2-devel
db528c9
BuildRequires:  python2-setuptools
f4836dd
%{?python_provide:%python_provide python2-%{srcname}}
f4836dd
f4836dd
%description -n python2-%{srcname}
f4836dd
A PEG-based parser interpreter with memoization.
f4836dd
%endif
f4836dd
f4836dd
%package -n python3-%{srcname}
f4836dd
Summary:        %{summary}
db528c9
BuildRequires:  python3-devel
db528c9
BuildRequires:  python3-setuptools
f4836dd
%{?python_provide:%python_provide python3-%{srcname}}
f4836dd
f4836dd
%description -n python3-%{srcname}
f4836dd
A PEG-based parser interpreter with memoization.
f4836dd
f4836dd
%prep
f4836dd
%autosetup -n %{srcname}-%{commit}
f4836dd
f4836dd
%build
f4836dd
%if %{py2support}
f4836dd
%py2_build
f4836dd
%endif
f4836dd
%py3_build
f4836dd
f4836dd
%install
f4836dd
%if %{py2support}
f4836dd
%py2_install
f4836dd
%endif
f4836dd
%py3_install
f4836dd
f4836dd
# Note that there is no %%files section for the unversioned python module
f4836dd
%if %{py2support}
f4836dd
%files -n python2-%{srcname}
f4836dd
%license LICENSE
f4836dd
%doc README.md
f4836dd
%{python2_sitelib}/%{srcname}-*.egg-info/
f4836dd
%{python2_sitelib}/%{srcname}/
f4836dd
%endif
f4836dd
f4836dd
%files -n python3-%{srcname}
f4836dd
%license LICENSE
f4836dd
%doc README.md
f4836dd
%{python3_sitelib}/%{srcname}-*.egg-info/
f4836dd
%{python3_sitelib}/%{srcname}/
f4836dd
f4836dd
%changelog
8c827fb
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-19.git877acdd
8c827fb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
8c827fb
2fea590
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 0.3-18.git877acdd
2fea590
- Rebuilt for Python 3.12
2fea590
f677e7f
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-17.git877acdd
f677e7f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
f677e7f
cabb782
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-16.git877acdd
cabb782
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
cabb782
9e6d675
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.3-15.git877acdd
9e6d675
- Rebuilt for Python 3.11
9e6d675
d9e92de
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-14.git877acdd
d9e92de
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
d9e92de
9f47cf8
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-13.git877acdd
9f47cf8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
9f47cf8
7707820
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.3-12.git877acdd
7707820
- Rebuilt for Python 3.10
7707820
1a4805b
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-11.git877acdd
1a4805b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
1a4805b
d56fab1
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-10.git877acdd
d56fab1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
d56fab1
bc2db36
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.3-9.git877acdd
bc2db36
- Rebuilt for Python 3.9
bc2db36
ea76c84
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-8.git877acdd
ea76c84
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
ea76c84
f5dad98
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.3-7.git877acdd
f5dad98
- Rebuilt for Python 3.8.0rc1 (#1748018)
f5dad98
c80ba4e
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.3-6.git877acdd
c80ba4e
- Rebuilt for Python 3.8
c80ba4e
7f237bc
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-5.git877acdd
7f237bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
7f237bc
d02c6c8
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-4.git877acdd
d02c6c8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
d02c6c8
db528c9
* Fri Jan 04 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.3-3.git877acdd
db528c9
- Enable python dependency generator
db528c9
f4836dd
* Thu Jan  3 2019 Tom Callaway <spot@fedoraproject.org> - 0.3-2.git877acdd
f4836dd
- disable py2support
f4836dd
f4836dd
* Wed Jan  2 2019 Tom Callaway <spot@fedoraproject.org> - 0.3-1.git877acdd
f4836dd
- new package
f4836dd