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