Blame PyDrive.spec

facd28d
%global pkgname PyDrive
facd28d
%global sum A wrapper library of google-api-python-client for Google Drive API tasks
facd28d
facd28d
%if 0%{?fedora} >= 13
facd28d
%global with_python3 1
facd28d
%else
facd28d
%if 0%{?rhel} >= 8
facd28d
%global with_python3 1
facd28d
%endif
facd28d
%endif
facd28d
facd28d
Name:           PyDrive
facd28d
Version:        1.3.1
df16d9d
Release:        5%{?dist}
facd28d
Summary:        %{sum}
facd28d
facd28d
License:        ASL 2.0 and BSD
facd28d
URL:            https://pypi.python.org/pypi/PyDrive
facd28d
Source0:        https://pypi.python.org/packages/52/e0/0e64788e5dd58ce2d6934549676243dc69d982f198524be9b99e9c2a4fd5/PyDrive-1.3.1.tar.gz
facd28d
facd28d
BuildArch:      noarch
Nick Bebout 83f3c2d
BuildRequires:  python2-devel python2-setuptools
facd28d
BuildRequires:  python2-oauth2client >= 4.0.0
facd28d
BuildRequires:  PyYAML >= 3.0
facd28d
BuildRequires:  python2-google-api-client >= 1.2
facd28d
%if 0%{?with_python3}
Nick Bebout 83f3c2d
BuildRequires:  python3-devel python3-setuptools
facd28d
BuildRequires:  python3-oauth2client >= 4.0.0
facd28d
BuildRequires:  python3-PyYAML >= 3.0
facd28d
BuildRequires:  python3-google-api-client >= 1.2
facd28d
%endif # if with_python3
facd28d
facd28d
%description
facd28d
An python module which provides a convenient example.
facd28d
facd28d
%package -n python2-%{pkgname}
facd28d
Summary:        %{sum}
facd28d
%{?python_provide:%python_provide python2-%{pkgname}}
facd28d
Requires:   python2-oauth2client >= 4.0.0
facd28d
Requires:   python2-google-api-client >= 1.2
facd28d
Requires:   PyYAML >= 3.0
facd28d
%description -n python2-%{pkgname}
facd28d
A wrapper library of google-api-python-client for Google Drive API tasks
facd28d
facd28d
%if 0%{?with_python3}
facd28d
%package -n python3-%{pkgname}
facd28d
Summary:        %{sum}
facd28d
%{?python_provide:%python_provide python3-%{pkgname}}
facd28d
Requires:   python3-oauth2client >= 4.0.0
facd28d
Requires:   python3-google-api-client >= 1.2
facd28d
Requires:   python3-PyYAML >= 3.0
facd28d
facd28d
%description -n python3-%{pkgname}
facd28d
A wrapper library of google-api-python-client for Google Drive API tasks
facd28d
%endif # if with_python3
facd28d
facd28d
%prep
facd28d
%autosetup -n %{name}-%{version}
facd28d
facd28d
%build
facd28d
%py2_build
facd28d
facd28d
%if 0%{?with_python3}
facd28d
%py3_build
facd28d
%endif # if with_python3
facd28d
facd28d
%install
facd28d
# Must do the python2 install first because the scripts in /usr/bin are
facd28d
# overwritten with every setup.py install, and in general we want the
facd28d
# python3 version to be the default.
facd28d
# If, however, we're installing separate executables for python2 and python3,
facd28d
# the order needs to be reversed so the unversioned executable is the python2 one.
facd28d
%py2_install
facd28d
facd28d
%if 0%{?with_python3}
facd28d
%py3_install
facd28d
%endif # if with_python3
facd28d
facd28d
# Note that there is no %%files section for the unversioned python module if we are building for several python runtimes
facd28d
%files -n python2-%{pkgname}
facd28d
%license LICENSE
facd28d
%{python2_sitelib}/*
facd28d
facd28d
%if 0%{?with_python3}
facd28d
%files -n python3-%{pkgname}
facd28d
%license LICENSE
facd28d
%{python3_sitelib}/*
facd28d
%endif # if with_python3
facd28d
facd28d
%changelog
df16d9d
* Tue Jun 19 2018 Miro HronĨok <mhroncok@redhat.com> - 1.3.1-5
df16d9d
- Rebuilt for Python 3.7
df16d9d
668755b
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-4
668755b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
668755b
Nick Bebout 83f3c2d
* Mon Sep 4 2017 Nick Bebout <nb@fedoraproject.org> - 1.3.1-3
Nick Bebout 83f3c2d
- Add BuildRequires for python2|3-setuptools
facd28d
* Fri Aug 4 2017 Nick Bebout <nb@fedoraproject.org> - 1.3.1-2
facd28d
- Update for review issues
facd28d
* Fri Aug 4 2017 Nick Bebout <nb@fedoraproject.org> - 1.3.1-1
facd28d
- Initial release