Blob Blame History Raw
# Created by pyp2rpm-3.3.0
%global pypi_name Automat

%global common_description %{expand:
Automat is a library for concise, idiomatic Python expression of finite-state
automata (particularly deterministic finite-state transducers).}

%bcond_without tests

Name:           python-%{pypi_name}
Version:        0.7.0
Release:        1%{?dist}
Summary:        Self-service finite-state machines for the programmer on the go

License:        MIT
BuildArch:      noarch



%package -n     python2-%{pypi_name}
Summary:        %{summary}
%{?python_provide:%python_provide python2-%{pypi_name}}

BuildRequires:  python2-devel
BuildRequires:  python2dist(attrs)
BuildRequires:  python2dist(graphviz) > 0.5.1
BuildRequires:  python2dist(m2r)
BuildRequires:  python2dist(setuptools)
BuildRequires:  python2dist(setuptools-scm)
BuildRequires:  python2dist(six)
%if %{with tests}
BuildRequires:  python2dist(twisted) >= 16.1.1

%description -n python2-%{pypi_name}

%package -n     python3-%{pypi_name}
Summary:        %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}

BuildRequires:  python3-devel
BuildRequires:  python3dist(attrs)
BuildRequires:  python3dist(graphviz) > 0.5.1
BuildRequires:  python3dist(m2r)
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(setuptools-scm)
BuildRequires:  python3dist(six)
%if %{with tests}
BuildRequires:  python3dist(twisted) >= 16.1.1

%description -n python3-%{pypi_name}

%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info


# Must do the default python version install last because
# the scripts in /usr/bin are overwritten with every install.
rm -rf %{buildroot}%{_bindir}/*

%if %{with tests}
%{__python2} test
%{__python3} test

%files -n python2-%{pypi_name}
%license LICENSE

%files -n python3-%{pypi_name}
%license LICENSE

* Mon Mar 11 2019 Robert-André Mauchin <> - 0.7.0-1
- Release 0.7.0 (#1687495)

* Fri Mar 08 2019 Jeroen van Meeuwen <> - 0.6.0-4
- Add bcond_without tests
* Fri Jul 13 2018 Fedora Release Engineering <> - 0.6.0-3
- Rebuilt for

* Tue Jun 19 2018 Miro Hrončok <> - 0.6.0-2
- Rebuilt for Python 3.7

* Fri Apr 13 2018 Robert-André Mauchin <> - 0.6.0-1
- Initial package.