%global srcname novaclient-os-networks
%global upstreamname os_networksv2_python_novaclient_ext
Name: python-%{srcname}
Version: 0.26
Release: 2%{?dist}
Summary: Adds network extension support to python-novaclient
Group: Development/Libraries
License: ASL 2.0
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 python3-devel
%description
%{summary}
%package -n python2-%{srcname}
Summary: %{summary}
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
%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 <gryfrev8-redhat.com-rjmco@tux.com.pt> - 0.26-2
- Added python3 subpackage
- Removed the check section as no checks are defined by upstream
* Fri Aug 05 2016 Ricardo Cordeiro <gryfrev8-redhat.com-rjmco@tux.com.pt> - 0.26-1
- Version bump to 0.26
- Update Source0 to use files.pythonhosted.org
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.25-3
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
* Thu Mar 03 2016 Ricardo Cordeiro <gryfrev8-redhat.com-rjmco@tux.com.pt> - 0.25-2
- Replaced the use of sum with summary
* Sat Feb 20 2016 Ricardo Cordeiro <gryfrev8-redhat.com-rjmco@tux.com.pt> - 0.25-1
- Initial package