python-Automat/python-Automat.spec
2020-02-26 17:44:10 +08:00

67 lines
2.3 KiB
RPMSpec

Name: python-Automat
Version: 0.6.0
Release: 4
Summary: A library for concise, idiomatic Python expression of finite-state automata
License: MIT
URL: https://github.com/glyph/Automat
Source0: https://files.pythonhosted.org/packages/source/A/Automat/Automat-%{version}.tar.gz
BuildArch: noarch
%{?python_enable_dependency_generator}
%description
python-Automat is a library for concise, idiomatic Python expression of finite-state automata.
It provides a self-service finite-state machines for the programmer on the go.
%package -n python2-Automat
Summary: A library for concise, idiomatic Python expression of finite-state automata
%{?python_provide:%python_provide python2-Automat}
BuildRequires: python2-devel python2dist(attrs) python2dist(graphviz) > 0.5.1 python2dist(m2r) python2dist(six)
BuildRequires: python2dist(setuptools) python2dist(setuptools-scm) python2dist(twisted) >= 16.1.1
%description -n python2-Automat
python-Automat is a library for concise, idiomatic Python expression of finite-state automata.
It provides a self-service finite-state machines for the programmer on the go.
%package -n python3-Automat
Summary: A library for concise, idiomatic Python expression of finite-state automata
%{?python_provide:%python_provide python3-Automat}
BuildRequires: python3-devel python3dist(attrs) python3dist(graphviz) > 0.5.1 python3dist(m2r) python3dist(six)
BuildRequires: python3dist(setuptools) python3dist(setuptools-scm) python3dist(twisted) >= 16.1.1
%description -n python3-Automat
python-Automat is a library for concise, idiomatic Python expression of finite-state automata.
It provides a self-service finite-state machines for the programmer on the go.
%prep
%autosetup -n Automat-%{version}
rm -rf Automat.egg-info
%build
%py2_build
%py3_build
%install
%py2_install
rm -rf %{buildroot}%{_bindir}/*
%py3_install
%check
%{__python2} setup.py test
%{__python3} setup.py test
%files -n python2-Automat
%doc LICENSE README.md
%{python2_sitelib}/{automat,Automat-%{version}-py?.?.egg-info}
%files -n python3-Automat
%doc LICENSE README.md
%{_bindir}/automat-visualize
%{python3_sitelib}/{automat,Automat-%{version}-py?.?.egg-info}
%changelog
* Tue Feb 25 2020 Ling Yang <lingyang2@huawei.com> - 0.6.0-4
- Package Init