Blame python-Automat.spec

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