|
|
2bd5ba5 |
# Created by pyp2rpm-3.3.0
|
|
|
2bd5ba5 |
%global pypi_name Automat
|
|
|
2bd5ba5 |
|
|
|
2bd5ba5 |
%global common_description %{expand:
|
|
Jeroen van Meeuwen (Kolab Systems) |
a2ec2e4 |
Automat is a library for concise, idiomatic Python expression of finite-state
|
|
|
2bd5ba5 |
automata (particularly deterministic finite-state transducers).}
|
|
|
2bd5ba5 |
|
|
Jeroen van Meeuwen (Kolab Systems) |
a2ec2e4 |
%bcond_without tests
|
|
Jeroen van Meeuwen (Kolab Systems) |
a2ec2e4 |
|
|
|
2bd5ba5 |
Name: python-%{pypi_name}
|
|
|
5b4c6d5 |
Version: 0.7.0
|
|
|
5b4c6d5 |
Release: 1%{?dist}
|
|
|
2bd5ba5 |
Summary: Self-service finite-state machines for the programmer on the go
|
|
|
2bd5ba5 |
|
|
|
2bd5ba5 |
License: MIT
|
|
|
2bd5ba5 |
URL: https://github.com/glyph/Automat
|
|
|
2bd5ba5 |
Source0: https://files.pythonhosted.org/packages/source/A/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
|
|
2bd5ba5 |
BuildArch: noarch
|
|
Jeroen van Meeuwen (Kolab Systems) |
a2ec2e4 |
|
|
|
2bd5ba5 |
%{?python_enable_dependency_generator}
|
|
Jeroen van Meeuwen (Kolab Systems) |
a2ec2e4 |
|
|
|
2bd5ba5 |
%description
|
|
Jeroen van Meeuwen (Kolab Systems) |
a2ec2e4 |
%{common_description}
|
|
|
2bd5ba5 |
|
|
|
2bd5ba5 |
|
|
|
2bd5ba5 |
%package -n python2-%{pypi_name}
|
|
|
2bd5ba5 |
Summary: %{summary}
|
|
|
2bd5ba5 |
%{?python_provide:%python_provide python2-%{pypi_name}}
|
|
Jeroen van Meeuwen (Kolab Systems) |
a2ec2e4 |
|
|
|
2bd5ba5 |
BuildRequires: python2-devel
|
|
|
2bd5ba5 |
BuildRequires: python2dist(attrs)
|
|
|
2bd5ba5 |
BuildRequires: python2dist(graphviz) > 0.5.1
|
|
|
2bd5ba5 |
BuildRequires: python2dist(m2r)
|
|
|
2bd5ba5 |
BuildRequires: python2dist(setuptools)
|
|
|
2bd5ba5 |
BuildRequires: python2dist(setuptools-scm)
|
|
|
2bd5ba5 |
BuildRequires: python2dist(six)
|
|
Jeroen van Meeuwen (Kolab Systems) |
a2ec2e4 |
%if %{with tests}
|
|
|
2bd5ba5 |
BuildRequires: python2dist(twisted) >= 16.1.1
|
|
Jeroen van Meeuwen (Kolab Systems) |
a2ec2e4 |
%endif
|
|
|
2bd5ba5 |
|
|
|
2bd5ba5 |
%description -n python2-%{pypi_name}
|
|
|
2bd5ba5 |
%{common_description}
|
|
|
2bd5ba5 |
|
|
|
2bd5ba5 |
|
|
|
2bd5ba5 |
%package -n python3-%{pypi_name}
|
|
|
2bd5ba5 |
Summary: %{summary}
|
|
|
2bd5ba5 |
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
Jeroen van Meeuwen (Kolab Systems) |
a2ec2e4 |
|
|
|
2bd5ba5 |
BuildRequires: python3-devel
|
|
|
2bd5ba5 |
BuildRequires: python3dist(attrs)
|
|
|
2bd5ba5 |
BuildRequires: python3dist(graphviz) > 0.5.1
|
|
|
2bd5ba5 |
BuildRequires: python3dist(m2r)
|
|
|
2bd5ba5 |
BuildRequires: python3dist(setuptools)
|
|
|
2bd5ba5 |
BuildRequires: python3dist(setuptools-scm)
|
|
|
2bd5ba5 |
BuildRequires: python3dist(six)
|
|
Jeroen van Meeuwen (Kolab Systems) |
a2ec2e4 |
%if %{with tests}
|
|
|
2bd5ba5 |
BuildRequires: python3dist(twisted) >= 16.1.1
|
|
Jeroen van Meeuwen (Kolab Systems) |
a2ec2e4 |
%endif
|
|
|
2bd5ba5 |
|
|
|
2bd5ba5 |
%description -n python3-%{pypi_name}
|
|
|
2bd5ba5 |
%{common_description}
|
|
|
2bd5ba5 |
|
|
|
2bd5ba5 |
|
|
|
2bd5ba5 |
%prep
|
|
|
2bd5ba5 |
%autosetup -n %{pypi_name}-%{version}
|
|
|
2bd5ba5 |
# Remove bundled egg-info
|
|
|
2bd5ba5 |
rm -rf %{pypi_name}.egg-info
|
|
|
2bd5ba5 |
|
|
|
2bd5ba5 |
|
|
|
2bd5ba5 |
%build
|
|
|
2bd5ba5 |
%py2_build
|
|
|
2bd5ba5 |
%py3_build
|
|
|
2bd5ba5 |
|
|
|
2bd5ba5 |
|
|
|
2bd5ba5 |
%install
|
|
|
2bd5ba5 |
# Must do the default python version install last because
|
|
|
2bd5ba5 |
# the scripts in /usr/bin are overwritten with every setup.py install.
|
|
|
2bd5ba5 |
%py2_install
|
|
|
2bd5ba5 |
rm -rf %{buildroot}%{_bindir}/*
|
|
|
2bd5ba5 |
%py3_install
|
|
|
2bd5ba5 |
|
|
|
2bd5ba5 |
|
|
|
2bd5ba5 |
%check
|
|
Jeroen van Meeuwen (Kolab Systems) |
a2ec2e4 |
%if %{with tests}
|
|
|
2bd5ba5 |
%{__python2} setup.py test
|
|
|
2bd5ba5 |
%{__python3} setup.py test
|
|
Jeroen van Meeuwen (Kolab Systems) |
a2ec2e4 |
%endif
|
|
|
2bd5ba5 |
|
|
|
2bd5ba5 |
|
|
|
2bd5ba5 |
%files -n python2-%{pypi_name}
|
|
|
2bd5ba5 |
%license LICENSE
|
|
|
2bd5ba5 |
%doc README.md
|
|
|
2bd5ba5 |
%{python2_sitelib}/automat
|
|
|
2bd5ba5 |
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
|
|
2bd5ba5 |
|
|
|
2bd5ba5 |
|
|
|
2bd5ba5 |
%files -n python3-%{pypi_name}
|
|
|
2bd5ba5 |
%license LICENSE
|
|
|
2bd5ba5 |
%doc README.md
|
|
|
2bd5ba5 |
%{_bindir}/automat-visualize
|
|
|
2bd5ba5 |
%{python3_sitelib}/automat
|
|
|
2bd5ba5 |
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
|
|
2bd5ba5 |
|
|
|
2bd5ba5 |
|
|
|
2bd5ba5 |
%changelog
|
|
|
5b4c6d5 |
* Mon Mar 11 2019 Robert-André Mauchin <zebob.m@gmail.com> - 0.7.0-1
|
|
|
5b4c6d5 |
- Release 0.7.0 (#1687495)
|
|
|
5b4c6d5 |
|
|
|
9e55ecf |
* Fri Mar 08 2019 Jeroen van Meeuwen <vanmeeuwen+fedora@kolabsys.com> - 0.6.0-5
|
|
|
9e55ecf |
- Add bcond_without tests
|
|
|
9e55ecf |
|
|
|
adf99bf |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-4
|
|
|
adf99bf |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
adf99bf |
|
|
|
2ea5381 |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-3
|
|
|
2ea5381 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
2ea5381 |
|
|
|
b1dab18 |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.6.0-2
|
|
|
b1dab18 |
- Rebuilt for Python 3.7
|
|
|
b1dab18 |
|
|
|
2bd5ba5 |
* Fri Apr 13 2018 Robert-André Mauchin <zebob.m@gmail.com> - 0.6.0-1
|
|
|
2bd5ba5 |
- Initial package.
|