summaryrefslogtreecommitdiff
path: root/python-django-clearcache.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-05 14:50:26 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-05 14:50:26 +0000
commit5602889c851731e670ae473e20e760d79f70b72a (patch)
treeaa2c7b684deb45ce4e99248721285f9ffc0ba610 /python-django-clearcache.spec
parent414f9496bd5bc5b0ddf8bfb43b729c6d9de7e18d (diff)
automatic import of python-django-clearcacheopeneuler20.03
Diffstat (limited to 'python-django-clearcache.spec')
-rw-r--r--python-django-clearcache.spec265
1 files changed, 265 insertions, 0 deletions
diff --git a/python-django-clearcache.spec b/python-django-clearcache.spec
new file mode 100644
index 0000000..1cf02c8
--- /dev/null
+++ b/python-django-clearcache.spec
@@ -0,0 +1,265 @@
+%global _empty_manifest_terminate_build 0
+Name: python-django-clearcache
+Version: 1.2.1
+Release: 1
+Summary: Allows you to clear Django cache via admin UI or manage.py command
+License: MIT
+URL: https://timonweb.com
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/32/77/6539a7e83461568c262dbf87a921883fcac4b03fdd4c6d2d2f37d43b9229/django-clearcache-1.2.1.tar.gz
+BuildArch: noarch
+
+Requires: python3-django
+
+%description
+# Django ClearCache 🤠🧹💰
+
+![License](https://img.shields.io/pypi/l/django-clearcache)
+![Django versions](https://img.shields.io/pypi/djversions/django-clearcache)
+![Python versions](https://img.shields.io/pypi/pyversions/django-clearcache)
+
+Allows you to clear Django cache via admin UI or manage.py command.
+
+![demo](https://raw.githubusercontent.com/timonweb/django-clearcache/master/demo.gif)
+
+## Installation
+
+1. Install using PIP:
+
+ ```
+ pip install django-clearcache
+ ```
+
+2. Add **clearcache** to INSTALLED_APPS, make sure it's above `django.contrib.admin`:
+
+ ```
+ INSTALLED_APPS += [
+ ...
+ 'clearcache',
+ 'django.contrib.admin',
+ ...
+ ]
+ ```
+
+3. Add url to the main **urls.py** right above root admin url:
+
+ ```
+ urlpatterns = [
+ path('admin/clearcache/', include('clearcache.urls')),
+ path('admin/', admin.site.urls),
+ ]
+ ```
+
+## Usage
+
+### Via Django admin
+
+1. Go to `/admin/clearcache/`, you should see a form with cache selector
+2. Pick a cache. Usually there's one default cache, but can be more.
+3. Click the button, you're done!
+
+### Via manage.py command
+
+1. Run the following command to clear the default cache
+
+ ```
+ python manage.py clearcache
+ ```
+
+2. Run the command above with an additional parameter to clear non-default cache (if exists):
+
+ ```
+ python manage.py clearcache cache_name
+ ```
+
+## Follow me
+
+1. Check my dev blog with Python and JavaScript tutorials at [https://timonweb.com](https://timonweb.com)
+2. Follow me on twitter [@timonweb](https://twitter.com/timonweb)
+
+
+%package -n python3-django-clearcache
+Summary: Allows you to clear Django cache via admin UI or manage.py command
+Provides: python-django-clearcache
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-django-clearcache
+# Django ClearCache 🤠🧹💰
+
+![License](https://img.shields.io/pypi/l/django-clearcache)
+![Django versions](https://img.shields.io/pypi/djversions/django-clearcache)
+![Python versions](https://img.shields.io/pypi/pyversions/django-clearcache)
+
+Allows you to clear Django cache via admin UI or manage.py command.
+
+![demo](https://raw.githubusercontent.com/timonweb/django-clearcache/master/demo.gif)
+
+## Installation
+
+1. Install using PIP:
+
+ ```
+ pip install django-clearcache
+ ```
+
+2. Add **clearcache** to INSTALLED_APPS, make sure it's above `django.contrib.admin`:
+
+ ```
+ INSTALLED_APPS += [
+ ...
+ 'clearcache',
+ 'django.contrib.admin',
+ ...
+ ]
+ ```
+
+3. Add url to the main **urls.py** right above root admin url:
+
+ ```
+ urlpatterns = [
+ path('admin/clearcache/', include('clearcache.urls')),
+ path('admin/', admin.site.urls),
+ ]
+ ```
+
+## Usage
+
+### Via Django admin
+
+1. Go to `/admin/clearcache/`, you should see a form with cache selector
+2. Pick a cache. Usually there's one default cache, but can be more.
+3. Click the button, you're done!
+
+### Via manage.py command
+
+1. Run the following command to clear the default cache
+
+ ```
+ python manage.py clearcache
+ ```
+
+2. Run the command above with an additional parameter to clear non-default cache (if exists):
+
+ ```
+ python manage.py clearcache cache_name
+ ```
+
+## Follow me
+
+1. Check my dev blog with Python and JavaScript tutorials at [https://timonweb.com](https://timonweb.com)
+2. Follow me on twitter [@timonweb](https://twitter.com/timonweb)
+
+
+%package help
+Summary: Development documents and examples for django-clearcache
+Provides: python3-django-clearcache-doc
+%description help
+# Django ClearCache 🤠🧹💰
+
+![License](https://img.shields.io/pypi/l/django-clearcache)
+![Django versions](https://img.shields.io/pypi/djversions/django-clearcache)
+![Python versions](https://img.shields.io/pypi/pyversions/django-clearcache)
+
+Allows you to clear Django cache via admin UI or manage.py command.
+
+![demo](https://raw.githubusercontent.com/timonweb/django-clearcache/master/demo.gif)
+
+## Installation
+
+1. Install using PIP:
+
+ ```
+ pip install django-clearcache
+ ```
+
+2. Add **clearcache** to INSTALLED_APPS, make sure it's above `django.contrib.admin`:
+
+ ```
+ INSTALLED_APPS += [
+ ...
+ 'clearcache',
+ 'django.contrib.admin',
+ ...
+ ]
+ ```
+
+3. Add url to the main **urls.py** right above root admin url:
+
+ ```
+ urlpatterns = [
+ path('admin/clearcache/', include('clearcache.urls')),
+ path('admin/', admin.site.urls),
+ ]
+ ```
+
+## Usage
+
+### Via Django admin
+
+1. Go to `/admin/clearcache/`, you should see a form with cache selector
+2. Pick a cache. Usually there's one default cache, but can be more.
+3. Click the button, you're done!
+
+### Via manage.py command
+
+1. Run the following command to clear the default cache
+
+ ```
+ python manage.py clearcache
+ ```
+
+2. Run the command above with an additional parameter to clear non-default cache (if exists):
+
+ ```
+ python manage.py clearcache cache_name
+ ```
+
+## Follow me
+
+1. Check my dev blog with Python and JavaScript tutorials at [https://timonweb.com](https://timonweb.com)
+2. Follow me on twitter [@timonweb](https://twitter.com/timonweb)
+
+
+%prep
+%autosetup -n django-clearcache-1.2.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-django-clearcache -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 1.2.1-1
+- Package Spec generated