diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-17 03:18:23 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-17 03:18:23 +0000 |
| commit | c283f67b2aa6fb4e5550e352c9d804c24ea5a8dd (patch) | |
| tree | 12dc9bc4198d7888d1794584bf74804f75b56430 /python-wagtail-storages.spec | |
| parent | 2cae373f23a0ed360c7d806ceb20eeebd3ba1723 (diff) | |
automatic import of python-wagtail-storages
Diffstat (limited to 'python-wagtail-storages.spec')
| -rw-r--r-- | python-wagtail-storages.spec | 104 |
1 files changed, 104 insertions, 0 deletions
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 <Python_Bot@openeuler.org> - 0.5.1-1 +- Package Spec generated |
