From 1b6282edc794241f5b529d5863781b4c72072862 Mon Sep 17 00:00:00 2001 From: Mohan Boddu Date: Aug 21 2020 14:14:06 +0000 Subject: Revert "Retired: Fails to install" Unretirement for https://pagure.io/releng/issue/9700 This reverts commit 3de5cd06a44948f3c53c0b5ebf17d36507f7ac67. --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..137b4cd --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/django-storages-1.8.tar.gz diff --git a/README.md b/README.md new file mode 100644 index 0000000..91e96fc --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# python-django-storages + +The python-django-storages package \ No newline at end of file diff --git a/dead.package b/dead.package deleted file mode 100644 index 5e251b6..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -Retired: Fails to install diff --git a/python-django-storages.spec b/python-django-storages.spec new file mode 100644 index 0000000..af84875 --- /dev/null +++ b/python-django-storages.spec @@ -0,0 +1,168 @@ +%global srcname django-storages + +Name: python-%{srcname} +Version: 1.8 +Release: 4%{?dist} +Summary: Support for many storage backends in Django + +License: BSD +URL: https://github.com/jschneier/django-storages +Source: %{pypi_source} + +BuildArch: noarch + +%global _description %{expand: +%{summary}.} + +%description %{_description} + +%package -n python3-%{srcname} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{srcname}} +BuildRequires: python3-devel +BuildRequires: python3dist(setuptools) + +%description -n python3-%{srcname} %{_description} + +Python 3 version. + +%package -n python3-%{srcname}+azure +Summary: %{summary} +%{?python_provide:%python_provide python3-%{srcname}+azure} +Provides: python3dist(%{srcname}/azure) = %{version} +Provides: python%{python3_version}dist(%{srcname}/azure) = %{version} +Requires: python%{python3_version}dist(%{srcname}) = %{version} +Requires: (python%{python3_version}dist(azure-storage-blob) >= 1.3.1 with python%{python3_version}dist(azure-storage-blob) < 12.0.0) + +%description -n python3-%{srcname}+azure %{_description} + +"azure" extras. Python 3 version. + +%package -n python3-%{srcname}+boto +Summary: %{summary} +%{?python_provide:%python_provide python3-%{srcname}+boto} +Provides: python3dist(%{srcname}/boto) = %{version} +Provides: python%{python3_version}dist(%{srcname}/boto) = %{version} +Requires: python%{python3_version}dist(%{srcname}) = %{version} +Requires: python%{python3_version}dist(boto) >= 2.32.0 + +%description -n python3-%{srcname}+boto %{_description} + +"boto" extras. Python 3 version. + +%package -n python3-%{srcname}+boto3 +Summary: %{summary} +%{?python_provide:%python_provide python3-%{srcname}+boto3} +Provides: python3dist(%{srcname}/boto3) = %{version} +Provides: python%{python3_version}dist(%{srcname}/boto3) = %{version} +Requires: python%{python3_version}dist(%{srcname}) = %{version} +Requires: python%{python3_version}dist(boto3) >= 1.4.4 + +%description -n python3-%{srcname}+boto3 %{_description} + +"boto3" extras. Python 3 version. + +%package -n python3-%{srcname}+dropbox +Summary: %{summary} +%{?python_provide:%python_provide python3-%{srcname}+dropbox} +Provides: python3dist(%{srcname}/dropbox) = %{version} +Provides: python%{python3_version}dist(%{srcname}/dropbox) = %{version} +Requires: python%{python3_version}dist(%{srcname}) = %{version} +Requires: python%{python3_version}dist(dropbox) >= 7.2.1 + +%description -n python3-%{srcname}+dropbox %{_description} + +"dropbox" extras. Python 3 version. + +%package -n python3-%{srcname}+google +Summary: %{summary} +%{?python_provide:%python_provide python3-%{srcname}+google} +Provides: python3dist(%{srcname}/google) = %{version} +Provides: python%{python3_version}dist(%{srcname}/google) = %{version} +Requires: python%{python3_version}dist(%{srcname}) = %{version} +Requires: python%{python3_version}dist(google-cloud-storage) >= 1.15.0 + +%description -n python3-%{srcname}+google %{_description} + +"google" extras. Python 3 version. + +%package -n python3-%{srcname}+libcloud +Summary: %{summary} +%{?python_provide:%python_provide python3-%{srcname}+libcloud} +Provides: python3dist(%{srcname}/libcloud) = %{version} +Provides: python%{python3_version}dist(%{srcname}/libcloud) = %{version} +Requires: python%{python3_version}dist(%{srcname}) = %{version} +Requires: python%{python3_version}dist(apache-libcloud) + +%description -n python3-%{srcname}+libcloud %{_description} + +"libcloud" extras. Python 3 version. + +%package -n python3-%{srcname}+sftp +Summary: %{summary} +%{?python_provide:%python_provide python3-%{srcname}+sftp} +Provides: python3dist(%{srcname}/sftp) = %{version} +Provides: python%{python3_version}dist(%{srcname}/sftp) = %{version} +Requires: python%{python3_version}dist(%{srcname}) = %{version} +Requires: python%{python3_version}dist(paramiko) + +%description -n python3-%{srcname}+sftp %{_description} + +"sftp" extras. Python 3 version. + +%prep +%autosetup -n %{srcname}-%{version} -p1 +rm -vr *.egg-info + +%build +%py3_build + +%install +%py3_install + +# Tests require too many dependencies +#%%check +#export DJANGO_SETTINGS_MODULE=tests.settings +#%%python3 -m pytest -v tests + +%files -n python3-%{srcname} +%license LICENSE +%doc README.rst CHANGELOG.rst +%{python3_sitelib}/storages/ +%{python3_sitelib}/django_storages-*.egg-info/ + +%files -n python3-%{srcname}+azure +%{?python_extras_subpkg:%ghost %{python3_sitelib}/django_storages-*.egg-info} + +%files -n python3-%{srcname}+boto +%{?python_extras_subpkg:%ghost %{python3_sitelib}/django_storages-*.egg-info} + +%files -n python3-%{srcname}+boto3 +%{?python_extras_subpkg:%ghost %{python3_sitelib}/django_storages-*.egg-info} + +%files -n python3-%{srcname}+dropbox +%{?python_extras_subpkg:%ghost %{python3_sitelib}/django_storages-*.egg-info} + +# Missing dependency for google connector +#files -n python3-%{srcname}+google +#{?python_extras_subpkg:%%ghost %%{python3_sitelib}/django_storages-*.egg-info} + +%files -n python3-%{srcname}+libcloud +%{?python_extras_subpkg:%ghost %{python3_sitelib}/django_storages-*.egg-info} + +%files -n python3-%{srcname}+sftp +%{?python_extras_subpkg:%ghost %{python3_sitelib}/django_storages-*.egg-info} + + +%changelog +* Wed Jul 29 2020 Fedora Release Engineering - 1.8-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Fri Jul 10 2020 Miro Hrončok - 1.8-3 +- Add metadata for Python extras subpackages + +* Tue May 26 2020 Miro Hrončok - 1.8-2 +- Rebuilt for Python 3.9 + +* Fri Jan 31 2020 Igor Raits - 1.8-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..f91c085 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (django-storages-1.8.tar.gz) = 40767f0ea3fe27282c100011ca514850404dd62707fbd2ec9a06e509d834b33ca7d1b1f73c9ba21378514ada73260615bba281090786f1717ab924cfdbbd0f8d