summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python-colour-science.spec113
-rw-r--r--sources1
3 files changed, 115 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..9e58a9f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/colour_science-0.4.2.tar.gz
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 <https://github.com/colour-science/colour/tree/develop>`__
+branch are available at this
+`url <https://gist.github.com/KelSolaar/4a6ebe9ec3d389f0934b154fec8df51d>`__.
+
+%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 <https://github.com/colour-science/colour/tree/develop>`__
+branch are available at this
+`url <https://gist.github.com/KelSolaar/4a6ebe9ec3d389f0934b154fec8df51d>`__.
+
+%package help
+Summary: Development documents and examples for colour-science
+Provides: python3-colour-science-doc
+%description help
+The draft release notes of the
+`develop <https://github.com/colour-science/colour/tree/develop>`__
+branch are available at this
+`url <https://gist.github.com/KelSolaar/4a6ebe9ec3d389f0934b154fec8df51d>`__.
+
+%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 <Python_Bot@openeuler.org> - 0.4.2-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..a7384bb
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+e41c41dfd2cdaffbdabe8f0a611963d2 colour_science-0.4.2.tar.gz