public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-automaton] epel10.2: Update to Stein release
@ 2026-05-31 14:46 Alfredo Moralejo
0 siblings, 0 replies; only message in thread
From: Alfredo Moralejo @ 2026-05-31 14:46 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-automaton
Branch : epel10.2
Commit : a3be369c95dd1a0ea26fbc3e12e23579b63719bf
Author : Alfredo Moralejo <amoralej@redhat.com>
Date : 2019-05-28T19:58:21+02:00
Stats : +46/-107 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/python-automaton/c/a3be369c95dd1a0ea26fbc3e12e23579b63719bf?branch=epel10.2
Log:
Update to Stein release
---
diff --git a/.gitignore b/.gitignore
index 5474a95..39b7343 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,3 +5,4 @@
/automaton-1.4.0.tar.gz
/automaton-1.5.0.tar.gz
/automaton-1.14.0.tar.gz
+/automaton-1.16.0.tar.gz
diff --git a/python-automaton.spec b/python-automaton.spec
index e5d5c8f..50b4fbc 100644
--- a/python-automaton.spec
+++ b/python-automaton.spec
@@ -1,149 +1,87 @@
-%{!?upstream_version: %global upstream_version %{version}%{?milestone}}
-%global pypi_name automaton
-
+# Macros for py2/py3 compatibility
%if 0%{?fedora} || 0%{?rhel} > 7
-%bcond_with python2
-%bcond_without python3
+%global pyver %{python3_pkgversion}
%else
-%bcond_without python2
-%bcond_with python3
+%global pyver 2
%endif
+%global pyver_bin python%{pyver}
+%global pyver_sitelib %python%{pyver}_sitelib
+%global pyver_install %py%{pyver}_install
+%global pyver_build %py%{pyver}_build
+# End of macros for py2/py3 compatibility
+%{!?upstream_version: %global upstream_version %{version}%{?milestone}}
+%global pypi_name automaton
+
+%global with_doc 1
Name: python-%{pypi_name}
-Version: 1.14.0
-Release: 5%{?dist}
+Version: 1.16.0
+Release: 1%{?dist}
Summary: Friendly state machines for python
License: ASL 2.0
URL: https://wiki.openstack.org/wiki/Oslo#automaton
Source0: https://pypi.io/packages/source/a/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch: noarch
-BuildRequires: git
-BuildRequires: graphviz
%description
Friendly state machines for python.
-%if %{with python2}
-%package -n python2-%{pypi_name}
+%package -n python%{pyver}-%{pypi_name}
Summary: Friendly state machines for python
-%{?python_provide:%python_provide python2-%{pypi_name}}
-BuildRequires: python2-devel
-BuildRequires: python2-pbr
-BuildRequires: python2-sphinx
-BuildRequires: python2-openstackdocstheme
-BuildRequires: python2-oslo-sphinx
-BuildRequires: python2-prettytable
-
-Requires: python2-pbr >= 2.0.0
-Requires: python2-six >= 1.10.0
-Requires: python2-prettytable
-
-%description -n python2-%{pypi_name}
-Friendly state machines for python.
-%endif
+%{?python_provide:%python_provide python%{pyver}-%{pypi_name}}
+BuildRequires: python%{pyver}-devel
+BuildRequires: python%{pyver}-pbr
+BuildRequires: git
+BuildRequires: python%{pyver}-prettytable
-%if %{with python3}
-%package -n python3-%{pypi_name}
-Summary: Friendly state machines for python
-%{?python_provide:%python_provide python3-%{pypi_name}}
-BuildRequires: python3-devel
-BuildRequires: python3-pbr
-BuildRequires: python3-sphinx
-BuildRequires: python3-openstackdocstheme
-BuildRequires: python3-oslo-sphinx
-BuildRequires: python3-prettytable
-
-Requires: python3-pbr >= 2.0.0
-Requires: python3-six >= 1.10.0
-Requires: python3-prettytable
-
-%description -n python3-%{pypi_name}
+Requires: python%{pyver}-pbr >= 2.0.0
+Requires: python%{pyver}-six >= 1.10.0
+Requires: python%{pyver}-prettytable
+
+%description -n python%{pyver}-%{pypi_name}
Friendly state machines for python.
-%endif
+%if 0%{?with_doc}
%package -n python-%{pypi_name}-doc
Summary: Friendly state machines for python - documentation
+BuildRequires: graphviz
+BuildRequires: python%{pyver}-sphinx
+BuildRequires: python%{pyver}-openstackdocstheme
%description -n python-%{pypi_name}-doc
Friendly state machines for python (documentation)
+%endif
%prep
%autosetup -n %{pypi_name}-%{upstream_version} -S git
%build
-%if %{with python3}
-%py3_build
-%endif
-%if %{with python2}
-%py2_build
-%endif
+%{pyver_build}
-# generate html docs
-sphinx-build -b html doc/source doc/build/html
-# remove the sphinx-build leftovers
+%if 0%{?with_doc}
+# generate html docs
+%{pyver_bin} setup.py build_sphinx -b html
+# remove the sphinx-build-%{pyver} leftovers
rm -rf doc/build/html/.{doctrees,buildinfo}
-
-%install
-%if %{with python3}
-%py3_install
-%endif
-%if %{with python2}
-%py2_install
%endif
-%if %{with python2}
-%files -n python2-%{pypi_name}
-%doc README.rst
-%license LICENSE
-%{python2_sitelib}/%{pypi_name}
-%{python2_sitelib}/*.egg-info
-%endif
+%install
+%{pyver_install}
-%if %{with python3}
-%files -n python3-%{pypi_name}
+%files -n python%{pyver}-%{pypi_name}
%doc README.rst
%license LICENSE
-%{python3_sitelib}/%{pypi_name}
-%{python3_sitelib}/*.egg-info
-%endif
+%{pyver_sitelib}/%{pypi_name}
+%{pyver_sitelib}/*.egg-info
+%if 0%{?with_doc}
%files -n python-%{pypi_name}-doc
%doc doc/build/html
%license LICENSE
+%endif
%changelog
-* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.0-5
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
-
-* Tue Oct 16 2018 Javier Peña <jpena@redhat.com> - 1.14.0-4
-- Remove the python2 package for Fedora 30+ (bz#1636934)
-
-* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.0-3
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
-
-* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.14.0-2
-- Rebuilt for Python 3.7
-
-* Thu May 17 2018 Matthias Runge <mrunge@redhat.com> - 1.14.0-1
-- sync with OpenStack release Queens
-
-* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-5
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
-
-* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-4
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
-
-* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-3
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
-
-* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.5.0-2
-- Rebuild for Python 3.6
-
-* Fri Oct 21 2016 Javier Peña <jpena@redhat.com> - 1.5.0-1
-- Updated to upstream version 1.5.0
-
-* Fri Sep 09 2016 Haikel Guemar <hguemar@fedoraproject.org> 1.4.0-2
-- Add python3 subpackages
-- Sync w/ RDO Newton
+* Tue Mar 12 2019 RDO <dev@lists.rdoproject.org> 1.16.0-1
+- Update to 1.16.0
diff --git a/sources b/sources
index d2654bd..75be713 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (automaton-1.14.0.tar.gz) = 59a2836cc0a2e0f21179c932605a191c0e72f981fd37bfe78bc56f9a453ecde07d674256b90ad83441fbd2588a15363a443f221ff567437c22db78b2c5d11383
+SHA512 (automaton-1.16.0.tar.gz) = 9ec35cd9187e811cfda9b3c8bab48a7c5823aa4000562f86dd0f616610c5f6d384c4459d3f95eb3a9244c96e3fa3e0197b18ada27f4ccd71140ad15c0dca055a
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-05-31 14:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-31 14:46 [rpms/python-automaton] epel10.2: Update to Stein release Alfredo Moralejo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox