Blame python-abclient.spec

3651876
%global pypi_name abclient
3651876
3651876
%global common_desc \
3651876
Abclient is a python library for EISOO AnyBackup APIs. It is a client \
3651876
library for EISOO AnyBackup APIs. It allows openstack karbor to \
3651876
create backups for databases and file systems.
3651876
3651876
%if 0%{?fedora}
077959b
%global with_python3 0
3651876
%endif
3651876
3651876
Name:		python-%{pypi_name}
3651876
Version:	0.2.3
78f6930
Release:	4%{?dist}
3651876
Summary:	Python client library for EISOO AnyBackup API
3651876
3651876
License:	ASL 2.0
3651876
URL:		https://pypi.python.org/pypi/abclient
3651876
Source0:	https://files.pythonhosted.org/packages/source/a/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
3651876
BuildArch:	noarch
3651876
3651876
%description
3651876
%{common_desc}
3651876
3651876
%package -n	python2-%{pypi_name}
3651876
Summary:	Python client library for EISOO AnyBackup API
3651876
%{?python_provide:%python_provide python2-%{pypi_name}}
3651876
3651876
BuildRequires:	python2-devel
78f6930
BuildRequires:	python-setuptools
3651876
3651876
Requires:	python-requests
3651876
Requires:	python-oslo-utils
077959b
Requires:	python-oslo-log
3651876
3651876
%description -n python2-%{pypi_name}
3651876
%{common_desc}
3651876
3651876
%if 0%{?with_python3}
3651876
%package -n	python3-%{pypi_name}
3651876
Summary:	Python client library for EISOO AnyBackup API
3651876
%{?python_provide:%python_provide python3-%{pypi_name}}
3651876
3651876
BuildRequires:	python3-devel
3651876
BuildRequires:	python3-setuptools
3651876
3651876
Requires:	python3-requests
3651876
Requires:	python3-oslo-utils
3651876
Requires:	python3-oslo-log 
3651876
3651876
%description -n python3-%{pypi_name}
3651876
%{common_desc}
3651876
%endif
3651876
3651876
%prep
3651876
%autosetup -n %{pypi_name}-%{version}
3651876
# Remove bundled egg-info
3651876
rm -rf %{pypi_name}.egg-info
3651876
# Remove requirements.txt
3651876
rm -f requirements.txt
3651876
3651876
%build
3651876
%py2_build
3651876
3651876
%if 0%{?with_python3}
3651876
%py3_build
3651876
%endif
3651876
3651876
%install
3651876
%if 0%{?with_python3}
3651876
%py3_install
3651876
%endif
3651876
3651876
%py2_install
3651876
3651876
%files -n python2-%{pypi_name}
3651876
%license LICENSE
3651876
%doc README.rst
3651876
%{python2_sitelib}/%{pypi_name}
3651876
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
3651876
3651876
%if 0%{?with_python3}
3651876
%files -n python3-%{pypi_name}
3651876
%license LICENSE
3651876
%doc README.rst
3651876
%{python3_sitelib}/%{pypi_name}
3651876
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
3651876
%endif
3651876
3651876
%changelog
78f6930
* Mon Jul 17 2017 Chandan Kumar <chkumar246@gmail.com> - 0.2.3-4
78f6930
- Fixed setuptools package name
78f6930
077959b
* Mon Jul 17 2017 Chandan Kumar <chkumar246@gmail.com> - 0.2.3-3
78f6930
- Disable python3 for epel7
077959b
3651876
* Fri Jul 14 2017 Chandan Kumar <chkumar246@gmail.com> - 0.2.3-2
3651876
- Fixed Python3 subpackage requires.
3651876
- Fixed Package URL
3651876
3651876
* Fri Jul 14 2017 Chandan Kumar <chkumar246@gmail.com> - 0.2.3-1
3651876
- Initial package.