|
|
628236e |
%{!?sources_gpg: %{!?dlrn:%global sources_gpg 1} }
|
|
|
429bbe1 |
%global sources_gpg_sign 0x815afec729392386480e076dcc0dfe2d21c023c9
|
|
|
a3be369 |
%{!?upstream_version: %global upstream_version %{version}%{?milestone}}
|
|
|
429bbe1 |
# we are excluding some BRs from automatic generator
|
|
|
429bbe1 |
%global excluded_brs doc8 bandit pre-commit hacking flake8-import-order
|
|
|
a3be369 |
%global pypi_name automaton
|
|
|
a3be369 |
|
|
|
a3be369 |
%global with_doc 1
|
|
|
42f9434 |
|
|
|
42f9434 |
Name: python-%{pypi_name}
|
|
|
429bbe1 |
Version: 3.2.0
|
|
|
6ff507d |
Release: 3%{?dist}
|
|
|
42f9434 |
Summary: Friendly state machines for python
|
|
|
42f9434 |
|
|
|
429bbe1 |
License: Apache-2.0
|
|
|
42f9434 |
URL: https://wiki.openstack.org/wiki/Oslo#automaton
|
|
|
0cc0638 |
Source0: http://tarballs.openstack.org/%{pypi_name}/%{pypi_name}-%{upstream_version}.tar.gz
|
|
|
628236e |
# Required for tarball sources verification
|
|
|
628236e |
%if 0%{?sources_gpg} == 1
|
|
|
628236e |
Source101: http://tarballs.openstack.org/%{pypi_name}/%{pypi_name}-%{upstream_version}.tar.gz.asc
|
|
|
628236e |
Source102: https://releases.openstack.org/_static/%{sources_gpg_sign}.txt
|
|
|
628236e |
%endif
|
|
|
628236e |
|
|
|
42f9434 |
BuildArch: noarch
|
|
|
d81e912 |
|
|
|
628236e |
# Required for tarball sources verification
|
|
|
628236e |
%if 0%{?sources_gpg} == 1
|
|
|
628236e |
BuildRequires: /usr/bin/gpgv2
|
|
|
628236e |
%endif
|
|
|
628236e |
|
|
|
42f9434 |
%description
|
|
|
42f9434 |
Friendly state machines for python.
|
|
|
42f9434 |
|
|
|
dfbc22b |
%package -n python3-%{pypi_name}
|
|
|
42f9434 |
Summary: Friendly state machines for python
|
|
|
dfbc22b |
BuildRequires: python3-devel
|
|
|
429bbe1 |
BuildRequires: pyproject-rpm-macros
|
|
|
a54dcb4 |
BuildRequires: git-core
|
|
|
a3be369 |
|
|
|
dfbc22b |
%description -n python3-%{pypi_name}
|
|
|
42f9434 |
Friendly state machines for python.
|
|
|
42f9434 |
|
|
|
a3be369 |
%if 0%{?with_doc}
|
|
|
d81e912 |
%package -n python-%{pypi_name}-doc
|
|
|
d81e912 |
Summary: Friendly state machines for python - documentation
|
|
|
a3be369 |
BuildRequires: graphviz
|
|
|
d81e912 |
|
|
|
d81e912 |
%description -n python-%{pypi_name}-doc
|
|
|
d81e912 |
Friendly state machines for python (documentation)
|
|
|
a3be369 |
%endif
|
|
|
d81e912 |
|
|
|
42f9434 |
%prep
|
|
|
628236e |
# Required for tarball sources verification
|
|
|
628236e |
%if 0%{?sources_gpg} == 1
|
|
|
628236e |
%{gpgverify} --keyring=%{SOURCE102} --signature=%{SOURCE101} --data=%{SOURCE0}
|
|
|
628236e |
%endif
|
|
|
8b123ae |
%autosetup -n %{pypi_name}-%{upstream_version} -S git
|
|
|
42f9434 |
|
|
|
429bbe1 |
sed -i /.*-c{env:TOX_CONSTRAINTS_FILE.*/d tox.ini
|
|
|
429bbe1 |
sed -i /^minversion.*/d tox.ini
|
|
|
429bbe1 |
sed -i /^requires.*virtualenv.*/d tox.ini
|
|
|
429bbe1 |
|
|
|
429bbe1 |
# Tox uses doc8 to check docs syntax which we do not ship
|
|
|
429bbe1 |
sed -i /.*doc8.*/d tox.ini
|
|
|
429bbe1 |
|
|
|
429bbe1 |
# Exclude some bad-known BRs
|
|
|
429bbe1 |
for pkg in %{excluded_brs};do
|
|
|
429bbe1 |
for reqfile in doc/requirements.txt test-requirements.txt; do
|
|
|
429bbe1 |
if [ -f $reqfile ]; then
|
|
|
429bbe1 |
sed -i /^${pkg}.*/d $reqfile
|
|
|
429bbe1 |
fi
|
|
|
429bbe1 |
done
|
|
|
429bbe1 |
done
|
|
|
429bbe1 |
# Automatic BR generation
|
|
|
429bbe1 |
%generate_buildrequires
|
|
|
429bbe1 |
%if 0%{?with_doc}
|
|
|
429bbe1 |
%pyproject_buildrequires -t -e %{default_toxenv},docs
|
|
|
429bbe1 |
%else
|
|
|
429bbe1 |
%pyproject_buildrequires -t -e %{default_toxenv}
|
|
|
429bbe1 |
%endif
|
|
|
429bbe1 |
|
|
|
42f9434 |
%build
|
|
|
429bbe1 |
%pyproject_wheel
|
|
|
42f9434 |
|
|
|
a3be369 |
%if 0%{?with_doc}
|
|
|
628236e |
# generate html docs
|
|
|
429bbe1 |
%tox -e docs
|
|
|
dfbc22b |
# remove the sphinx-build-3 leftovers
|
|
|
8b123ae |
rm -rf doc/build/html/.{doctrees,buildinfo}
|
|
|
393bb3c |
%endif
|
|
|
42f9434 |
|
|
|
a3be369 |
%install
|
|
|
429bbe1 |
%pyproject_install
|
|
|
429bbe1 |
|
|
|
429bbe1 |
%check
|
|
|
429bbe1 |
%tox -e %{default_toxenv}
|
|
|
42f9434 |
|
|
|
dfbc22b |
%files -n python3-%{pypi_name}
|
|
|
8b123ae |
%doc README.rst
|
|
|
42f9434 |
%license LICENSE
|
|
|
dfbc22b |
%{python3_sitelib}/%{pypi_name}
|
|
|
429bbe1 |
%{python3_sitelib}/*.dist-info
|
|
|
42f9434 |
|
|
|
a3be369 |
%if 0%{?with_doc}
|
|
|
d81e912 |
%files -n python-%{pypi_name}-doc
|
|
|
8b123ae |
%doc doc/build/html
|
|
|
d81e912 |
%license LICENSE
|
|
|
a3be369 |
%endif
|
|
|
600e984 |
|
|
|
d81e912 |
%changelog
|
|
|
6ff507d |
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0-3
|
|
|
6ff507d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
6ff507d |
|
|
|
f9ffea7 |
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0-2
|
|
|
f9ffea7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
f9ffea7 |
|
|
|
429bbe1 |
* Thu Oct 26 2023 Alfredo Moralejo <amoralej@gmail.com> 3.2.0-1
|
|
|
429bbe1 |
- Update to upstream version 3.2.0
|
|
|
429bbe1 |
|
|
|
a15d7cf |
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-3
|
|
|
a15d7cf |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
a15d7cf |
|
|
|
61f55b3 |
* Thu Jun 15 2023 Python Maint <python-maint@redhat.com> - 3.1.0-2
|
|
|
61f55b3 |
- Rebuilt for Python 3.12
|
|
|
61f55b3 |
|
|
|
4c7f2ce |
* Fri Apr 14 2023 Karolina Kula <kkula@redhat.com> 3.1.0-1
|
|
|
4c7f2ce |
- Update to upstream version 3.1.0
|
|
|
4c7f2ce |
|
|
|
f75dc9b |
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.1-2
|
|
|
f75dc9b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
f75dc9b |
|
|
|
3da48a9 |
* Thu Nov 17 2022 Alfredo Moralejo <amoralej@redhat.com> 3.0.1-1
|
|
|
3da48a9 |
- Update to upstream version 3.0.1
|
|
|
3da48a9 |
|
|
|
010a55d |
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-3
|
|
|
010a55d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
010a55d |
|
|
|
e9b4061 |
* Thu Jun 16 2022 Python Maint <python-maint@redhat.com> - 2.5.0-2
|
|
|
e9b4061 |
- Rebuilt for Python 3.11
|
|
|
e9b4061 |
|
|
|
0cc0638 |
* Thu May 19 2022 Joel Capitao <jcapitao@redhat.com> 2.5.0-1
|
|
|
0cc0638 |
- Update to upstream version 2.5.0
|
|
|
0cc0638 |
|
|
|
55b109c |
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-4
|
|
|
55b109c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
55b109c |
|
|
|
2bcfe8b |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-3
|
|
|
2bcfe8b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
2bcfe8b |
|
|
|
18c5c79 |
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.3.0-2
|
|
|
18c5c79 |
- Rebuilt for Python 3.10
|
|
|
18c5c79 |
|
|
|
a54dcb4 |
* Tue Mar 16 2021 Joel Capitao <jcapitao@redhat.com> 2.3.0-1
|
|
|
a54dcb4 |
- Update to upstream version 2.3.0
|
|
|
a54dcb4 |
|
|
|
fbb2c6e |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-2
|
|
|
fbb2c6e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
fbb2c6e |
|
|
|
e43da5d |
* Wed Oct 28 2020 Alfredo Moralejo <amoralej@redhat.com> 2.2.0-1
|
|
|
e43da5d |
- Update to upstream version 2.2.0
|
|
|
e43da5d |
|
|
|
6ae9a9e |
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-2
|
|
|
6ae9a9e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
6ae9a9e |
|
|
|
dfbc22b |
* Wed Jun 03 2020 Joel Capitao <jcapitao@redhat.com> 2.0.1-1
|
|
|
dfbc22b |
- Update to upstream version 2.0.1
|
|
|
dfbc22b |
|
|
|
fee4e22 |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.17.0-3
|
|
|
fee4e22 |
- Rebuilt for Python 3.9
|
|
|
fee4e22 |
|
|
|
994e709 |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.17.0-2
|
|
|
994e709 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
994e709 |
|
|
|
0afb175 |
* Wed Nov 06 2019 Alfredo Moralejo <amoralej@redhat.com> 1.17.0-1
|
|
|
0afb175 |
- Update to upstream version 1.17.0
|
|
|
0afb175 |
|
|
|
d1a7555 |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.16.0-4
|
|
|
d1a7555 |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
d1a7555 |
|
|
|
7c6e914 |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.16.0-3
|
|
|
7c6e914 |
- Rebuilt for Python 3.8
|
|
|
7c6e914 |
|
|
|
9deb0b3 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.16.0-2
|
|
|
9deb0b3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
9deb0b3 |
|
|
|
a3be369 |
* Tue Mar 12 2019 RDO <dev@lists.rdoproject.org> 1.16.0-1
|
|
|
a3be369 |
- Update to 1.16.0
|
|
|
6e0f45f |
|