From c283f67b2aa6fb4e5550e352c9d804c24ea5a8dd Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Wed, 17 May 2023 03:18:23 +0000 Subject: automatic import of python-wagtail-storages --- .gitignore | 1 + python-wagtail-storages.spec | 104 +++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 106 insertions(+) create mode 100644 python-wagtail-storages.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..40708e8 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/wagtail-storages-0.5.1.tar.gz diff --git a/python-wagtail-storages.spec b/python-wagtail-storages.spec new file mode 100644 index 0000000..76a97c6 --- /dev/null +++ b/python-wagtail-storages.spec @@ -0,0 +1,104 @@ +%global _empty_manifest_terminate_build 0 +Name: python-wagtail-storages +Version: 0.5.1 +Release: 1 +Summary: Use AWS S3 with private documents in Wagtail. +License: BSD 2-Clause License +URL: https://github.com/torchbox/wagtail-storages +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/63/c0/79008c3195de9d79c55922b7c95d15e6b6f08458185bffed1c7caccf6a8b/wagtail-storages-0.5.1.tar.gz +BuildArch: noarch + +Requires: python3-Wagtail +Requires: python3-django-storages[boto3] +Requires: python3-coverage +Requires: python3-factory-boy +Requires: python3-moto +Requires: python3-black +Requires: python3-isort +Requires: python3-flake8 + +%description +This package fills the missing gap in using AWS S3 together with Wagtail. This +package will be useful if you want to: +- Use AWS S3 bucket for hosting Wagtail documents. +- Put the bucket behind the CDN so that the bucket is not called directly each + time. +- Allow editors to use privacy controls on documents, whilst using CDN. +- Avoid time-outs because of downloads being proxied through Wagtail views. + *Note: you cannot use the document* `redirect view`__ *if you want your documents to be truly private.* +__ WagtailRedirectView_ + +%package -n python3-wagtail-storages +Summary: Use AWS S3 with private documents in Wagtail. +Provides: python-wagtail-storages +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-wagtail-storages +This package fills the missing gap in using AWS S3 together with Wagtail. This +package will be useful if you want to: +- Use AWS S3 bucket for hosting Wagtail documents. +- Put the bucket behind the CDN so that the bucket is not called directly each + time. +- Allow editors to use privacy controls on documents, whilst using CDN. +- Avoid time-outs because of downloads being proxied through Wagtail views. + *Note: you cannot use the document* `redirect view`__ *if you want your documents to be truly private.* +__ WagtailRedirectView_ + +%package help +Summary: Development documents and examples for wagtail-storages +Provides: python3-wagtail-storages-doc +%description help +This package fills the missing gap in using AWS S3 together with Wagtail. This +package will be useful if you want to: +- Use AWS S3 bucket for hosting Wagtail documents. +- Put the bucket behind the CDN so that the bucket is not called directly each + time. +- Allow editors to use privacy controls on documents, whilst using CDN. +- Avoid time-outs because of downloads being proxied through Wagtail views. + *Note: you cannot use the document* `redirect view`__ *if you want your documents to be truly private.* +__ WagtailRedirectView_ + +%prep +%autosetup -n wagtail-storages-0.5.1 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-wagtail-storages -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 17 2023 Python_Bot - 0.5.1-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..546f18b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +af4146f348a5b2861b135870d7d93b2e wagtail-storages-0.5.1.tar.gz -- cgit v1.2.3