public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-automaton] epel10: Remove the python2 package for Fedora 30+ (bz#1636934)
@ 2026-05-31 14:45 Javier Pena
  0 siblings, 0 replies; only message in thread
From: Javier Pena @ 2026-05-31 14:45 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/python-automaton
Branch : epel10
Commit : 393bb3cb30f605e0f247cc2b5cbd7f538c43cc55
Author : Javier Pena <jpena@redhat.com>
Date   : 2018-10-16T11:13:03+02:00
Stats  : +30/-11 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/python-automaton/c/393bb3cb30f605e0f247cc2b5cbd7f538c43cc55?branch=epel10

Log:
Remove the python2 package for Fedora 30+ (bz#1636934)

---
diff --git a/python-automaton.spec b/python-automaton.spec
index da382fb..e38bdda 100644
--- a/python-automaton.spec
+++ b/python-automaton.spec
@@ -1,30 +1,35 @@
 %{!?upstream_version: %global upstream_version %{version}%{?milestone}}
 %global pypi_name automaton
 
-%if 0%{?fedora}
-%global with_python3 1
+%if 0%{?fedora} || 0%{?rhel} > 7
+%bcond_with    python2
+%bcond_without python3
+%else
+%bcond_without python2
+%bcond_with    python3
 %endif
 
 Name:           python-%{pypi_name}
 Version:        1.14.0
-Release:        3%{?dist}
+Release:        4%{?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}
 Summary:        Friendly state machines for python
 %{?python_provide:%python_provide python2-%{pypi_name}}
 BuildRequires:  python2-devel
 BuildRequires:  python2-pbr
-BuildRequires:  git
-BuildRequires:  graphviz
 BuildRequires:  python2-sphinx
 BuildRequires:  python2-openstackdocstheme
 BuildRequires:  python2-oslo-sphinx
@@ -36,13 +41,18 @@ Requires: python2-prettytable
 
 %description -n python2-%{pypi_name}
 Friendly state machines for python.
+%endif
 
-%if 0%{?with_python3}
+%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
@@ -62,29 +72,35 @@ Friendly state machines for python (documentation)
 %autosetup -n %{pypi_name}-%{upstream_version} -S git
 
 %build
-%if 0%{?with_python3}
+%if %{with python3}
 %py3_build
 %endif
+%if %{with python2}
 %py2_build
+%endif
 
-# generate html docs 
-%{__python2} setup.py build_sphinx -b html
+# generate html docs
+sphinx-build -b html doc/source doc/build/html
 # remove the sphinx-build leftovers
 rm -rf doc/build/html/.{doctrees,buildinfo}
 
 %install
-%if 0%{?with_python3}
+%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
 
-%if 0%{?with_python3}
+%if %{with python3}
 %files -n python3-%{pypi_name}
 %doc README.rst
 %license LICENSE
@@ -97,6 +113,9 @@ rm -rf doc/build/html/.{doctrees,buildinfo}
 %license LICENSE
 
 %changelog
+* 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
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-05-31 14:45 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:45 [rpms/python-automaton] epel10: Remove the python2 package for Fedora 30+ (bz#1636934) Javier Pena

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox