diff --git a/python-uncertainties.changes b/python-uncertainties.changes index 18e9aac..269fcfa 100644 --- a/python-uncertainties.changes +++ b/python-uncertainties.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Jul 6 15:02:18 UTC 2017 - tbechtold@suse.com + +- update to 3.0.1: + See more details at + https://pypi.python.org/pypi/uncertainties#version-history +- convert to singlespec + ------------------------------------------------------------------- Wed Apr 20 14:10:10 UTC 2016 - tbechtold@suse.com diff --git a/python-uncertainties.spec b/python-uncertainties.spec index 23eaab8..b52ad26 100644 --- a/python-uncertainties.spec +++ b/python-uncertainties.spec @@ -1,7 +1,7 @@ # # spec file for package python-uncertainties # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,27 +16,26 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-uncertainties -Version: 2.4.6 +Version: 3.0.1 Release: 0 Summary: Uncertainties on the Quantities Involved (aka "Error Propagation") License: BSD-3-Clause Group: Development/Languages/Python Url: http://pythonhosted.org/uncertainties/ -Source: https://pypi.python.org/packages/source/u/uncertainties/uncertainties-%{version}.tar.gz +Source: https://files.pythonhosted.org/packages/source/u/uncertainties/uncertainties-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} BuildRequires: fdupes -BuildRequires: python-devel -BuildRequires: python-setuptools +BuildRequires: python-rpm-macros %if 0%{?suse_version} Recommends: python-numpy %endif - BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else BuildArch: noarch -%endif + +%python_subpackages %description ``uncertainties`` allows **calculations** such as (2 +/- 0.1)*2 = 4 +/- @@ -47,21 +46,16 @@ directly. The ``uncertainties`` package **takes the pain and complexity out** of uncertainty calculations. - %prep %setup -q -n uncertainties-%{version} -mv uncertainties-py26 uncertainties -# Fix permissions and shebang line(s): -chmod -x uncertainties/1to2.py -sed -i '1d' uncertainties/1to2.py uncertainties/lib1to2/test_1to2.py %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install -%files +%files %{python_files} %defattr(-,root,root,-) %doc LICENSE.txt README.rst %{python_sitelib}/uncertainties/ diff --git a/uncertainties-2.4.6.tar.gz b/uncertainties-2.4.6.tar.gz deleted file mode 100644 index 523ebff..0000000 --- a/uncertainties-2.4.6.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:71c38b50c8f9d948e5ec3036a3cdc27ee1f84a9145bd6e3a83c16f33fc756676 -size 216028 diff --git a/uncertainties-3.0.1.tar.gz b/uncertainties-3.0.1.tar.gz new file mode 100644 index 0000000..99c5979 --- /dev/null +++ b/uncertainties-3.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:de0765cac6911e5afa93ee941063a07b4a98dbd9c314c5eea4ab14bfff0054a4 +size 225752