|
 |
ab0449 |
# what it's called on pypi
|
|
 |
ab0449 |
%global srcname Automat
|
|
 |
ab0449 |
# what it's imported as
|
|
 |
ab0449 |
%global libname automat
|
|
 |
ab0449 |
# name of egg info directory
|
|
 |
ab0449 |
%global eggname %{srcname}
|
|
 |
ab0449 |
# package name fragment
|
|
 |
ab0449 |
%global pkgname %{srcname}
|
|
 |
ab0449 |
|
|
 |
ab0449 |
%global common_description %{expand:
|
|
 |
ab0449 |
Automat is a library for concise, idiomatic Python expression of finite-state
|
|
 |
ab0449 |
automata (particularly deterministic finite-state transducers).}
|
|
 |
ab0449 |
|
|
 |
ab0449 |
%bcond_with tests
|
|
 |
ab0449 |
|
|
 |
ab0449 |
Name: python-%{pkgname}
|
|
 |
ab0449 |
Version: 20.2.0
|
|
 |
ab0449 |
Release: 5%{?dist}
|
|
 |
ab0449 |
Summary: Self-service finite-state machines for the programmer on the go
|
|
 |
ab0449 |
|
|
 |
ab0449 |
License: MIT
|
|
 |
ab0449 |
URL: https://github.com/glyph/automat
|
|
 |
ab0449 |
Source0: %pypi_source
|
|
 |
ab0449 |
|
|
 |
ab0449 |
BuildArch: noarch
|
|
 |
ab0449 |
|
|
 |
ab0449 |
%description %{common_description}
|
|
 |
ab0449 |
|
|
 |
ab0449 |
%package -n python3-%{pkgname}
|
|
 |
ab0449 |
Summary: %{summary}
|
|
 |
ab0449 |
Provides: python3-%{libname}
|
|
 |
ab0449 |
%{?python_provide:%python_provide python3-%{pkgname}}
|
|
 |
ab0449 |
|
|
 |
ab0449 |
BuildRequires: python3-devel
|
|
 |
ab0449 |
BuildRequires: python3dist(m2r)
|
|
 |
ab0449 |
BuildRequires: python3dist(setuptools)
|
|
 |
ab0449 |
BuildRequires: python3dist(setuptools-scm)
|
|
 |
ab0449 |
BuildRequires: python3dist(sphinx)
|
|
 |
ab0449 |
BuildRequires: python3dist(sphinx-rtd-theme)
|
|
 |
ab0449 |
%if %{with tests}
|
|
 |
ab0449 |
BuildRequires: python3dist(pytest)
|
|
 |
ab0449 |
BuildRequires: python3dist(attrs) >= 16.1
|
|
 |
ab0449 |
BuildRequires: python3dist(graphviz) > 0.5.1
|
|
 |
ab0449 |
BuildRequires: python3dist(six)
|
|
 |
ab0449 |
BuildRequires: python3dist(twisted) >= 16.1.1
|
|
 |
ab0449 |
%endif
|
|
 |
ab0449 |
|
|
 |
ab0449 |
%description -n python3-%{pkgname} %{common_description}
|
|
 |
ab0449 |
|
|
 |
ab0449 |
%package -n python-%{pkgname}-doc
|
|
 |
ab0449 |
Summary: Automat documentation
|
|
 |
ab0449 |
%description -n python-%{pkgname}-doc
|
|
 |
ab0449 |
Documentation for Automat
|
|
 |
ab0449 |
|
|
 |
ab0449 |
%prep
|
|
 |
ab0449 |
%autosetup -p1 -n %{srcname}-%{version}
|
|
 |
ab0449 |
# Remove bundled egg-info
|
|
 |
ab0449 |
rm -rf %{eggname}.egg-info
|
|
 |
ab0449 |
|
|
 |
ab0449 |
%build
|
|
 |
ab0449 |
%py3_build
|
|
 |
ab0449 |
# generate html docs
|
|
 |
ab0449 |
PYTHONPATH=${PWD} sphinx-build-3 docs html
|
|
 |
ab0449 |
# remove the sphinx-build leftovers
|
|
 |
ab0449 |
rm -rf html/.{doctrees,buildinfo}
|
|
 |
ab0449 |
|
|
 |
ab0449 |
%install
|
|
 |
ab0449 |
%py3_install
|
|
 |
ab0449 |
|
|
 |
ab0449 |
%check
|
|
 |
ab0449 |
%if %{with tests}
|
|
 |
ab0449 |
PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-%{python3_version} --verbose automat/_test
|
|
 |
ab0449 |
%endif
|
|
 |
ab0449 |
|
|
 |
