diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-10 21:30:09 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 21:30:09 +0000 |
| commit | 2cfbe956448a900b960850b3939a46a0e771796c (patch) | |
| tree | 07e0fb5cdbd5daace840483ed8d2eed7f1d2c466 | |
| parent | e196d5389507e23e9299252348f56da8984a75b9 (diff) | |
automatic import of python-django-extra-fields
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-django-extra-fields.spec | 72 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 74 insertions, 0 deletions
@@ -0,0 +1 @@ +/django-extra-fields-3.0.2.tar.gz diff --git a/python-django-extra-fields.spec b/python-django-extra-fields.spec new file mode 100644 index 0000000..a5c7e03 --- /dev/null +++ b/python-django-extra-fields.spec @@ -0,0 +1,72 @@ +%global _empty_manifest_terminate_build 0 +Name: python-django-extra-fields +Version: 3.0.2 +Release: 1 +Summary: Additional fields for Django Rest Framework. +License: Apache-2.0 +URL: https://github.com/Hipo/drf-extra-fields +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/6e/22/72d15b0279a6f6be8d7f31e10cc75b024f2ef2a80cc966c9ca35c9593e7b/django-extra-fields-3.0.2.tar.gz +BuildArch: noarch + + +%description +This package renamed as "drf-extra-fields", earlier it was named as django-extra-fields. New versions can be tracked from [here](https://github.com/Hipo/drf-extra-fields). + +%package -n python3-django-extra-fields +Summary: Additional fields for Django Rest Framework. +Provides: python-django-extra-fields +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-django-extra-fields +This package renamed as "drf-extra-fields", earlier it was named as django-extra-fields. New versions can be tracked from [here](https://github.com/Hipo/drf-extra-fields). + +%package help +Summary: Development documents and examples for django-extra-fields +Provides: python3-django-extra-fields-doc +%description help +This package renamed as "drf-extra-fields", earlier it was named as django-extra-fields. New versions can be tracked from [here](https://github.com/Hipo/drf-extra-fields). + +%prep +%autosetup -n django-extra-fields-3.0.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-extra-fields -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 3.0.2-1 +- Package Spec generated @@ -0,0 +1 @@ +9d0356635f280513b38d220ad0453503 django-extra-fields-3.0.2.tar.gz |
