Search
SailfishOS Open Build Service
>
Projects
>
home:rcolistete
>
python3-uncertainties
> python3-uncertainties.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File python3-uncertainties.spec of Package python3-uncertainties
%define pyname uncertainties Name: python3-uncertainties Version: 2.4.8.1 Release: 1 Summary: Python module for calculations with uncertainties. License: BSD Packager: Roberto Colistete Jr. <rcolistete.maemo@gmail.com> Vendor: Eric O. LEBIGOT (EOL) <eric.lebigot@normalesup.org> URL: http://packages.python.org/uncertainties/ Group: Development/Libraries/Python Source: %{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python3-base BuildRequires: python3-devel Requires: python3-base %description Python module for calculations with uncertainties. The Uncertainties package is a cross-platform Python module that transparently handles calculations with numbers with uncertainties (i.e., error propagation). It can also yield the derivatives of any expression. %prep %setup -n %{pyname} # fix some exec bits find . -name "*.py" -exec chmod -x '{}' \; # Remove shebang for file in `find . -name "*.py"`; do sed '/^#!\//, 1d' $file > $file.new && \ touch -r $file $file.new && \ mv $file.new $file done %build python3 setup.py build %install python3 setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{_libdir}/python3.?/site-packages/uncertainties/ %{_libdir}/python3.?/site-packages/uncertainties-*.egg-info %changelog * Sun Aug 7 2016 Roberto Colistete Jr. <sympy@googlegroups.com> - 2.4.8.1 - (Python 3) Uncertainties 2.4.8.1 (31/04/2016) for Mer (07/08/2016) : - * first version for Python 3. * Sun May 15 2014 Roberto Colistete Jr. <sympy@googlegroups.com> - 2.4.6 - (Python 3) Uncertainties 2.4.6 (10/04/2014) for Mer (15/05/2014) : - * first version for Python 3. * Sun May 04 2014 Roberto Colistete Jr. <sympy@googlegroups.com> - 2.4.6 - Uncertainties 2.4.6 (10/04/2014) for Mer (04/05/2014) : - * The string and empty format type formatting of numbers with uncertainties - are now similar to what Python 3.4 does; - * String formatting now works for NaN+/-... numbers; - * The documentation license now allows its commercial use; - * NumPy 1.8 compatibility. * Sun Aug 05 2013 Roberto Colistete Jr. <sympy@googlegroups.com> - 2.4.1 - Uncertainties 2.4.1 (26/07/2013) for Mer (05/08/2013) : - * uncertainties.umath functions ceil(), floor(), isinf(), isnan() and trunc() now - return values of the same type as the corresponding math module function; - * Extensive support for the formatting of numbers with uncertainties.