public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-automaton] epel10: Initial import (#1264402)
@ 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 : 42f9434ed7115f6daba1efb5603e224c37a10afd
Author : Javier Pena <jpena@redhat.com>
Date : 2015-09-22T10:55:29+02:00
Stats : +140/-0 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/python-automaton/c/42f9434ed7115f6daba1efb5603e224c37a10afd?branch=epel10
Log:
Initial import (#1264402)
---
diff --git a/.gitignore b/.gitignore
index e69de29..d715861 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/automaton-0.7.0.tar.gz
diff --git a/python-automaton.spec b/python-automaton.spec
new file mode 100644
index 0000000..98c018d
--- /dev/null
+++ b/python-automaton.spec
@@ -0,0 +1,138 @@
+%if 0%{?fedora}
+%global with_python3 1
+%endif
+
+%global pypi_name automaton
+
+Name: python-%{pypi_name}
+Version: 0.7.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.python.org/packages/source/a/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
+BuildArch: noarch
+
+%description
+Friendly state machines for python.
+
+%package -n python2-%{pypi_name}
+Summary: Friendly state machines for python
+%{?python_provide:%python_provide python2-%{pypi_name}}
+
+BuildRequires: python2-devel
+BuildRequires: python-pbr
+BuildRequires: python-sphinx
+BuildRequires: python-oslo-sphinx
+BuildRequires: python-setuptools
+
+#Required for tests
+BuildRequires: python-debtcollector
+BuildRequires: python-hacking
+BuildRequires: python-coverage
+BuildRequires: python-subunit
+BuildRequires: python-oslotest
+BuildRequires: python-prettytable
+BuildRequires: python-testrepository
+BuildRequires: python-testscenarios
+BuildRequires: python-testtools
+
+Requires: python-pbr >= 1.6
+Requires: python-six >= 1.9.0
+Requires: python-debtcollector >= 0.3.0
+Requires: python-prettytable
+
+%description -n python2-%{pypi_name}
+Friendly state machines for python.
+
+%package -n python-%{pypi_name}-doc
+Summary: Friendly state machines for python - documentation
+
+%description -n python-%{pypi_name}-doc
+Friendly state machines for python (documentation)
+
+%if 0%{?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-oslo-sphinx
+BuildRequires: python3-setuptools
+
+#Required for tests
+BuildRequires: python3-debtcollector
+BuildRequires: python3-hacking
+BuildRequires: python3-coverage
+BuildRequires: python3-subunit
+BuildRequires: python3-oslotest
+BuildRequires: python3-prettytable
+BuildRequires: python3-testrepository
+BuildRequires: python3-testscenarios
+BuildRequires: python3-testtools
+
+Requires: python3-pbr >= 1.6
+Requires: python3-six >= 1.9.0
+Requires: python3-debtcollector >= 0.3.0
+Requires: python3-prettytable
+
+%description -n python3-%{pypi_name}
+Friendly state machines for python.
+%endif
+
+%prep
+%setup -q -n %{pypi_name}-%{version}
+
+%build
+%{py_build}
+
+%if 0%{?with_python3}
+%{py3_build}
+%endif
+
+%install
+%{py2_install}
+
+# generate html docs
+sphinx-build doc/source html
+# remove the sphinx-build leftovers
+rm -rf html/.{doctrees,buildinfo}
+
+%if 0%{?with_python3}
+%{py3_install}
+%endif
+
+
+%check
+%{__python2} setup.py test
+
+%if 0%{?with_python3}
+rm -rf .testrepository
+%{__python3} setup.py test
+%endif
+
+%files -n python2-%{pypi_name}
+%doc README.rst
+%license LICENSE
+%{python2_sitelib}/%{pypi_name}
+%{python2_sitelib}/*.egg-info
+
+%files -n python-%{pypi_name}-doc
+%doc html
+%license LICENSE
+
+%if 0%{?with_python3}
+%files -n python3-%{pypi_name}
+%doc html README.rst
+%license LICENSE
+%{python3_sitelib}/%{pypi_name}
+%{python3_sitelib}/*.egg-info
+
+%endif
+
+%changelog
+* Fri Sep 18 2015 jpena <jpena@redhat.com> - 0.7.0-1
+- Initial package.
diff --git a/sources b/sources
index e69de29..e1514de 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+4c4a390eada881f717c22f68cb87ddb1 automaton-0.7.0.tar.gz
^ 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: Initial import (#1264402) Javier Pena
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox