Blame python-django-storages.spec

5fcd155
%global srcname django-storages
5fcd155
5fcd155
Name:           python-%{srcname}
6629bb1
Version:        1.11.1
c12277d
Release:        2%{?dist}
5fcd155
Summary:        Support for many storage backends in Django
5fcd155
5fcd155
License:        BSD
5fcd155
URL:            https://github.com/jschneier/django-storages
5fcd155
Source:         %{pypi_source}
5fcd155
BuildArch:      noarch
5fcd155
5fcd155
%global _description %{expand:
5fcd155
%{summary}.}
5fcd155
5fcd155
%description %{_description}
5fcd155
5fcd155
%package     -n python3-%{srcname}
5fcd155
Summary:        %{summary}
5fcd155
%{?python_provide:%python_provide python3-%{srcname}}
5fcd155
BuildRequires:  python3-devel
5fcd155
BuildRequires:  python3dist(setuptools)
5fcd155
5fcd155
%description -n python3-%{srcname} %{_description}
5fcd155
5fcd155
%package     -n python3-%{srcname}+azure
5fcd155
Summary:        %{summary}
5fcd155
%{?python_provide:%python_provide python3-%{srcname}+azure}
5fcd155
Provides:       python3dist(%{srcname}/azure) = %{version}
5fcd155
Provides:       python%{python3_version}dist(%{srcname}/azure) = %{version}
5fcd155
Requires:       python%{python3_version}dist(%{srcname}) = %{version}
5fcd155
Requires:       (python%{python3_version}dist(azure-storage-blob) >= 1.3.1 with python%{python3_version}dist(azure-storage-blob) < 12.0.0)
5fcd155
5fcd155
%description -n python3-%{srcname}+azure %{_description}
5fcd155
5fcd155
"azure" extras. Python 3 version.
5fcd155
5fcd155
%package     -n python3-%{srcname}+boto3
5fcd155
Summary:        %{summary}
5fcd155
%{?python_provide:%python_provide python3-%{srcname}+boto3}
5fcd155
Provides:       python3dist(%{srcname}/boto3) = %{version}
5fcd155
Provides:       python%{python3_version}dist(%{srcname}/boto3) = %{version}
5fcd155
Requires:       python%{python3_version}dist(%{srcname}) = %{version}
5fcd155
Requires:       python%{python3_version}dist(boto3) >= 1.4.4
5fcd155
5fcd155
%description -n python3-%{srcname}+boto3 %{_description}
5fcd155
5fcd155
"boto3" extras.
5fcd155
5fcd155
%package     -n python3-%{srcname}+dropbox
5fcd155
Summary:        %{summary}
5fcd155
%{?python_provide:%python_provide python3-%{srcname}+dropbox}
5fcd155
Provides:       python3dist(%{srcname}/dropbox) = %{version}
5fcd155
Provides:       python%{python3_version}dist(%{srcname}/dropbox) = %{version}
5fcd155
Requires:       python%{python3_version}dist(%{srcname}) = %{version}
6629bb1
Requires:       python%{python3_version}dist(dropbox) >= 7.2.1
5fcd155
5fcd155
%description -n python3-%{srcname}+dropbox %{_description}
5fcd155
5fcd155
"dropbox" extras.
5fcd155
5fcd155
%package     -n python3-%{srcname}+google
5fcd155
Summary:        %{summary}
5fcd155
%{?python_provide:%python_provide python3-%{srcname}+google}
5fcd155
Provides:       python3dist(%{srcname}/google) = %{version}
5fcd155
Provides:       python%{python3_version}dist(%{srcname}/google) = %{version}
5fcd155
Requires:       python%{python3_version}dist(%{srcname}) = %{version}
5fcd155
Requires:       python%{python3_version}dist(google-cloud-storage) >= 1.15.0
5fcd155
5fcd155
%description -n python3-%{srcname}+google %{_description}
5fcd155
5fcd155
"google" extras.
5fcd155
5fcd155
%package     -n python3-%{srcname}+libcloud
5fcd155
Summary:        %{summary}
5fcd155
%{?python_provide:%python_provide python3-%{srcname}+libcloud}
5fcd155
Provides:       python3dist(%{srcname}/libcloud) = %{version}
5fcd155
Provides:       python%{python3_version}dist(%{srcname}/libcloud) = %{version}
5fcd155
Requires:       python%{python3_version}dist(%{srcname}) = %{version}
5fcd155
Requires:       python%{python3_version}dist(apache-libcloud)
5fcd155
5fcd155
%description -n python3-%{srcname}+libcloud %{_description}
5fcd155
5fcd155
"libcloud" extras.
5fcd155
5fcd155
%package     -n python3-%{srcname}+sftp
5fcd155
Summary:        %{summary}
5fcd155
%{?python_provide:%python_provide python3-%{srcname}+sftp}
5fcd155
Provides:       python3dist(%{srcname}/sftp) = %{version}
5fcd155
Provides:       python%{python3_version}dist(%{srcname}/sftp) = %{version}
5fcd155
Requires:       python%{python3_version}dist(%{srcname}) = %{version}
5fcd155
Requires:       python%{python3_version}dist(paramiko)
5fcd155
5fcd155
%description -n python3-%{srcname}+sftp %{_description}
5fcd155
5fcd155
"sftp" extras.
5fcd155
5fcd155
%prep
5fcd155
%autosetup -n %{srcname}-%{version} -p1
5fcd155
rm -vr *.egg-info
5fcd155
5fcd155
%build
5fcd155
%py3_build
5fcd155
5fcd155
%install
5fcd155
%py3_install
5fcd155
5fcd155
# Tests require too many dependencies
5fcd155
#%%check
5fcd155
#export DJANGO_SETTINGS_MODULE=tests.settings
5fcd155
#%%python3 -m pytest -v tests
5fcd155
5fcd155
%files -n python3-%{srcname}
5fcd155
%license LICENSE
5fcd155
%doc README.rst CHANGELOG.rst
5fcd155
%{python3_sitelib}/storages/
5fcd155
%{python3_sitelib}/django_storages-*.egg-info/
5fcd155
6629bb1
# Missing requirement azure-storage-blob
6629bb1
#%%files -n python3-%%{srcname}+azure
6629bb1
#%%{?python_extras_subpkg:%%ghost %%{python3_sitelib}/django_storages-*.egg-info}
5fcd155
5fcd155
%files -n python3-%{srcname}+boto3
5fcd155
%{?python_extras_subpkg:%ghost %{python3_sitelib}/django_storages-*.egg-info}
5fcd155
5fcd155
%files -n python3-%{srcname}+dropbox
5fcd155
%{?python_extras_subpkg:%ghost %{python3_sitelib}/django_storages-*.egg-info}
5fcd155
5fcd155
# Missing requirement google-cloud-storage
6629bb1
#%%files -n python3-%%{srcname}+google
6629bb1
#%%{?python_extras_subpkg:%%ghost %%{python3_sitelib}/django_storages-*.egg-info}
5fcd155
5fcd155
%files -n python3-%{srcname}+libcloud
5fcd155
%{?python_extras_subpkg:%ghost %{python3_sitelib}/django_storages-*.egg-info}
5fcd155
5fcd155
%files -n python3-%{srcname}+sftp
5fcd155
%{?python_extras_subpkg:%ghost %{python3_sitelib}/django_storages-*.egg-info}
5fcd155
5fcd155
%changelog
c12277d
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.1-2
c12277d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
c12277d
6629bb1
* Sun Jan 10 2021 Igor Raits <ignatenkobrain@fedoraproject.org> - 1.11.1-1
6629bb1
- Update to 1.11.1
6629bb1
5fcd155
* Thu Nov 26 2020 Fabian Affolter <mail@fabian-affolter.ch> - 1.10.1-1
5fcd155
- Update to latest upstream release 1.10.1
5fcd155
5fcd155
* Thu Aug 20 2020 Fabian Affolter <mail@fabian-affolter.ch> - 1.9.1-1
5fcd155
- Update to latest upstream release 1.9.1
5fcd155
5fcd155
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.8-4
5fcd155
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
5fcd155
5fcd155
* Fri Jul 10 2020 Miro Hrončok <mhroncok@redhat.com> - 1.8-3
5fcd155
- Add metadata for Python extras subpackages
5fcd155
5fcd155
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.8-2
5fcd155
- Rebuilt for Python 3.9
5fcd155
5fcd155
* Fri Jan 31 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 1.8-1
5fcd155
- Initial package