diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-05 12:01:25 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-05 12:01:25 +0000 |
| commit | ee4e8679701fc9c8fda139835c14579c6d5c50c8 (patch) | |
| tree | f1953108257d3b3a2702bbbd5be33fd220e985ce /python-django-dont-vary-on.spec | |
| parent | 506ce04ab64e5a0b42497608546d9856628e5f2b (diff) | |
automatic import of python-django-dont-vary-onopeneuler20.03
Diffstat (limited to 'python-django-dont-vary-on.spec')
| -rw-r--r-- | python-django-dont-vary-on.spec | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/python-django-dont-vary-on.spec b/python-django-dont-vary-on.spec new file mode 100644 index 0000000..61235b9 --- /dev/null +++ b/python-django-dont-vary-on.spec @@ -0,0 +1,72 @@ +%global _empty_manifest_terminate_build 0 +Name: python-django-dont-vary-on +Version: 1.0.0 +Release: 1 +Summary: Library for Django to give you more control over Django's caching, and improving you cache hits and performance +License: GPLv3 +URL: UNKNOWN +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/b0/59/0bb4200b28822741b4cf4658aa8fb6f387f967fa3b6204c01af2509488b7/django-dont-vary-on-1.0.0.tar.gz +BuildArch: noarch + + +%description +UNKNOWN + +%package -n python3-django-dont-vary-on +Summary: Library for Django to give you more control over Django's caching, and improving you cache hits and performance +Provides: python-django-dont-vary-on +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-django-dont-vary-on +UNKNOWN + +%package help +Summary: Development documents and examples for django-dont-vary-on +Provides: python3-django-dont-vary-on-doc +%description help +UNKNOWN + +%prep +%autosetup -n django-dont-vary-on-1.0.0 + +%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-dont-vary-on -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.0-1 +- Package Spec generated |
