From c26cccd638e87b1b5d5df5262d02a28c5e0a40bf Mon Sep 17 00:00:00 2001 From: Ricardo Cordeiro Date: Aug 07 2016 13:31:41 +0000 Subject: Added python3 subpackage - Removed the check section as no checks are defined by upstream --- diff --git a/python-novaclient-os-networks.spec b/python-novaclient-os-networks.spec index e07b1e9..bf21145 100644 --- a/python-novaclient-os-networks.spec +++ b/python-novaclient-os-networks.spec @@ -3,7 +3,7 @@ Name: python-%{srcname} Version: 0.26 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Adds network extension support to python-novaclient Group: Development/Libraries @@ -12,37 +12,54 @@ URL: http://pypi.python.org/pypi/%{upstreamname} Source0: https://files.pythonhosted.org/packages/source/o/%{upstreamname}/%{upstreamname}-%{version}.tar.gz BuildArch: noarch -BuildRequires: python2-devel +BuildRequires: python2-devel python3-devel %description %{summary} + %package -n python2-%{srcname} Summary: %{summary} -BuildRequires: python-novaclient -Requires: python-novaclient +BuildRequires: python2-novaclient +Requires: python2-novaclient %{?python_provide:%python_provide python2-%{srcname}} %description -n python2-%{srcname} %{summary} +%package -n python3-%{srcname} +Summary: %{summary} +BuildRequires: python3-novaclient +Requires: python3-novaclient +%{?python_provide:%python_provide python3-%{srcname}} + +%description -n python3-%{srcname} +%{summary} + %prep %autosetup -n %{upstreamname}-%{version} %build %py2_build +%py3_build %install %py2_install - -%check -%{__python2} setup.py test +%py3_install %files -n python2-%{srcname} %doc README.rst %{python2_sitelib}/* +%files -n python3-%{srcname} +%doc README.rst +%{python3_sitelib}/* + %changelog +* Sun Aug 07 2016 Ricardo Cordeiro - 0.26-2 +- Added python3 subpackage +- Removed the check section as no checks are defined by upstream + * Fri Aug 05 2016 Ricardo Cordeiro - 0.26-1 - Version bump to 0.26 - Update Source0 to use files.pythonhosted.org