summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-05 09:05:22 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-05 09:05:22 +0000
commitd9b67c4026db17cb710dd5fa3330cc68b53140b7 (patch)
tree77491845c963bd8dd3ade0415f887b7e0aa1a32f
parent9ada0a026d49cadf38f859522e386258e3c7d208 (diff)
automatic import of python-django-ultracacheopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-django-ultracache.spec72
-rw-r--r--sources1
3 files changed, 74 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..9576ff8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/django-ultracache-2.2.tar.gz
diff --git a/python-django-ultracache.spec b/python-django-ultracache.spec
new file mode 100644
index 0000000..61e7845
--- /dev/null
+++ b/python-django-ultracache.spec
@@ -0,0 +1,72 @@
+%global _empty_manifest_terminate_build 0
+Name: python-django-ultracache
+Version: 2.2
+Release: 1
+Summary: Drop-in replacement for Django's template fragment caching. Provides automatic cache invalidation.
+License: BSD
+URL: http://github.com/hedleyroos/django-ultracache
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/3e/65/61896aa6f071e68c2a67ded472e0a30c8908f50ac483e989310fd4392fef/django-ultracache-2.2.tar.gz
+BuildArch: noarch
+
+
+%description
+https://github.com/hedleyroos/django-ultracache is the official home of the project. It has moved from https://github.com/praekelt/django-ultracache.
+
+%package -n python3-django-ultracache
+Summary: Drop-in replacement for Django's template fragment caching. Provides automatic cache invalidation.
+Provides: python-django-ultracache
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-django-ultracache
+https://github.com/hedleyroos/django-ultracache is the official home of the project. It has moved from https://github.com/praekelt/django-ultracache.
+
+%package help
+Summary: Development documents and examples for django-ultracache
+Provides: python3-django-ultracache-doc
+%description help
+https://github.com/hedleyroos/django-ultracache is the official home of the project. It has moved from https://github.com/praekelt/django-ultracache.
+
+%prep
+%autosetup -n django-ultracache-2.2
+
+%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-ultracache -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 2.2-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..3db0742
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+9b0f3d9ae1211567ff9bc3ef63da1fde django-ultracache-2.2.tar.gz