diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-05 09:36:52 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-05 09:36:52 +0000 |
| commit | 423461af8b8d7294b622329b193b11a467622acd (patch) | |
| tree | 07d05d42c1ef804d6f17df8a07e147512a4f0593 /python-django-manager-utils.spec | |
| parent | 1873334e3cd1739e8a68ce6970580cf88c62c3c1 (diff) | |
automatic import of python-django-manager-utilsopeneuler20.03
Diffstat (limited to 'python-django-manager-utils.spec')
| -rw-r--r-- | python-django-manager-utils.spec | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/python-django-manager-utils.spec b/python-django-manager-utils.spec new file mode 100644 index 0000000..e4d6568 --- /dev/null +++ b/python-django-manager-utils.spec @@ -0,0 +1,74 @@ +%global _empty_manifest_terminate_build 0 +Name: python-django-manager-utils +Version: 3.0.1 +Release: 1 +Summary: Model manager utilities for Django +License: MIT License +URL: http://github.com/ambitioninc/django-manager-utils/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/f6/6e/8d7d799ab41f3407c8bda86e8da66b4196972281143e05e28638ffba94c7/django-manager-utils-3.0.1.tar.gz +BuildArch: noarch + +Requires: python3-Django +Requires: python3-django-query-builder + +%description +Additional utilities for Django model managers. + +%package -n python3-django-manager-utils +Summary: Model manager utilities for Django +Provides: python-django-manager-utils +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-django-manager-utils +Additional utilities for Django model managers. + +%package help +Summary: Development documents and examples for django-manager-utils +Provides: python3-django-manager-utils-doc +%description help +Additional utilities for Django model managers. + +%prep +%autosetup -n django-manager-utils-3.0.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-manager-utils -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 3.0.1-1 +- Package Spec generated |
