diff options
Diffstat (limited to 'python-colourmap.spec')
| -rw-r--r-- | python-colourmap.spec | 350 |
1 files changed, 350 insertions, 0 deletions
diff --git a/python-colourmap.spec b/python-colourmap.spec new file mode 100644 index 0000000..899c2c6 --- /dev/null +++ b/python-colourmap.spec @@ -0,0 +1,350 @@ +%global _empty_manifest_terminate_build 0 +Name: python-colourmap +Version: 1.1.11 +Release: 1 +Summary: Python package colourmap generates an N unique colors from the specified input colormap. +License: MIT License +URL: https://erdogant.github.io/colourmap +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/0c/0d/4a8a2fb2fe54265e240eab8d329272e5be0b48aaa6dc17d820fff9402dc1/colourmap-1.1.11.tar.gz +BuildArch: noarch + +Requires: python3-matplotlib +Requires: python3-numpy + +%description +# colourmap
+
+[](https://img.shields.io/pypi/pyversions/colourmap)
+[](https://pypi.org/project/colourmap/)
+[](https://github.com/erdogant/colourmap/blob/master/LICENSE)
+[](https://github.com/erdogant/colourmap/network)
+[](https://github.com/erdogant/colourmap/issues)
+[](http://www.repostatus.org/#active)
+[](https://pepy.tech/project/colourmap/month)
+[](https://pepy.tech/project/colourmap)
+[](https://erdogant.github.io/colourmap/)
+<!---[](https://www.buymeacoffee.com/erdogant)-->
+<!---[](https://erdogant.github.io/donate/?currency=USD&amount=5)-->
+
+*`` Colourmap`` generates an unique lit of RGB and HEX colors for the specified input list.
+
+#
+**⭐️ Star this repo if you like it ⭐️**
+#
+
+
+### [Documentation pages](https://erdogant.github.io/colourmap/)
+
+On the [documentation pages](https://erdogant.github.io/colourmap/) you can find more information about ``colourmap`` with examples.
+
+#
+
+##### Install colourmap from PyPI
+```bash
+pip install colourmap # normal install
+pip install -U colourmap # update if needed
+```
+
+
+### Import colourmap package
+```python
+from colourmap import colourmap
+```
+
+<hr>
+
+#### Quick example
+
+Use the documentation pages for more detailed usage. Some of the most used functionalities are linked below.
+
+
+```python
+
+from colourmap import colourmap
+
+# Create N colors
+c = colourmap.generate(10)
+
+# From list
+c_rgb, c_dict = colourmap.fromlist([1,1,2,2,3,1,2,3])
+
+# to HEX
+c_hex = colourmap.rgb2hex(c_rgb)
+
+```
+
+#
+
+#### [Example: Generate N unique colors from a specific colormap](https://erdogant.github.io/colourmap/pages/html/Examples.html#)
+
+#
+
+#### [Example: Generate unique colors based on input labels](https://erdogant.github.io/colourmap/pages/html/Examples.html#create-color-based-on-input-labels)
+
+#
+
+#### [Example: Create unique colors based on seaborn or matplotlib](https://erdogant.github.io/colourmap/pages/html/Examples.html#color-generated-by-seaborn-and-matplotlib)
+
+#
+
+#### [Example: Conversion RGB to HEX](https://erdogant.github.io/colourmap/pages/html/Examples.html#convert-rgb-to-hex)
+
+#
+
+#### [Example: Conversion HEX to RGB](https://erdogant.github.io/colourmap/pages/html/Examples.html#convert-rgb-to-hex)
+
+#
+
+#### [Example: Create a linear gradient between colors](https://erdogant.github.io/colourmap/pages/html/Examples.html#linear-gradient-between-two-colors)
+
+<hr>
+
+### Maintainer
+* Erdogan Taskesen, github: [erdogant](https://github.com/erdogant)
+* Contributions are welcome.
+* For citations, please use the citation at the right side panel.
+* If you wish to buy me a <a href="https://www.buymeacoffee.com/erdogant">Coffee</a> for this work, it is very appreciated :)
+ + +%package -n python3-colourmap +Summary: Python package colourmap generates an N unique colors from the specified input colormap. +Provides: python-colourmap +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-colourmap +# colourmap
+
+[](https://img.shields.io/pypi/pyversions/colourmap)
+[](https://pypi.org/project/colourmap/)
+[](https://github.com/erdogant/colourmap/blob/master/LICENSE)
+[](https://github.com/erdogant/colourmap/network)
+[](https://github.com/erdogant/colourmap/issues)
+[](http://www.repostatus.org/#active)
+[](https://pepy.tech/project/colourmap/month)
+[](https://pepy.tech/project/colourmap)
+[](https://erdogant.github.io/colourmap/)
+<!---[](https://www.buymeacoffee.com/erdogant)-->
+<!---[](https://erdogant.github.io/donate/?currency=USD&amount=5)-->
+
+*`` Colourmap`` generates an unique lit of RGB and HEX colors for the specified input list.
+
+#
+**⭐️ Star this repo if you like it ⭐️**
+#
+
+
+### [Documentation pages](https://erdogant.github.io/colourmap/)
+
+On the [documentation pages](https://erdogant.github.io/colourmap/) you can find more information about ``colourmap`` with examples.
+
+#
+
+##### Install colourmap from PyPI
+```bash
+pip install colourmap # normal install
+pip install -U colourmap # update if needed
+```
+
+
+### Import colourmap package
+```python
+from colourmap import colourmap
+```
+
+<hr>
+
+#### Quick example
+
+Use the documentation pages for more detailed usage. Some of the most used functionalities are linked below.
+
+
+```python
+
+from colourmap import colourmap
+
+# Create N colors
+c = colourmap.generate(10)
+
+# From list
+c_rgb, c_dict = colourmap.fromlist([1,1,2,2,3,1,2,3])
+
+# to HEX
+c_hex = colourmap.rgb2hex(c_rgb)
+
+```
+
+#
+
+#### [Example: Generate N unique colors from a specific colormap](https://erdogant.github.io/colourmap/pages/html/Examples.html#)
+
+#
+
+#### [Example: Generate unique colors based on input labels](https://erdogant.github.io/colourmap/pages/html/Examples.html#create-color-based-on-input-labels)
+
+#
+
+#### [Example: Create unique colors based on seaborn or matplotlib](https://erdogant.github.io/colourmap/pages/html/Examples.html#color-generated-by-seaborn-and-matplotlib)
+
+#
+
+#### [Example: Conversion RGB to HEX](https://erdogant.github.io/colourmap/pages/html/Examples.html#convert-rgb-to-hex)
+
+#
+
+#### [Example: Conversion HEX to RGB](https://erdogant.github.io/colourmap/pages/html/Examples.html#convert-rgb-to-hex)
+
+#
+
+#### [Example: Create a linear gradient between colors](https://erdogant.github.io/colourmap/pages/html/Examples.html#linear-gradient-between-two-colors)
+
+<hr>
+
+### Maintainer
+* Erdogan Taskesen, github: [erdogant](https://github.com/erdogant)
+* Contributions are welcome.
+* For citations, please use the citation at the right side panel.
+* If you wish to buy me a <a href="https://www.buymeacoffee.com/erdogant">Coffee</a> for this work, it is very appreciated :)
+ + +%package help +Summary: Development documents and examples for colourmap +Provides: python3-colourmap-doc +%description help +# colourmap
+
+[](https://img.shields.io/pypi/pyversions/colourmap)
+[](https://pypi.org/project/colourmap/)
+[](https://github.com/erdogant/colourmap/blob/master/LICENSE)
+[](https://github.com/erdogant/colourmap/network)
+[](https://github.com/erdogant/colourmap/issues)
+[](http://www.repostatus.org/#active)
+[](https://pepy.tech/project/colourmap/month)
+[](https://pepy.tech/project/colourmap)
+[](https://erdogant.github.io/colourmap/)
+<!---[](https://www.buymeacoffee.com/erdogant)-->
+<!---[](https://erdogant.github.io/donate/?currency=USD&amount=5)-->
+
+*`` Colourmap`` generates an unique lit of RGB and HEX colors for the specified input list.
+
+#
+**⭐️ Star this repo if you like it ⭐️**
+#
+
+
+### [Documentation pages](https://erdogant.github.io/colourmap/)
+
+On the [documentation pages](https://erdogant.github.io/colourmap/) you can find more information about ``colourmap`` with examples.
+
+#
+
+##### Install colourmap from PyPI
+```bash
+pip install colourmap # normal install
+pip install -U colourmap # update if needed
+```
+
+
+### Import colourmap package
+```python
+from colourmap import colourmap
+```
+
+<hr>
+
+#### Quick example
+
+Use the documentation pages for more detailed usage. Some of the most used functionalities are linked below.
+
+
+```python
+
+from colourmap import colourmap
+
+# Create N colors
+c = colourmap.generate(10)
+
+# From list
+c_rgb, c_dict = colourmap.fromlist([1,1,2,2,3,1,2,3])
+
+# to HEX
+c_hex = colourmap.rgb2hex(c_rgb)
+
+```
+
+#
+
+#### [Example: Generate N unique colors from a specific colormap](https://erdogant.github.io/colourmap/pages/html/Examples.html#)
+
+#
+
+#### [Example: Generate unique colors based on input labels](https://erdogant.github.io/colourmap/pages/html/Examples.html#create-color-based-on-input-labels)
+
+#
+
+#### [Example: Create unique colors based on seaborn or matplotlib](https://erdogant.github.io/colourmap/pages/html/Examples.html#color-generated-by-seaborn-and-matplotlib)
+
+#
+
+#### [Example: Conversion RGB to HEX](https://erdogant.github.io/colourmap/pages/html/Examples.html#convert-rgb-to-hex)
+
+#
+
+#### [Example: Conversion HEX to RGB](https://erdogant.github.io/colourmap/pages/html/Examples.html#convert-rgb-to-hex)
+
+#
+
+#### [Example: Create a linear gradient between colors](https://erdogant.github.io/colourmap/pages/html/Examples.html#linear-gradient-between-two-colors)
+
+<hr>
+
+### Maintainer
+* Erdogan Taskesen, github: [erdogant](https://github.com/erdogant)
+* Contributions are welcome.
+* For citations, please use the citation at the right side panel.
+* If you wish to buy me a <a href="https://www.buymeacoffee.com/erdogant">Coffee</a> for this work, it is very appreciated :)
+ + +%prep +%autosetup -n colourmap-1.1.11 + +%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-colourmap -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 17 2023 Python_Bot <Python_Bot@openeuler.org> - 1.1.11-1 +- Package Spec generated |