ab0449 |
%files -n python3-%{pkgname}
|
|
 |
ab0449 |
%license LICENSE
|
|
 |
ab0449 |
%doc README.md
|
|
 |
ab0449 |
%{_bindir}/automat-visualize
|
|
 |
ab0449 |
%{python3_sitelib}/%{libname}
|
|
 |
ab0449 |
%{python3_sitelib}/%{eggname}-%{version}-py%{python3_version}.egg-info
|
|
 |
ab0449 |
|
|
 |
ab0449 |
%files -n python-%{pkgname}-doc
|
|
 |
ab0449 |
%doc html
|
|
 |
ab0449 |
%license LICENSE
|
|
 |
ab0449 |
|
|
 |
ab0449 |
%changelog
|
|
 |
ab0449 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 20.2.0-5
|
|
 |
ab0449 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
 |
ab0449 |
|
|
 |
ab0449 |
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 20.2.0-4
|
|
 |
ab0449 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
 |
ab0449 |
|
|
 |
ab0449 |
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 20.2.0-3
|
|
 |
ab0449 |
- Rebuilt for Python 3.9
|
|
 |
ab0449 |
|
|
 |
ab0449 |
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 20.2.0-2
|
|
 |
ab0449 |
- Bootstrap for Python 3.9
|
|
 |
ab0449 |
|
|
 |
ab0449 |
* Wed Feb 19 03:32:18 CET 2020 Robert-André Mauchin <zebob.m@gmail.com> - 20.2.0-1
|
|
 |
ab0449 |
- Update to 20.2.0
|
|
 |
ab0449 |
|
|
 |
ab0449 |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-2
|
|
 |
ab0449 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
 |
ab0449 |
|
|
 |
ab0449 |
* Sat Dec 14 2019 Robert-André Mauchin <zebob.m@gmail.com> - 0.8.0-1
|
|
 |
ab0449 |
- Update to 0.8.0 (#1763502)
|
|
 |
ab0449 |
|
|
 |
ab0449 |
* Sun Oct 13 23:16:43 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 0.7.0-8
|
|
 |
ab0449 |
- Drop Python 2 support (#1761207)
|
|
 |
ab0449 |
|
|
 |
ab0449 |
* Wed Sep 18 2019 Petr Viktorin <pviktori@redhat.com> - 0.7.0-7
|
|
 |
ab0449 |
- Python 2: Remove tests and test dependencies
|
|
 |
ab0449 |
|
|
 |
ab0449 |
* Sat Aug 17 2019 Miro Hrončok <mhroncok@redhat.com> - 0.7.0-6
|
|
 |
ab0449 |
- Rebuilt for Python 3.8
|
|
 |
ab0449 |
|
|
 |
ab0449 |
* Sat Aug 17 2019 Miro Hrončok <mhroncok@redhat.com> - 0.7.0-5
|
|
 |
ab0449 |
- Bootstrap for Python 3.8
|
|
 |
ab0449 |
|
|
 |
ab0449 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-4
|
|
 |
ab0449 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
 |
ab0449 |
|
|
 |
ab0449 |
* Mon May 27 21:26:47 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 0.7.0-3
|
|
 |
ab0449 |
- Add patch supporting for positional only arguments for Python 3.8
|
|
 |
ab0449 |
|
|
 |
ab0449 |
* Sat Apr 06 2019 Carl George <carl@george.computer> - 0.7.0-2
|
|
 |
ab0449 |
- Add provides for lowercase name
|
|
 |
ab0449 |
- Run tests with pytest like upstream does
|
|
 |
ab0449 |
|
|
 |
ab0449 |
* Mon Mar 11 2019 Robert-André Mauchin <zebob.m@gmail.com> - 0.7.0-1
|
|
 |
ab0449 |
- Release 0.7.0 (#1687495)
|
|
 |
ab0449 |
|
|
 |
ab0449 |
* Fri Mar 08 2019 Jeroen van Meeuwen <vanmeeuwen+fedora@kolabsys.com> - 0.6.0-5
|
|
 |
ab0449 |
- Add bcond_without tests
|
|
 |
ab0449 |
|
|
 |
ab0449 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-4
|
|
 |
ab0449 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
 |
ab0449 |
|
|
 |
ab0449 |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-3
|
|
 |
ab0449 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
 |
ab0449 |
|
|
 |
ab0449 |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.6.0-2
|
|
 |
ab0449 |
- Rebuilt for Python 3.7
|
|
 |
ab0449 |
|
|
 |
ab0449 |
* Fri Apr 13 2018 Robert-André Mauchin <zebob.m@gmail.com> - 0.6.0-1
|
|
 |
ab0449 |
- Initial package.
|