From d09fa987f3ea25d635854ba5c1c93fff5101a77a Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 10 Apr 2023 19:07:14 +0000 Subject: automatic import of python-colour-science --- python-colour-science.spec | 113 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 113 insertions(+) create mode 100644 python-colour-science.spec (limited to 'python-colour-science.spec') diff --git a/python-colour-science.spec b/python-colour-science.spec new file mode 100644 index 0000000..81dfff2 --- /dev/null +++ b/python-colour-science.spec @@ -0,0 +1,113 @@ +%global _empty_manifest_terminate_build 0 +Name: python-colour-science +Version: 0.4.2 +Release: 1 +Summary: Colour Science for Python +License: BSD-3-Clause +URL: https://www.colour-science.org/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/04/1e/d552c9a2b93228c292b014ccef9f24eb445ca70109ef8db5f5466ab6791a/colour_science-0.4.2.tar.gz +BuildArch: noarch + +Requires: python3-biblib-simple +Requires: python3-black +Requires: python3-blackdoc +Requires: python3-coverage +Requires: python3-coveralls +Requires: python3-flake8 +Requires: python3-flynt +Requires: python3-imageio +Requires: python3-invoke +Requires: python3-jupyter +Requires: python3-matplotlib +Requires: python3-mypy +Requires: python3-networkx +Requires: python3-numpy +Requires: python3-pandas +Requires: python3-pre-commit +Requires: python3-pydata-sphinx-theme +Requires: python3-pydocstyle +Requires: python3-pygraphviz +Requires: python3-pytest-cov +Requires: python3-pytest-xdist +Requires: python3-pytest +Requires: python3-pyupgrade +Requires: python3-restructuredtext-lint +Requires: python3-scipy +Requires: python3-sphinx +Requires: python3-sphinxcontrib-bibtex +Requires: python3-toml +Requires: python3-tqdm +Requires: python3-trimesh +Requires: python3-twine +Requires: python3-typing-extensions + +%description +The draft release notes of the +`develop `__ +branch are available at this +`url `__. + +%package -n python3-colour-science +Summary: Colour Science for Python +Provides: python-colour-science +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-colour-science +The draft release notes of the +`develop `__ +branch are available at this +`url `__. + +%package help +Summary: Development documents and examples for colour-science +Provides: python3-colour-science-doc +%description help +The draft release notes of the +`develop `__ +branch are available at this +`url `__. + +%prep +%autosetup -n colour-science-0.4.2 + +%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-colour-science -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot - 0.4.2-1 +- Package Spec generated -- cgit v1.2.3