Init package
This commit is contained in:
parent
2067e12534
commit
d39b21f59d
BIN
python-speg-877acdd.tar.gz
Normal file
BIN
python-speg-877acdd.tar.gz
Normal file
Binary file not shown.
44
python-speg.spec
Normal file
44
python-speg.spec
Normal file
@ -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 <misaka00251@misakanet.cn> - 0.3-1
|
||||||
|
- Init package
|
||||||
Loading…
x
Reference in New Issue
Block a user