Accepting request 494498 from devel:languages:python

1

OBS-URL: https://build.opensuse.org/request/show/494498
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-s3transfer?expand=0&rev=4
This commit is contained in:
Dominique Leuenberger 2017-05-17 08:53:59 +00:00 committed by Git OBS Bridge
parent 12bc616704
commit 19f5af0883
2 changed files with 21 additions and 11 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu May 11 01:37:16 UTC 2017 - toddrme2178@gmail.com
- Implement single-spec version.
- Update source URL.
-------------------------------------------------------------------
Thu Jan 19 09:52:30 UTC 2017 - dmueller@suse.com

View File

@ -16,6 +16,7 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-s3transfer
Version: 0.1.10
Release: 0
@ -23,19 +24,21 @@ Summary: Python S3 transfer manager
License: Apache-2.0
Group: Development/Languages/Python
Url: https://github.com/boto/s3transfer
Source0: https://pypi.io/packages/source/s/s3transfer/s3transfer-%{version}.tar.gz
Source0: https://files.pythonhosted.org/packages/source/s/s3transfer/s3transfer-%{version}.tar.gz
Patch0: hide_py_pckgmgmt.patch
BuildRequires: python-setuptools
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
Requires: python-botocore <= 2.0.0
Requires: python-botocore >= 1.4.10
%ifpython2
Requires: python-futures <= 4.0.0
Requires: python-futures >= 2.2.0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%python_subpackages
%description
A transfer manager for Amazon Web Services S3
@ -45,15 +48,16 @@ A transfer manager for Amazon Web Services S3
%patch0
%build
python setup.py build
%python_build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot} --install-scripts=%{_bindir}
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files
%files %{python_files}
%defattr(-,root,root,-)
%doc LICENSE.txt README.rst
%{python_sitelib}/s3transfer/
%{python_sitelib}/s3transfer-%{version}-py%{py_ver}.egg-info
%{python_sitelib}/s3transfer-%{version}-py*.egg-info
%changelog