diff options
author | CoprDistGit <infra@openeuler.org> | 2023-06-20 05:03:20 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-06-20 05:03:20 +0000 |
commit | a41c934b5d296507ea7be4ca17e27e688642d239 (patch) | |
tree | 2eebd30b45aa6846a13459174b9fc7454a1785b5 | |
parent | 9ba57f6b6d0238fe512ef38deaccb261737392ac (diff) |
automatic import of python-django-separatedopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-django-separated.spec | 75 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 77 insertions, 0 deletions
@@ -0,0 +1 @@ +/django-separated-1.1.0.tar.gz diff --git a/python-django-separated.spec b/python-django-separated.spec new file mode 100644 index 0000000..51a6ad2 --- /dev/null +++ b/python-django-separated.spec @@ -0,0 +1,75 @@ +%global _empty_manifest_terminate_build 0 +Name: python-django-separated +Version: 1.1.0 +Release: 1 +Summary: Class-based view and mixins for handling CSV with Django. +License: UNKNOWN +URL: https://github.com/fusionbox/django-separated +Source0: https://mirrors.aliyun.com/pypi/web/packages/68/a5/12875a61158a88c40de31e41d2c79fd6a8ff5d9dbdb39d3ac93d9de6552a/django-separated-1.1.0.tar.gz +BuildArch: noarch + + +%description +Class-based view and mixins for responding with CSV in Django. django-separated +supports Django 1.3+. + +%package -n python3-django-separated +Summary: Class-based view and mixins for handling CSV with Django. +Provides: python-django-separated +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-django-separated +Class-based view and mixins for responding with CSV in Django. django-separated +supports Django 1.3+. + +%package help +Summary: Development documents and examples for django-separated +Provides: python3-django-separated-doc +%description help +Class-based view and mixins for responding with CSV in Django. django-separated +supports Django 1.3+. + +%prep +%autosetup -n django-separated-1.1.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-separated -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 1.1.0-1 +- Package Spec generated @@ -0,0 +1 @@ +9e0b8ccbd8752f7b3bd1d1e4d62c7950 django-separated-1.1.0.tar.gz |