From 2cfbe956448a900b960850b3939a46a0e771796c Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 10 Apr 2023 21:30:09 +0000 Subject: automatic import of python-django-extra-fields --- python-django-extra-fields.spec | 72 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 python-django-extra-fields.spec (limited to 'python-django-extra-fields.spec') 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 - 3.0.2-1 +- Package Spec generated -- cgit v1.2.3