diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-18 07:45:40 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-18 07:45:40 +0000 |
| commit | 68491a35b296efe6094cd0a0dc9b56d66b71b2e1 (patch) | |
| tree | 08c92ac6159be72ec8fdc004c3a7f3307be3bd1d /python-django-auto-prefetch.spec | |
| parent | 93d238895adc30ce592b1da5f694f5efba31cf31 (diff) | |
automatic import of python-django-auto-prefetch
Diffstat (limited to 'python-django-auto-prefetch.spec')
| -rw-r--r-- | python-django-auto-prefetch.spec | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/python-django-auto-prefetch.spec b/python-django-auto-prefetch.spec new file mode 100644 index 0000000..a165f80 --- /dev/null +++ b/python-django-auto-prefetch.spec @@ -0,0 +1,73 @@ +%global _empty_manifest_terminate_build 0 +Name: python-django-auto-prefetch +Version: 1.5.1 +Release: 1 +Summary: Automatically prefetch foreign key values as needed. +License: BSD-3-Clause +URL: https://github.com/tolomea/django-auto-prefetch +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/81/be/a000188cfb188269990e2006104cdfc687872143f89d1726ad7e6409a4ce/django_auto_prefetch-1.5.1.tar.gz +BuildArch: noarch + +Requires: python3-Django + +%description +Automatically prefetch foreign key values as needed. + +%package -n python3-django-auto-prefetch +Summary: Automatically prefetch foreign key values as needed. +Provides: python-django-auto-prefetch +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-django-auto-prefetch +Automatically prefetch foreign key values as needed. + +%package help +Summary: Development documents and examples for django-auto-prefetch +Provides: python3-django-auto-prefetch-doc +%description help +Automatically prefetch foreign key values as needed. + +%prep +%autosetup -n django-auto-prefetch-1.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-django-auto-prefetch -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu May 18 2023 Python_Bot <Python_Bot@openeuler.org> - 1.5.1-1 +- Package Spec generated |
