[prev in list] [next in list] [prev in thread] [next in thread] 

List:       fedora-extras-commits
Subject:    hguemar pushed to python-taskflow (master). "Add python3 subpackage (..more)"
From:       notifications () fedoraproject ! org
Date:       2016-07-31 22:06:30
Message-ID: 20160731220630.84B11605F20E () bastion01 ! phx2 ! fedoraproject ! org
[Download RAW message or body]

From dd7228d69661751bba508b1d2bc8a73be4c2dbdd Mon Sep 17 00:00:00 2001
From: Haikel Guemar <hguemar@fedoraproject.org>
Date: Sun, 31 Jul 2016 23:31:36 +0200
Subject: Add python3 subpackage

(cherry picked from commit a7735fc1869c673ca6db868791b329c8a9c5298f)
(cherry picked from commit 4870b9de16086a0d99b8683b15a84a9dac624d23)
---
 python-taskflow.spec | 83 +++++++++++++++++++++++++++++++++++++++++++++-------
 1 file changed, 72 insertions(+), 11 deletions(-)

diff --git a/python-taskflow.spec b/python-taskflow.spec
index 9eb405a..e6d5470 100644
--- a/python-taskflow.spec
+++ b/python-taskflow.spec
@@ -1,4 +1,9 @@
-# Created by pyp2rpm-1.0.1
+%{!?upstream_version: %global upstream_version %{version}%{?milestone}}
+
+%if 0%{?fedora}
+%global with_python3 1
+%endif
+
 %global pypi_name taskflow
 
 %{!?upstream_version: %global upstream_version %{version}%{?milestone}}
@@ -20,6 +25,13 @@ URL:            https://launchpad.net/taskflow
 Source0:        http://pypi.python.org/packages/source/t/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
  BuildArch:      noarch
 
+%description
+A library to do [jobs, tasks, flows] in a HA manner using
+different backends to be used with OpenStack projects.
+
+
+%package -n python2-%{pypi_name}
+Summary:        Taskflow structured state management library
 BuildRequires:  python2-devel
 BuildRequires:  python-pbr
 
@@ -43,13 +55,47 @@ Requires:       python-pbr
 Requires:       python-six >= 1.9.0
 Requires:       python-stevedore >= 1.5.0
 
-%description
+%{?python_provide:%python_provide python2-%{pypi_name}}
+
+%description -n python2-%{pypi_name}
+A library to do [jobs, tasks, flows] in a HA manner using
+different backends to be used with OpenStack projects.
+
+%if 0%{?with_python3}
+%package -n python3-%{pypi_name}
+Summary:        Taskflow structured state management library
+BuildRequires:  python3-devel
+BuildRequires:  python3-pbr
+
+Requires:       python3-anyjson
+Requires:       python3-iso8601
+Requires:       python3-six
+Requires:       python3-babel
+Requires:       python3-stevedore
+Requires:       python3-futures
+Requires:       python3-networkx-core
+Requires:       python3-oslo-serialization
+Requires:       python3-oslo-utils
+Requires:       python3-jsonschema
+Requires:       python3-enum34
+Requires:       python3-debtcollector
+Requires:       python3-automaton >= 0.5.0
+Requires:       python3-networkx >= 1.10
+
+%{?python_provide:%python_provide python3-%{pypi_name}}
+
+
+%description -n python3-%{pypi_name}
 A library to do [jobs, tasks, flows] in a HA manner using
 different backends to be used with OpenStack projects.
+%endif
+
 
 %package doc
 Summary:          Documentation for Taskflow
-Group:            Documentation
+BuildRequires:  python-oslo-sphinx
+BuildRequires:  python-sphinx
+
 
 BuildRequires:  python-oslo-sphinx
 %if 0%{?rhel} == 6
@@ -86,12 +132,10 @@ rm -rf {test-,}requirements.txt
 
 
 %build
-%{__python2} setup.py build
-
-
-%install
-%{__python2} setup.py install --skip-build --root %{buildroot}
-
+%py2_build
+%if 0%{?with_python3}
+%py3_build
+%endif
 # generate html docs
 %if 0%{?rhel} == 6
 sphinx-1.0-build doc/source html
@@ -102,13 +146,30 @@ sphinx-build doc/source html
 rm -rf html/.{doctrees,buildinfo}
 
 
-%files
-%doc README.rst LICENSE
+%install
+%py2_install
+%if 0%{?with_python3}
+%py3_install
+%endif
+
+
+%files -n python2-%{pypi_name}
+%doc README.rst
+%license LICENSE
 %{python2_sitelib}/%{pypi_name}
 %{python2_sitelib}/%{pypi_name}-*.egg-info
 
+%if 0%{?with_python3}
+%files -n python3-%{pypi_name}
+%doc README.rst
+%license LICENSE
+%{python3_sitelib}/%{pypi_name}
+%{python3_sitelib}/%{pypi_name}-*.egg-info
+%endif
+
 %files doc
 %doc html
+%license LICENSE
 
 %changelog
 * Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - \
                1.21.0-3
-- 
cgit v0.12


	http://pkgs.fedoraproject.org/cgit/python-taskflow.git/commit/?h=master&id=dd7228d69661751bba508b1d2bc8a73be4c2dbdd
                
--
scm-commits mailing list
scm-commits@lists.fedoraproject.org
https://lists.fedoraproject.org/admin/lists/scm-commits@lists.fedoraproject.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic