python-speg/python-speg.spec
2022-08-29 10:48:20 +08:00

45 lines
1.1 KiB
RPMSpec

%{?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 <misaka00251@misakanet.cn> - 0.3-1
- Init package