diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-11 02:02:09 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 02:02:09 +0000 |
commit | fab7dfdd62e41b34d3715f22af1c1dec92d54cba (patch) | |
tree | 05eda4fcf429d216586a42e9c47675c75bcf9556 /python-django-s3-storage.spec | |
parent | 1a91f0872634b84853d754a460ab2ba04ce36d79 (diff) |
automatic import of python-django-s3-storage
Diffstat (limited to 'python-django-s3-storage.spec')
-rw-r--r-- | python-django-s3-storage.spec | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/python-django-s3-storage.spec b/python-django-s3-storage.spec new file mode 100644 index 0000000..53053f8 --- /dev/null +++ b/python-django-s3-storage.spec @@ -0,0 +1,74 @@ +%global _empty_manifest_terminate_build 0 +Name: python-django-s3-storage +Version: 0.13.11 +Release: 1 +Summary: Django Amazon S3 file storage. +License: BSD +URL: https://github.com/etianen/django-s3-storage +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/aa/5a/53b570d9bae505a006585ed0e466e6f5bd203f0ee2fc99a8e2b21bd0b9f8/django-s3-storage-0.13.11.tar.gz +BuildArch: noarch + +Requires: python3-django +Requires: python3-boto3 + +%description + + +%package -n python3-django-s3-storage +Summary: Django Amazon S3 file storage. +Provides: python-django-s3-storage +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-django-s3-storage + + +%package help +Summary: Development documents and examples for django-s3-storage +Provides: python3-django-s3-storage-doc +%description help + + +%prep +%autosetup -n django-s3-storage-0.13.11 + +%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-django-s3-storage -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.13.11-1 +- Package Spec generated |