69cb05
%global tarball_name apache-libcloud
d7d174
%global srcname libcloud
d7d174
%global eggname apache_libcloud
d7d174
%global _description \
d7d174
libcloud is a client library for interacting with many of \
d7d174
the popular cloud server providers.  It was created to make \
d7d174
it easy for developers to build products that work between \
d7d174
any of the services that it supports.
d7d174
d7d174
# Don't duplicate the same documentation
d7d174
%global _docdir_fmt %{name}
69cb05
69cb05
Name:           python-libcloud
2011bc
Version:        2.2.1
1d153f
Release:        9%{?dist}
69cb05
Summary:        A Python library to address multiple cloud provider APIs
69cb05
69cb05
License:        ASL 2.0
69cb05
URL:            http://libcloud.apache.org/
d7d174
Source0:        https://files.pythonhosted.org/packages/source/a/%{tarball_name}/%{tarball_name}-%{version}.tar.gz
69cb05
69cb05
BuildArch:      noarch
1c58ae
d7d174
%description %{_description}
379cdb
d7d174
%package -n python2-%{srcname}
d7d174
Summary:        %{summary}
a25d11
BuildRequires:  python2-devel
d7d174
BuildRequires:  python2-setuptools
776623
BuildRequires:  python2-pytest-runner
d7d174
%{?python_provide:%python_provide python2-%{srcname}}
d7d174
d7d174
%description -n python2-%{srcname} %{_description}
d7d174
Python 2 version.
69cb05
be63c9
%package -n python%{python3_pkgversion}-%{srcname}
d7d174
Summary:        %{summary}
be63c9
BuildRequires:  python%{python3_pkgversion}-devel
be63c9
BuildRequires:  python%{python3_pkgversion}-setuptools
be63c9
BuildRequires:  python%{python3_pkgversion}-pytest-runner
be63c9
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
d7d174
4cdf7e
Patch0: 000-async.patch
4cdf7e
be63c9
%description -n python%{python3_pkgversion}-%{srcname} %{_description}
d7d174
Python 3 version.
69cb05
69cb05
%prep
4cdf7e
%autosetup -p1 -n %{tarball_name}-%{version}
69cb05
d7d174
# Delete shebang lines in the demos
d7d174
sed -i '1d' demos/gce_demo.py demos/compute_demo.py
69cb05
d7d174
%build
d7d174
%py2_build
d7d174
%py3_build
a25d11
d7d174
# Fix permissions for demos
d7d174
chmod -x demos/gce_demo.py demos/compute_demo.py
69cb05
d7d174
%install
d7d174
%py2_install
d7d174
%py3_install
d7d174
d7d174
# Don't package the test suite. We dont run it anyway
d7d174
# because it requires some valid cloud credentials
d7d174
rm -r $RPM_BUILD_ROOT%{python2_sitelib}/%{srcname}/test
d7d174
rm -r $RPM_BUILD_ROOT%{python3_sitelib}/%{srcname}/test
d7d174
d7d174
%files -n python2-%{srcname}
d7d174
%doc README.rst demos/
d7d174
%license LICENSE
d7d174
%{python2_sitelib}/%{srcname}/
d7d174
%{python2_sitelib}/%{eggname}-*.egg-info/
d7d174
be63c9
%files -n python%{python3_pkgversion}-%{srcname}
d7d174
%doc README.rst demos/
d7d174
%license LICENSE
d7d174
%{python3_sitelib}/%{srcname}/
d7d174
%{python3_sitelib}/%{eggname}-*.egg-info/
69cb05
69cb05
%changelog
1d153f
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-9
1d153f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
1d153f
4cdf7e
* Mon Jul 16 2018 Marcel Plch <mplch@redhat.com> - 2.2.1-8
4cdf7e
- Patch for Python 3.7
4cdf7e
2ff10d
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-7
2ff10d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2ff10d
eb4ba6
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.2.1-6
eb4ba6
- Rebuilt for Python 3.7
eb4ba6
be63c9
* Mon Feb 26 2018 Sayan Chowdhury <sayanchowdhury@fedoraproject.org> 2.2.1-5
be63c9
- Rebuilt the package to enable the python3-libcloud package
be63c9
bbd1e5
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-4
bbd1e5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
bbd1e5
b54f0a
* Thu Nov 23 2017 Sayan Chowdhury <sayanchowdhury@fedoraproject.org> - 2.2.1-3
b54f0a
- Fix the gitignore file for the package
b54f0a
776623
* Wed Nov 22 2017 Sayan Chowdhury <sayanchowdhury@fedoraproject.org> - 2.2.1-2
776623
- Add package python-pytest-runner as BuildRequires
776623
2011bc
* Wed Oct 25 2017 Sayan Chowdhury <sayanchowdhury@fedoraproject.org> - 2.2.1-1
2011bc
- Apache Libcloud version 2.2.1 upgrade
2011bc
8ff279
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0rc2-2
8ff279
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
8ff279
8412cf
* Wed Apr 19 2017 Daniel Bruno <dbruno@fedoraproject.org> - 2.0.0-1
8412cf
- Apache Libcloud version 2.0.0rc2 upgrade
8412cf
c38bda
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-4
c38bda
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
c38bda
c8605e
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.3.0-3
c8605e
- Rebuild for Python 3.6
c8605e
d7d174
* Wed Nov 16 2016 Dominika Krejci <dkrejci@redhat.com> - 1.3.0-2
d7d174
- Add python3 subpackage
d7d174
- Include the upstream demos
d7d174
- Don't package the test suite
d7d174
a25d11
* Mon Oct 24 2016 Daniel Bruno <dbruno@fedoraproject.org> - 1.3.0-1
a25d11
- Python Libcloud 1.3.0 release
7dbcac
a25d11
* Tue Jul 12 2016 Daniel Bruno <dbruno@fedoraproject.org> - 1.1.0-1
a25d11
- Python Libcloud 1.1.0 release
0ca6b3
472684
* Sun Jan 24 2016 Daniel Bruno <dbruno@fedoraprojec.org> - 0.20.1-1
472684
- This is a bug-fix release of the 0.20 series.
472684
a25d11
* Thu Jan 07 2016 Daniel Bruno dbruno@fedoraproject.org - 0.20.0-1
a25d11
- Release 0.20.0 with new features and improvements
a25d11
a25d11
* Mon Aug 10 2015 Daniel Bruno <dbruno@fedoraproject.org> - 0.18.0-1
a25d11
- Apache Libcloud 0.18.0 release with bug fixes and new features
379cdb
a25d11
* Fri Feb 20 2015 Daniel Bruno <dbruno@fedoraproject.org> - 0.17.0-1
a25d11
- Apache Libcloud 0.17.0 release
aba8c5
a25d11
* Wed Nov 12 2014 Daniel Bruno <dbruno@fedoraproject.org> - 0.16.0-1
a25d11
- First release in the 0.16 series
a25d11
a25d11
* Mon Jul 21 2014 Daniel Bruno <dbruno@fedoraproject.org -="" 0.15.1-2<="" code="">
a25d11
- Libcloud 0.15.1 bug-fix release
ede8a6
1c58ae
* Fri Jun 27 2014 Daniel Bruno <dbruno@fedoraproject.org> - 0.15.0-1
1c58ae
- First release in the 0.15 series which it brings many new features,
1c58ae
  improvements and bug fixes
