1
0

Accepting request 508800 from devel:languages:python

1

OBS-URL: https://build.opensuse.org/request/show/508800
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-uncertainties?expand=0&rev=2
This commit is contained in:
Yuchen Lin 2017-08-04 09:58:43 +00:00 committed by Git OBS Bridge
parent 06c8e0305c
commit 80c8b991b2
4 changed files with 23 additions and 21 deletions

View File

@ -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 Wed Apr 20 14:10:10 UTC 2016 - tbechtold@suse.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-uncertainties # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -16,27 +16,26 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-uncertainties Name: python-uncertainties
Version: 2.4.6 Version: 3.0.1
Release: 0 Release: 0
Summary: Uncertainties on the Quantities Involved (aka "Error Propagation") Summary: Uncertainties on the Quantities Involved (aka "Error Propagation")
License: BSD-3-Clause License: BSD-3-Clause
Group: Development/Languages/Python Group: Development/Languages/Python
Url: http://pythonhosted.org/uncertainties/ 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: fdupes
BuildRequires: python-devel BuildRequires: python-rpm-macros
BuildRequires: python-setuptools
%if 0%{?suse_version} %if 0%{?suse_version}
Recommends: python-numpy Recommends: python-numpy
%endif %endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build 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 BuildArch: noarch
%endif
%python_subpackages
%description %description
``uncertainties`` allows **calculations** such as (2 +/- 0.1)*2 = 4 +/- ``uncertainties`` allows **calculations** such as (2 +/- 0.1)*2 = 4 +/-
@ -47,21 +46,16 @@ directly.
The ``uncertainties`` package **takes the pain and complexity out** The ``uncertainties`` package **takes the pain and complexity out**
of uncertainty calculations. of uncertainty calculations.
%prep %prep
%setup -q -n uncertainties-%{version} %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 %build
python setup.py build %python_build
%install %install
python setup.py install --prefix=%{_prefix} --root=%{buildroot} %python_install
%files %files %{python_files}
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc LICENSE.txt README.rst %doc LICENSE.txt README.rst
%{python_sitelib}/uncertainties/ %{python_sitelib}/uncertainties/

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:71c38b50c8f9d948e5ec3036a3cdc27ee1f84a9145bd6e3a83c16f33fc756676
size 216028

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:de0765cac6911e5afa93ee941063a07b4a98dbd9c314c5eea4ab14bfff0054a4
size 225752