From b89ff509e6fd7702f79854b6921165fd0848784d71b3ce236dc4936095b03ede Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Wed, 7 Mar 2018 09:33:24 +0000 Subject: [PATCH] Accepting request 582170 from devel:languages:python - update to version 3.2.0 * no changelog available - remove check boundary condition - use %license macro - convert to singlespec and deactivate python2 - use fdupes - Initial version OBS-URL: https://build.opensuse.org/request/show/582170 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-gsw?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++++ .gitignore | 1 + gsw-3.2.0.tar.gz | 3 ++ gsw_licence.html | 72 ++++++++++++++++++++++++++++++++++++++++++++++ python-gsw.changes | 14 +++++++++ python-gsw.spec | 68 +++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 181 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 gsw-3.2.0.tar.gz create mode 100644 gsw_licence.html create mode 100644 python-gsw.changes create mode 100644 python-gsw.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/gsw-3.2.0.tar.gz b/gsw-3.2.0.tar.gz new file mode 100644 index 0000000..72a7f41 --- /dev/null +++ b/gsw-3.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bab7b7ed0ebec73f8647f7c02e6c9e8754fc322264f4d271b1461da923f60033 +size 4697891 diff --git a/gsw_licence.html b/gsw_licence.html new file mode 100644 index 0000000..4a7d10d --- /dev/null +++ b/gsw_licence.html @@ -0,0 +1,72 @@ + + + + +GSW Toolbox licence + +
+

Licence for the use of the Gibbs SeaWater (GSW) Oceanographic Toolbox

+

+ Copyright (c) 2011, SCOR/IAPSO WG127 (Scientific Committee on Oceanic Research/ International Association for the Physical Sciences of the Oceans, Working Group 127).

+

All rights reserved.

+

Redistribution and use, in source and binary forms, without modification, is permitted provided that the following conditions are met:

+

• Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

+

• Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

+

• Neither the name of SCOR/IAPSO WG127 nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

+

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

+ +

The software is available from http://www.TEOS-10.org

+
\ No newline at end of file diff --git a/python-gsw.changes b/python-gsw.changes new file mode 100644 index 0000000..153d65f --- /dev/null +++ b/python-gsw.changes @@ -0,0 +1,14 @@ +------------------------------------------------------------------- +Fri Mar 2 20:02:11 UTC 2018 - sebix+novell.com@sebix.at + +- update to version 3.2.0 + * no changelog available +- remove check boundary condition +- use %license macro +- convert to singlespec and deactivate python2 +- use fdupes + +------------------------------------------------------------------- +Wed Jul 12 15:25:08 UTC 2017 - toddrme2178@gmail.com + +- Initial version diff --git a/python-gsw.spec b/python-gsw.spec new file mode 100644 index 0000000..df7a64e --- /dev/null +++ b/python-gsw.spec @@ -0,0 +1,68 @@ +# +# spec file for package python-gsw +# +# Copyright (c) 2018 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +# Note: this package is python3-only. There is a python2-compatible +# version in the python2-gsw package. + +# Tests are not included in the source tarball +%define skip_python2 1 +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-gsw +Version: 3.2.0 +Release: 0 +Summary: Gibbs Seawater Oceanographic Package of TEOS-10 +# Note: Python code is MIT licensed +# C-code IS BSD-3-Clause licensed (see src/c_gsw/LICENSE) +# MATLAB function names and documentation are BSD-3-Clause licensed (see http://teos-10.org/pubs/gsw/html/gsw_licence.html) +License: MIT AND BSD-3-Clause +Group: Development/Languages/Python +Url: https://github.com/TEOS-10/GSW-python +Source: https://files.pythonhosted.org/packages/source/g/gsw/gsw-%{version}.tar.gz +Source1: http://teos-10.org/pubs/gsw/html/gsw_licence.html +BuildRequires: %{python_module devel >= 3.5} +BuildRequires: %{python_module numpy-devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +# SECTION tests +BuildRequires: %{python_module pytest} +# /SECTION +Requires: python-numpy +%{python_subpackages} + +%description +Python implementation of the Thermodynamic Equation of +Seawater 2010 (TEOS-10). + +%prep +%setup -q -n gsw-%{version} +cp %{SOURCE1} . + +%build +export CFLAGS="%{optflags}" +%{python_build} + +%install +%{python_install} +%{python_expand %fdupes %{buildroot}%{$python_sitearch}} + +%files %{python_files} +%doc README.rst +%doc LICENSE src/c_gsw/LICENSE gsw_licence.html +%{python_sitearch}/* + +%changelog