diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-10 16:49:37 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 16:49:37 +0000 |
commit | 59d57a2d979a29c6a64da84dd4562e5108dc411a (patch) | |
tree | 1049f21d6d0f7eed706682da3269ab68c0d9a791 | |
parent | 1a9f93418bf40b06d769317dd146a4ec2e878f5e (diff) |
automatic import of python-uncertainties
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-uncertainties.spec | 101 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 103 insertions, 0 deletions
@@ -0,0 +1 @@ +/uncertainties-3.1.7.tar.gz diff --git a/python-uncertainties.spec b/python-uncertainties.spec new file mode 100644 index 0000000..18ab157 --- /dev/null +++ b/python-uncertainties.spec @@ -0,0 +1,101 @@ +%global _empty_manifest_terminate_build 0 +Name: python-uncertainties +Version: 3.1.7 +Release: 1 +Summary: Transparent calculations with uncertainties on the quantities involved (aka error propagation); fast calculation of derivatives +License: Revised BSD License +URL: http://uncertainties-python-package.readthedocs.io/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/9d/22/34b918373b9626a50117abd31c0185b96ad1242e46096d6b0a2ef6dd4303/uncertainties-3.1.7.tar.gz +BuildArch: noarch + +Requires: python3-future +Requires: python3-sphinx +Requires: python3-nose +Requires: python3-numpy +Requires: python3-sphinx +Requires: python3-numpy +Requires: python3-nose +Requires: python3-numpy + +%description +``uncertainties`` allows **calculations** such as (2 +/- 0.1)*2 = 4 +/- +0.2 to be **performed transparently**. Much more complex mathematical +expressions involving numbers with uncertainties can also be evaluated +directly. +The ``uncertainties`` package **takes the pain and complexity out** +of uncertainty calculations. +**Detailed information** about this package can be found on its `main +website`_. + +%package -n python3-uncertainties +Summary: Transparent calculations with uncertainties on the quantities involved (aka error propagation); fast calculation of derivatives +Provides: python-uncertainties +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-uncertainties +``uncertainties`` allows **calculations** such as (2 +/- 0.1)*2 = 4 +/- +0.2 to be **performed transparently**. Much more complex mathematical +expressions involving numbers with uncertainties can also be evaluated +directly. +The ``uncertainties`` package **takes the pain and complexity out** +of uncertainty calculations. +**Detailed information** about this package can be found on its `main +website`_. + +%package help +Summary: Development documents and examples for uncertainties +Provides: python3-uncertainties-doc +%description help +``uncertainties`` allows **calculations** such as (2 +/- 0.1)*2 = 4 +/- +0.2 to be **performed transparently**. Much more complex mathematical +expressions involving numbers with uncertainties can also be evaluated +directly. +The ``uncertainties`` package **takes the pain and complexity out** +of uncertainty calculations. +**Detailed information** about this package can be found on its `main +website`_. + +%prep +%autosetup -n uncertainties-3.1.7 + +%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-uncertainties -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 3.1.7-1 +- Package Spec generated @@ -0,0 +1 @@ +89a29ff81be413dd9d1ba0dd97fad101 uncertainties-3.1.7.tar.gz |