From 070a17a94848631df2f89443ad2bc4917e7774ff Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Wed, 17 May 2023 03:31:11 +0000 Subject: automatic import of python-wagtail-color-panel --- .gitignore | 1 + python-wagtail-color-panel.spec | 229 ++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 231 insertions(+) create mode 100644 python-wagtail-color-panel.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..1c8d545 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/wagtail-color-panel-1.4.1.tar.gz diff --git a/python-wagtail-color-panel.spec b/python-wagtail-color-panel.spec new file mode 100644 index 0000000..4761088 --- /dev/null +++ b/python-wagtail-color-panel.spec @@ -0,0 +1,229 @@ +%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 +* Wed May 17 2023 Python_Bot - 1.4.1-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..0b7d177 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +ed5c78218cd6cdab820886d58b8de8c3 wagtail-color-panel-1.4.1.tar.gz -- cgit v1.2.3