From daf6bbe39334892bf720b9d1b1125e3d3dbae7e6 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 10 Apr 2023 17:59:50 +0000 Subject: automatic import of python-django-colorfield --- .gitignore | 1 + python-django-colorfield.spec | 82 +++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 84 insertions(+) create mode 100644 python-django-colorfield.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..b551608 100644 --- a/.gitignore +++ b/.gitignore @@ -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 - 0.8.0-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..96c12dd --- /dev/null +++ b/sources @@ -0,0 +1 @@ +cd8c1fb932ac400c4143969dd4a6d181 django-colorfield-0.8.0.tar.gz -- cgit v1.2.3