diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-17 03:31:11 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-17 03:31:11 +0000 |
commit | 070a17a94848631df2f89443ad2bc4917e7774ff (patch) | |
tree | 88897121513a077cc917dbf6f7c1352848d4b1ad | |
parent | 197bf90d1c5dc1b0e566cc17bd567abf2c6d5602 (diff) |
automatic import of python-wagtail-color-panel
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-wagtail-color-panel.spec | 229 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 231 insertions, 0 deletions
@@ -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 +[](https://github.com/marteinn/wagtail-color-panel/actions/workflows/main.yml) [](https://badge.fury.io/py/wagtail-color-panel) + +# Wagtail-Color-Panel + +Introduces panels for selecting colors in Wagtail. + + + + +## 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 +[](https://github.com/marteinn/wagtail-color-panel/actions/workflows/main.yml) [](https://badge.fury.io/py/wagtail-color-panel) + +# Wagtail-Color-Panel + +Introduces panels for selecting colors in Wagtail. + + + + +## 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 +[](https://github.com/marteinn/wagtail-color-panel/actions/workflows/main.yml) [](https://badge.fury.io/py/wagtail-color-panel) + +# Wagtail-Color-Panel + +Introduces panels for selecting colors in Wagtail. + + + + +## 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 <Python_Bot@openeuler.org> - 1.4.1-1 +- Package Spec generated @@ -0,0 +1 @@ +ed5c78218cd6cdab820886d58b8de8c3 wagtail-color-panel-1.4.1.tar.gz |