Blame python-Automat.spec

2bd5ba
# Created by pyp2rpm-3.3.0
2bd5ba
%global pypi_name Automat
2bd5ba
2bd5ba
%global common_description %{expand:
2bd5ba
Automat is a library for concise, idiomatic Python expression of finite-state 
2bd5ba
automata (particularly deterministic finite-state transducers).}
2bd5ba
2bd5ba
Name:           python-%{pypi_name}
2bd5ba
Version:        0.6.0
2bd5ba
Release:        1%{?dist}
2bd5ba
Summary:        Self-service finite-state machines for the programmer on the go
2bd5ba
2bd5ba
License:        MIT
2bd5ba
URL:            https://github.com/glyph/Automat
2bd5ba
Source0:        https://files.pythonhosted.org/packages/source/A/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
2bd5ba
BuildArch:      noarch
2bd5ba
 
2bd5ba
%{?python_enable_dependency_generator}
2bd5ba
 
2bd5ba
%description
2bd5ba
Automat is a library for concise, idiomatic Python expression of finite-state 
2bd5ba
automata (particularly deterministic finite-state transducers).
2bd5ba
2bd5ba
2bd5ba
%package -n     python2-%{pypi_name}
2bd5ba
Summary:        %{summary}
2bd5ba
%{?python_provide:%python_provide python2-%{pypi_name}}
2bd5ba
 
2bd5ba
BuildRequires:  python2-devel
2bd5ba
BuildRequires:  python2dist(attrs)
2bd5ba
BuildRequires:  python2dist(graphviz) > 0.5.1
2bd5ba
BuildRequires:  python2dist(m2r)
2bd5ba
BuildRequires:  python2dist(setuptools)
2bd5ba
BuildRequires:  python2dist(setuptools-scm)
2bd5ba
BuildRequires:  python2dist(six)
2bd5ba
BuildRequires:  python2dist(twisted) >= 16.1.1
2bd5ba
2bd5ba
%description -n python2-%{pypi_name}
2bd5ba
%{common_description}
2bd5ba
2bd5ba
2bd5ba
%package -n     python3-%{pypi_name}
2bd5ba
Summary:        %{summary}
2bd5ba
%{?python_provide:%python_provide python3-%{pypi_name}}
2bd5ba
 
2bd5ba
BuildRequires:  python3-devel
2bd5ba
BuildRequires:  python3dist(attrs)
2bd5ba
BuildRequires:  python3dist(graphviz) > 0.5.1
2bd5ba
BuildRequires:  python3dist(m2r)
2bd5ba
BuildRequires:  python3dist(setuptools)
2bd5ba
BuildRequires:  python3dist(setuptools-scm)
2bd5ba
BuildRequires:  python3dist(six)
2bd5ba
BuildRequires:  python3dist(twisted) >= 16.1.1
2bd5ba
2bd5ba
%description -n python3-%{pypi_name}
2bd5ba
%{common_description}
2bd5ba
2bd5ba
2bd5ba
%prep
2bd5ba
%autosetup -n %{pypi_name}-%{version}
2bd5ba
# Remove bundled egg-info
2bd5ba
rm -rf %{pypi_name}.egg-info
2bd5ba
2bd5ba
2bd5ba
%build
2bd5ba
%py2_build
2bd5ba
%py3_build
2bd5ba
2bd5ba
2bd5ba
%install
2bd5ba
# Must do the default python version install last because
2bd5ba
# the scripts in /usr/bin are overwritten with every setup.py install.
2bd5ba
%py2_install
2bd5ba
rm -rf %{buildroot}%{_bindir}/*
2bd5ba
%py3_install
2bd5ba
2bd5ba
2bd5ba
%check
2bd5ba
%{__python2} setup.py test
2bd5ba
%{__python3} setup.py test
2bd5ba
2bd5ba
2bd5ba
%files -n python2-%{pypi_name}
2bd5ba
%license LICENSE
2bd5ba
%doc README.md
2bd5ba
%{python2_sitelib}/automat
2bd5ba
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
2bd5ba
2bd5ba
2bd5ba
%files -n python3-%{pypi_name}
2bd5ba
%license LICENSE
2bd5ba
%doc README.md
2bd5ba
%{_bindir}/automat-visualize
2bd5ba
%{python3_sitelib}/automat
2bd5ba
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
2bd5ba
2bd5ba
2bd5ba
%changelog
2bd5ba
* Fri Apr 13 2018 Robert-André Mauchin <zebob.m@gmail.com> - 0.6.0-1
2bd5ba
- Initial package.