a3be369
%{!?upstream_version: %global upstream_version %{version}%{?milestone}}
a3be369
%global pypi_name automaton
a3be369
a3be369
%global with_doc 1
42f9434
42f9434
Name:           python-%{pypi_name}
e43da5d
Version:        2.2.0
e43da5d
Release:        1%{?dist}
42f9434
Summary:        Friendly state machines for python
42f9434
42f9434
License:        ASL 2.0
42f9434
URL:            https://wiki.openstack.org/wiki/Oslo#automaton
a910e45
Source0:        https://pypi.io/packages/source/a/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
42f9434
BuildArch:      noarch
d81e912
42f9434
%description
42f9434
Friendly state machines for python.
42f9434
dfbc22b
%package -n python3-%{pypi_name}
42f9434
Summary:        Friendly state machines for python
dfbc22b
%{?python_provide:%python_provide python3-%{pypi_name}}
dfbc22b
BuildRequires:  python3-devel
dfbc22b
BuildRequires:  python3-pbr
a3be369
BuildRequires:  git
dfbc22b
BuildRequires:  python3-prettytable
42f9434
dfbc22b
Requires: python3-pbr >= 2.0.0
dfbc22b
Requires: python3-six >= 1.10.0
dfbc22b
Requires: python3-prettytable
a3be369
dfbc22b
%description -n python3-%{pypi_name}
42f9434
Friendly state machines for python.
42f9434
a3be369
%if 0%{?with_doc}
d81e912
%package -n python-%{pypi_name}-doc
d81e912
Summary:        Friendly state machines for python - documentation
a3be369
BuildRequires:  graphviz
dfbc22b
BuildRequires:  python3-sphinx
dfbc22b
BuildRequires:  python3-openstackdocstheme
d81e912
d81e912
%description -n python-%{pypi_name}-doc
d81e912
Friendly state machines for python (documentation)
a3be369
%endif
d81e912
42f9434
%prep
8b123ae
%autosetup -n %{pypi_name}-%{upstream_version} -S git
42f9434
42f9434
%build
dfbc22b
%{py3_build}
42f9434
a3be369
%if 0%{?with_doc}
a3be369
# generate html docs 
dfbc22b
sphinx-build-3 -b html doc/source doc/build/html
dfbc22b
# remove the sphinx-build-3 leftovers
8b123ae
rm -rf doc/build/html/.{doctrees,buildinfo}
393bb3c
%endif
42f9434
a3be369
%install
dfbc22b
%{py3_install}
42f9434
dfbc22b
%files -n python3-%{pypi_name}
8b123ae
%doc README.rst
42f9434
%license LICENSE
dfbc22b
%{python3_sitelib}/%{pypi_name}
dfbc22b
%{python3_sitelib}/*.egg-info
42f9434
a3be369
%if 0%{?with_doc}
d81e912
%files -n python-%{pypi_name}-doc
8b123ae
%doc doc/build/html
d81e912
%license LICENSE
a3be369
%endif
600e984
d81e912
%changelog
e43da5d
* Wed Oct 28 2020 Alfredo Moralejo <amoralej@redhat.com> 2.2.0-1
e43da5d
- Update to upstream version 2.2.0
e43da5d
6ae9a9e
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-2
6ae9a9e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
6ae9a9e
dfbc22b
* Wed Jun 03 2020 Joel Capitao <jcapitao@redhat.com> 2.0.1-1
dfbc22b
- Update to upstream version 2.0.1
dfbc22b
fee4e22
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.17.0-3
fee4e22
- Rebuilt for Python 3.9
fee4e22
994e709
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.17.0-2
994e709
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
994e709
0afb175
* Wed Nov 06 2019 Alfredo Moralejo <amoralej@redhat.com> 1.17.0-1
0afb175
- Update to upstream version 1.17.0
0afb175
d1a7555
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.16.0-4
d1a7555
- Rebuilt for Python 3.8.0rc1 (#1748018)
d1a7555
7c6e914
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.16.0-3
7c6e914
- Rebuilt for Python 3.8
7c6e914
9deb0b3
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.16.0-2
9deb0b3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
9deb0b3
a3be369
* Tue Mar 12 2019 RDO <dev@lists.rdoproject.org> 1.16.0-1
a3be369
- Update to 1.16.0
6e0f45f