5b93ee
66043e
* Mon Feb 10 2014 Daniel Bruno <dbruno@fedoraproject.org> - 0.14.1-1
66043e
- Release 0.14.1 includes some bug-fixes, improvements and new features
66043e
ffb340
* Fri Jan 31 2014 Daniel Bruno <dbruno@fedoraproject.org> - 0.14.0-1
ffb340
- Libcloud new release 0.14.0
ffb340
7d12b3
* Fri Jan 03 2014 Daniel Bruno <dbruno@fedoraproject.org> - 0.13.3-1
7d12b3
- Security Fix - BUG: 1047867 1047868
7d12b3
8294bd
* Thu Sep 19 2013 Daniel Bruno <dbruno@fedoraproject.org> - 0.13.2-11
8294bd
- Some bug fixes from Upstream
8294bd
1e80bb
* Mon Sep 09 2013 Daniel Bruno <dbruno@fedoraproject.org> - 0.13.1-10
1e80bb
- Update to upstream release 0.13.1
70f4f8
6c0559
* Mon Jul 01 2013 Daniel Bruno dbruno@fedoraproject.org - 0.13.0-9
6c0559
- Update to upstream release 0.13.0, more details on Release Notes.
6c0559
8f5f71
* Thu May 16 2013 Daniel Bruno dbruno@fedoraproject.org - 0.12.4-8
8f5f71
- Update to upstream version 0.12.4
8f5f71
dfc59a
* Tue Mar 26 2013 Daniel Bruno dbruno@fedoraproject.org - 0.12.3-6
dfc59a
- Update to upstream version 0.12.3
dfc59a
db8838
* Tue Feb 19 2013 Daniel Bruno dbruno@fedoraproject.org - 0.12.1-5
db8838
- Update to upstream version 0.12.1
fc4eee
db8838
* Wed Oct 10 2012 Daniel Bruno dbruno@fedoraproject.org - 0.11.3-4
db8838
- Update to 0.11.3
db8838
db8838
* Thu Aug 02 2012 Daniel Bruno dbruno@fedoraproject.org - 0.11.1-3
db8838
- Updating to upstream release 0.11.1
69cb05
69cb05
* Fri Jun 15 2012 Daniel Bruno dbruno@fedoraproject.org - 0.9.1-2
69cb05
- Update to upstream version 0.10.1
69cb05
69cb05
* Mon Apr 16 2012 Daniel Bruno dbruno@fedoraproject.org - 0.9.1-1
69cb05
- update to 0.9.1
69cb05
69cb05
* Mon Mar 26 2012 Daniel Bruno dbruno@fedoraproject.org - 0.8.0-4
69cb05
- Updating release to 0.8.0
69cb05
69cb05
* Fri Dec 30 2011 Daniel Bruno dbruno@fedoraproject.org - 0.6.2-3
69cb05
- Standardizing the description
69cb05
69cb05
* Tue Nov 22 2011 Daniel Bruno dbruno@fedoraproject.org - 0.6.2-2
69cb05
- First build package build
a25d11