Blame python-Automat.spec

2bd5ba
# Created by pyp2rpm-3.3.0
2bd5ba
%global pypi_name Automat
2bd5ba
2bd5ba
%global common_description %{expand:
Jeroen van Meeuwen (Kolab Systems) f0e32c
Automat is a library for concise, idiomatic Python expression of finite-state
2bd5ba
automata (particularly deterministic finite-state transducers).}
2bd5ba
Jeroen van Meeuwen (Kolab Systems) f0e32c
%bcond_without tests
Jeroen van Meeuwen (Kolab Systems) f0e32c
2bd5ba
Name:           python-%{pypi_name}
2bd5ba
Version:        0.6.0
adf99b
Release:        4%{?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
Jeroen van Meeuwen (Kolab Systems) f0e32c
2bd5ba
%{?python_enable_dependency_generator}
Jeroen van Meeuwen (Kolab Systems) f0e32c
2bd5ba
%description
Jeroen van Meeuwen (Kolab Systems) f0e32c
%{common_description}
2bd5ba
2bd5ba
2bd5ba
%package -n     python2-%{pypi_name}
2bd5ba
Summary:        %{summary}
2bd5ba
%{?python_provide:%python_provide python2-%{pypi_name}}
Jeroen van Meeuwen (Kolab Systems) f0e32c
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)
Jeroen van Meeuwen (Kolab Systems) f0e32c
%if %{with tests}
2bd5ba
BuildRequires:  python2dist(twisted) >= 16.1.1
Jeroen van Meeuwen (Kolab Systems) f0e32c
%endif
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}}
Jeroen van Meeuwen (Kolab Systems) f0e32c
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)
Jeroen van Meeuwen (Kolab Systems) f0e32c
%if %{with tests}
2bd5ba
BuildRequires:  python3dist(twisted) >= 16.1.1
Jeroen van Meeuwen (Kolab Systems) f0e32c
%endif
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
Jeroen van Meeuwen (Kolab Systems) f0e32c
%if %{with tests}
2bd5ba
%{__python2} setup.py test
2bd5ba
%{__python3} setup.py test
Jeroen van Meeuwen (Kolab Systems) f0e32c
%endif
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
adf99b
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-4
adf99b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
adf99b
2ea538
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-3
2ea538
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2ea538
b1dab1
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.6.0-2
b1dab1
- Rebuilt for Python 3.7
b1dab1
2bd5ba
* Fri Apr 13 2018 Robert-André Mauchin <zebob.m@gmail.com> - 0.6.0-1
2bd5ba
- Initial package.