public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Javier Pena <jpena@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/python-automaton] epel10: Remove the python2 package for Fedora 30+ (bz#1636934)
Date: Sun, 31 May 2026 14:45:41 GMT	[thread overview]
Message-ID: <178023874102.1.3414626940554316769.rpms-python-automaton-393bb3cb30f6@fedoraproject.org> (raw)

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
 

                 reply	other threads:[~2026-05-31 14:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178023874102.1.3414626940554316769.rpms-python-automaton-393bb3cb30f6@fedoraproject.org \
    --to=jpena@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox