diff options
Diffstat (limited to 'python-mpl-tools.spec')
| -rw-r--r-- | python-mpl-tools.spec | 180 |
1 files changed, 180 insertions, 0 deletions
diff --git a/python-mpl-tools.spec b/python-mpl-tools.spec new file mode 100644 index 0000000..b409152 --- /dev/null +++ b/python-mpl-tools.spec @@ -0,0 +1,180 @@ +%global _empty_manifest_terminate_build 0 +Name: python-mpl-tools +Version: 0.2.57 +Release: 1 +Summary: Tools for working with matplotlib +License: MIT +URL: https://github.com/patricknraanes/mpl-tools +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/f4/5b/b8b658f635847b4238a56c67365a8965c111c8d08ce7d4f548607d6faf88/mpl-tools-0.2.57.tar.gz +BuildArch: noarch + +Requires: python3-importlib-metadata +Requires: python3-matplotlib +Requires: python3-scipy + +%description +# mpl-tools + +[](https://travis-ci.org/patricknraanes/mpl-tools) +[](https://coveralls.io/github/patricknraanes/mpl-tools?branch=master) +[](http://hits.dwyl.com/patricknraanes/mpl-tools) +[](https://badge.fury.io/py/mpl-tools) +[](https://pypi.org/project/mpl-tools/0.1.5/) + +This package provides some tools to work with [Matplotlib](https://matplotlib.org/). + +## Installation + +#### Normal installation + +```sh +pip install mpl-tools +``` + +#### For development + +**On Linux**: +`git clone <this repo> ; make install` + +**On Windows (or Linux)**: +Download & extract this repo. +Install [poetry](https://python-poetry.org/docs/#installation). +Run `poetry install`. + +**Note**: The above will install *poetry*, +which then installs the source and its dependencies +into an isolated *virtual environment*. +To add packages, you should *not* use `pip install`, +but *poetry*, e.g. `poetry add --dev somepackage`. + +<!-- markdownlint-disable-file header-increment --> + + +%package -n python3-mpl-tools +Summary: Tools for working with matplotlib +Provides: python-mpl-tools +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-mpl-tools +# mpl-tools + +[](https://travis-ci.org/patricknraanes/mpl-tools) +[](https://coveralls.io/github/patricknraanes/mpl-tools?branch=master) +[](http://hits.dwyl.com/patricknraanes/mpl-tools) +[](https://badge.fury.io/py/mpl-tools) +[](https://pypi.org/project/mpl-tools/0.1.5/) + +This package provides some tools to work with [Matplotlib](https://matplotlib.org/). + +## Installation + +#### Normal installation + +```sh +pip install mpl-tools +``` + +#### For development + +**On Linux**: +`git clone <this repo> ; make install` + +**On Windows (or Linux)**: +Download & extract this repo. +Install [poetry](https://python-poetry.org/docs/#installation). +Run `poetry install`. + +**Note**: The above will install *poetry*, +which then installs the source and its dependencies +into an isolated *virtual environment*. +To add packages, you should *not* use `pip install`, +but *poetry*, e.g. `poetry add --dev somepackage`. + +<!-- markdownlint-disable-file header-increment --> + + +%package help +Summary: Development documents and examples for mpl-tools +Provides: python3-mpl-tools-doc +%description help +# mpl-tools + +[](https://travis-ci.org/patricknraanes/mpl-tools) +[](https://coveralls.io/github/patricknraanes/mpl-tools?branch=master) +[](http://hits.dwyl.com/patricknraanes/mpl-tools) +[](https://badge.fury.io/py/mpl-tools) +[](https://pypi.org/project/mpl-tools/0.1.5/) + +This package provides some tools to work with [Matplotlib](https://matplotlib.org/). + +## Installation + +#### Normal installation + +```sh +pip install mpl-tools +``` + +#### For development + +**On Linux**: +`git clone <this repo> ; make install` + +**On Windows (or Linux)**: +Download & extract this repo. +Install [poetry](https://python-poetry.org/docs/#installation). +Run `poetry install`. + +**Note**: The above will install *poetry*, +which then installs the source and its dependencies +into an isolated *virtual environment*. +To add packages, you should *not* use `pip install`, +but *poetry*, e.g. `poetry add --dev somepackage`. + +<!-- markdownlint-disable-file header-increment --> + + +%prep +%autosetup -n mpl-tools-0.2.57 + +%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-mpl-tools -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.2.57-1 +- Package Spec generated |
