Rebuilt the package to enable the python3-libcloud package

Signed-off-by: Sayan Chowdhury <sayan.chowdhury2012@gmail.com>
epel9
Sayan Chowdhury 7 years ago
parent bbd1e5a7fb
commit be63c9dbf7
No known key found for this signature in database
GPG Key ID: B02399319CD05C8B

@ -10,13 +10,9 @@ any of the services that it supports.
# Don't duplicate the same documentation # Don't duplicate the same documentation
%global _docdir_fmt %{name} %global _docdir_fmt %{name}
%if 0%{?fedora}
%global with_python3 0
%endif
Name: python-libcloud Name: python-libcloud
Version: 2.2.1 Version: 2.2.1
Release: 4%{?dist} Release: 5%{?dist}
Summary: A Python library to address multiple cloud provider APIs Summary: A Python library to address multiple cloud provider APIs
Group: Development/Languages Group: Development/Languages
@ -38,17 +34,15 @@ BuildRequires: python2-pytest-runner
%description -n python2-%{srcname} %{_description} %description -n python2-%{srcname} %{_description}
Python 2 version. Python 2 version.
%if 0%{?with_python3} %package -n python%{python3_pkgversion}-%{srcname}
%package -n python3-%{srcname}
Summary: %{summary} Summary: %{summary}
BuildRequires: python3-devel BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python3-setuptools BuildRequires: python%{python3_pkgversion}-setuptools
BuildRequires: python3-pytest-runner BuildRequires: python%{python3_pkgversion}-pytest-runner
%{?python_provide:%python_provide python3-%{srcname}} %{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
%description -n python3-%{srcname} %{_description} %description -n python%{python3_pkgversion}-%{srcname} %{_description}
Python 3 version. Python 3 version.
%endif
%prep %prep
%autosetup -n %{tarball_name}-%{version} %autosetup -n %{tarball_name}-%{version}
@ -58,25 +52,19 @@ sed -i '1d' demos/gce_demo.py demos/compute_demo.py
%build %build
%py2_build %py2_build
%if 0%{?with_python3}
%py3_build %py3_build
%endif
# Fix permissions for demos # Fix permissions for demos
chmod -x demos/gce_demo.py demos/compute_demo.py chmod -x demos/gce_demo.py demos/compute_demo.py
%install %install
%py2_install %py2_install
%if 0%{?with_python3}
%py3_install %py3_install
%endif
# Don't package the test suite. We dont run it anyway # Don't package the test suite. We dont run it anyway
# because it requires some valid cloud credentials # because it requires some valid cloud credentials
rm -r $RPM_BUILD_ROOT%{python2_sitelib}/%{srcname}/test rm -r $RPM_BUILD_ROOT%{python2_sitelib}/%{srcname}/test
%if 0%{?with_python3}
rm -r $RPM_BUILD_ROOT%{python3_sitelib}/%{srcname}/test rm -r $RPM_BUILD_ROOT%{python3_sitelib}/%{srcname}/test
%endif
%files -n python2-%{srcname} %files -n python2-%{srcname}
%doc README.rst demos/ %doc README.rst demos/
@ -84,15 +72,16 @@ rm -r $RPM_BUILD_ROOT%{python3_sitelib}/%{srcname}/test
%{python2_sitelib}/%{srcname}/ %{python2_sitelib}/%{srcname}/
%{python2_sitelib}/%{eggname}-*.egg-info/ %{python2_sitelib}/%{eggname}-*.egg-info/
%if 0%{?with_python3} %files -n python%{python3_pkgversion}-%{srcname}
%files -n python3-%{srcname}
%doc README.rst demos/ %doc README.rst demos/
%license LICENSE %license LICENSE
%{python3_sitelib}/%{srcname}/ %{python3_sitelib}/%{srcname}/
%{python3_sitelib}/%{eggname}-*.egg-info/ %{python3_sitelib}/%{eggname}-*.egg-info/
%endif
%changelog %changelog
* Mon Feb 26 2018 Sayan Chowdhury <sayanchowdhury@fedoraproject.org> 2.2.1-5
- Rebuilt the package to enable the python3-libcloud package
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-4 * Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

Loading…
Cancel
Save