diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-10 17:59:50 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 17:59:50 +0000 |
| commit | daf6bbe39334892bf720b9d1b1125e3d3dbae7e6 (patch) | |
| tree | 0ec61c575c1975bd858d4264970d773468da6d9e | |
| parent | cc847b38bd15db825410aa626c0fe967faaa9cc7 (diff) | |
automatic import of python-django-colorfield
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-django-colorfield.spec | 82 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 84 insertions, 0 deletions
@@ -0,0 +1 @@ +/django-colorfield-0.8.0.tar.gz diff --git a/python-django-colorfield.spec b/python-django-colorfield.spec new file mode 100644 index 0000000..6bcb6c0 --- /dev/null +++ b/python-django-colorfield.spec @@ -0,0 +1,82 @@ +%global _empty_manifest_terminate_build 0 +Name: python-django-colorfield +Version: 0.8.0 +Release: 1 +Summary: simple color field for your models with a nice color-picker in the admin-interface. +License: MIT +URL: https://github.com/fabiocaccamo/django-colorfield +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/cd/3a/b9a1ea3e73636565f8621cd7da3f8c42c32cb7a09e4132f3c1c1be9bb1e0/django-colorfield-0.8.0.tar.gz +BuildArch: noarch + +Requires: python3-Pillow + +%description +## Installation +- Run `pip install django-colorfield` +- Add `colorfield` to `settings.INSTALLED_APPS` +- Run `python manage.py collectstatic` + +%package -n python3-django-colorfield +Summary: simple color field for your models with a nice color-picker in the admin-interface. +Provides: python-django-colorfield +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-django-colorfield +## Installation +- Run `pip install django-colorfield` +- Add `colorfield` to `settings.INSTALLED_APPS` +- Run `python manage.py collectstatic` + +%package help +Summary: Development documents and examples for django-colorfield +Provides: python3-django-colorfield-doc +%description help +## Installation +- Run `pip install django-colorfield` +- Add `colorfield` to `settings.INSTALLED_APPS` +- Run `python manage.py collectstatic` + +%prep +%autosetup -n django-colorfield-0.8.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-colorfield -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.8.0-1 +- Package Spec generated @@ -0,0 +1 @@ +cd8c1fb932ac400c4143969dd4a6d181 django-colorfield-0.8.0.tar.gz |
