diff --git a/python-speg-877acdd.tar.gz b/python-speg-877acdd.tar.gz new file mode 100644 index 0000000..78abff4 Binary files /dev/null and b/python-speg-877acdd.tar.gz differ diff --git a/python-speg.spec b/python-speg.spec new file mode 100644 index 0000000..9c89dce --- /dev/null +++ b/python-speg.spec @@ -0,0 +1,44 @@ +%{?python_enable_dependency_generator} +%global srcname speg +%global commit 877acddfd5ac5ae8b4a4592d045e74e108477643 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + +Name: python-%{srcname} +Version: 0.3 +Release: 1 +Summary: A PEG-based parser interpreter with memoization (in time) +License: MIT +URL: https://github.com/avakar/speg +Source0: https://github.com/avakar/speg/archive/%{commit}/%{name}-%{shortcommit}.tar.gz +BuildArch: noarch + +%description +A PEG-based parser interpreter with memoization. + +%package -n python3-%{srcname} +Summary: %{summary} +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%{?python_provide:%python_provide python3-%{srcname}} + +%description -n python3-%{srcname} +A PEG-based parser interpreter with memoization. + +%prep +%autosetup -n %{srcname}-%{commit} + +%build +%py3_build + +%install +%py3_install + +%files -n python3-%{srcname} +%license LICENSE +%doc README.md +%{python3_sitelib}/%{srcname}-*.egg-info/ +%{python3_sitelib}/%{srcname}/ + +%changelog +* Fri Jul 15 2022 misaka00251 - 0.3-1 +- Init package