%global _empty_manifest_terminate_build 0 Name: python-wagtail-color-panel Version: 1.4.1 Release: 1 Summary: please add a summary manually as the author left a blank one License: MIT URL: https://github.com/marteinn/wagtail-color-panel Source0: https://mirrors.nju.edu.cn/pypi/web/packages/da/50/75ad70fadc3589dfe97d4d1e94a5119550d497285291ed4c21cf7d81cc89/wagtail-color-panel-1.4.1.tar.gz BuildArch: noarch Requires: python3-wagtail Requires: python3-pytest-django Requires: python3-wagtail-factories Requires: python3-pytest %description [![Test and publish](https://github.com/marteinn/wagtail-color-panel/actions/workflows/main.yml/badge.svg)](https://github.com/marteinn/wagtail-color-panel/actions/workflows/main.yml) [![PyPI version](https://badge.fury.io/py/wagtail-color-panel.svg)](https://badge.fury.io/py/wagtail-color-panel) # Wagtail-Color-Panel Introduces panels for selecting colors in Wagtail. ![Screen1](https://raw.githubusercontent.com/marteinn/wagtail-color-panel/develop/img/img-in-streamfield.png) ## Features - NativeColorPanel that can be used in your edit handler - NativeColorBlock for usage in a StreamField - Based on the native HTML5 color picker - A custom db field for improved validation - PolyfillColorPanel for cases that require IE11 support (built on [Spectrum](https://github.com/bgrins/spectrum)) ## Example ```python from wagtail.core.models import Page from wagtail_color_panel.fields import ColorField from wagtail_color_panel.edit_handlers import NativeColorPanel class MyPage(Page): color = ColorField() content_panels = Page.content_panels + [ NativeColorPanel('color'), ] ``` ## Documentation - [Getting started](./docs/1_getting_started.md) - [Adding panel to a Page](./docs/2_adding_to_a_page.md) - [Adding to a StreamField](./docs/3_adding_to_a_streamfield.md) - [Reference](./docs/4_reference.md) ## Contributing Want to contribute? Awesome. Just send a pull request. ## License Wagtail-Color-Panel is released under the [MIT License](http://www.opensource.org/licenses/MIT). %package -n python3-wagtail-color-panel Summary: please add a summary manually as the author left a blank one Provides: python-wagtail-color-panel BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-wagtail-color-panel [![Test and publish](https://github.com/marteinn/wagtail-color-panel/actions/workflows/main.yml/badge.svg)](https://github.com/marteinn/wagtail-color-panel/actions/workflows/main.yml) [![PyPI version](https://badge.fury.io/py/wagtail-color-panel.svg)](https://badge.fury.io/py/wagtail-color-panel) # Wagtail-Color-Panel Introduces panels for selecting colors in Wagtail. ![Screen1](https://raw.githubusercontent.com/marteinn/wagtail-color-panel/develop/img/img-in-streamfield.png) ## Features - NativeColorPanel that can be used in your edit handler - NativeColorBlock for usage in a StreamField - Based on the native HTML5 color picker - A custom db field for improved validation - PolyfillColorPanel for cases that require IE11 support (built on [Spectrum](https://github.com/bgrins/spectrum)) ## Example ```python from wagtail.core.models import Page from wagtail_color_panel.fields import ColorField from wagtail_color_panel.edit_handlers import NativeColorPanel class MyPage(Page): color = ColorField() content_panels = Page.content_panels + [ NativeColorPanel('color'), ] ``` ## Documentation - [Getting started](./docs/1_getting_started.md) - [Adding panel to a Page](./docs/2_adding_to_a_page.md) - [Adding to a StreamField](./docs/3_adding_to_a_streamfield.md) - [Reference](./docs/4_reference.md) ## Contributing Want to contribute? Awesome. Just send a pull request. ## License Wagtail-Color-Panel is released under the [MIT License](http://www.opensource.org/licenses/MIT). %package help Summary: Development documents and examples for wagtail-color-panel Provides: python3-wagtail-color-panel-doc %description help [![Test and publish](https://github.com/marteinn/wagtail-color-panel/actions/workflows/main.yml/badge.svg)](https://github.com/marteinn/wagtail-color-panel/actions/workflows/main.yml) [![PyPI version](https://badge.fury.io/py/wagtail-color-panel.svg)](https://badge.fury.io/py/wagtail-color-panel) # Wagtail-Color-Panel Introduces panels for selecting colors in Wagtail. ![Screen1](https://raw.githubusercontent.com/marteinn/wagtail-color-panel/develop/img/img-in-streamfield.png) ## Features - NativeColorPanel that can be used in your edit handler - NativeColorBlock for usage in a StreamField - Based on the native HTML5 color picker - A custom db field for improved validation - PolyfillColorPanel for cases that require IE11 support (built on [Spectrum](https://github.com/bgrins/spectrum)) ## Example ```python from wagtail.core.models import Page from wagtail_color_panel.fields import ColorField from wagtail_color_panel.edit_handlers import NativeColorPanel class MyPage(Page): color = ColorField() content_panels = Page.content_panels + [ NativeColorPanel('color'), ] ``` ## Documentation - [Getting started](./docs/1_getting_started.md) - [Adding panel to a Page](./docs/2_adding_to_a_page.md) - [Adding to a StreamField](./docs/3_adding_to_a_streamfield.md) - [Reference](./docs/4_reference.md) ## Contributing Want to contribute? Awesome. Just send a pull request. ## License Wagtail-Color-Panel is released under the [MIT License](http://www.opensource.org/licenses/MIT). %prep %autosetup -n wagtail-color-panel-1.4.1 %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-wagtail-color-panel -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Tue May 30 2023 Python_Bot - 1.4.1-1 - Package Spec generated